Sun, 02 Feb 2020 00:49:32 +0200
made configurationoptions.txt visible in Qt Creator
CMakeLists.txt | file | annotate | diff | comparison | revisions |
--- a/CMakeLists.txt Sun Feb 02 00:30:48 2020 +0200 +++ b/CMakeLists.txt Sun Feb 02 00:49:32 2020 +0200 @@ -99,6 +99,10 @@ locale/sv.ts ) +set (LDFORGE_OTHER_FILES + src/configurationoptions.txt +) + set(LDFORGE_RESOURCES ldforge.qrc) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) @@ -140,11 +144,13 @@ ${LDFORGE_QM_RC_FILE} ${QM_FILES} ${LDFORGE_FORMS_HEADERS} + ${LDFORGE_OTHER_FILES} ${CMAKE_BINARY_DIR}/configuration.cpp ) set_source_files_properties(${LDFORGE_HEADERS} PROPERTIES HEADER_FILE_ONLY TRUE) set_source_files_properties(${LDFORGE_RESOURCES} PROPERTIES HEADER_FILE_ONLY TRUE) +set_source_files_properties(${LDFORGE_OTHER_FILES} PROPERTIES HEADER_FILE_ONLY TRUE) set_target_properties(ldforge PROPERTIES AUTOMOC 1) target_link_libraries(ldforge Qt5::Widgets Qt5::Network Qt5::OpenGL ${OPENGL_LIBRARIES}) target_link_libraries(ldforge ${GLUT_LIBRARIES})