The created header should be registered in the CMakeLists.txt file with the command
SET_SOURCE_FILES_PROPERTIES(${rootdir}/inc/ttt.h PROPERTIES GENERATED TRUE)
and then created with
ADD_CUSTOM_COMMAND(OUTPUT inc/ttt.h ...)
and then be added to the input files for libttt. Please note that for SET_SOURCE_FILES_PROPERTIES an absolute path should be used.
The created header should be registered in the CMakeLists.txt file with the command
SET_SOURCE_ FILES_PROPERTIE S(${rootdir} /inc/ttt. h PROPERTIES GENERATED TRUE)
and then created with
ADD_CUSTOM_ COMMAND( OUTPUT inc/ttt.h ...)
and then be added to the input files for libttt. Please note that for SET_SOURCE_ FILES_PROPERTIE S an absolute path should be used.