[Development] Header file copies from the soure to include folder

Laszlo Papp lpapp at kde.org
Wed Apr 4 16:14:20 CEST 2012


Okay, solved this way for future reference (not the best and
well-polished solution!):

cat ./src/qt4support/include-helper.pri
system("mkdir -p $$PWD/../../include/$$QT.module.name")

for(header_file, PUBLIC_HEADERS) {
    system("cp $${header_file} $$PWD/../../include/$$QT.module.name")
}

header_files.files  = $$PUBLIC_HEADERS
header_files.path   = $$[QT_INSTALL_PREFIX]/include/$$QT.module.name
INSTALLS            += header_files

Best Regards,
Laszlo Papp



More information about the Development mailing list