[CMake] Use GLOB to generate filelist for install package
Patrik Lehmann
patrik.lehmann at tes-dst.com
Thu Aug 11 05:03:55 EDT 2016
Hello,
I try to use GLOB to collect the files for my install package, but
unfortunately I got the message
'file INSTALL cannot find "C:/Project/include/test1.h;C:/Project/include/test2.h;...'
My code:
FILE(GLOB MY_INCLUDES_H "${PROJECT_SOURCE_DIR}/include/*.h")
INSTALL(FILES "${MY_INCLUDES_H}"
DESTINATION "include"
COMPONENT CPP_INCLUDES)
Is there a way to collect the files this way or is it needed to add
every file manually?
Kind Regards,
Patrik Lehmann
More information about the CMake
mailing list