CMakeLists.txt

changeset 1017
fc1c13db9618
parent 1015
92c6ec099075
child 1019
a2e4286adb0d
equal deleted inserted replaced
1016:3b279b5e57d3 1017:fc1c13db9618
27 COMMAND python "${CMAKE_SOURCE_DIR}/tools/updaterevision.py" hginfo.h 27 COMMAND python "${CMAKE_SOURCE_DIR}/tools/updaterevision.py" hginfo.h
28 WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) 28 WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
29 29
30 include_directories (${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR}) 30 include_directories (${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR})
31 31
32 set_source_files_properties (${CMAKE_BINARY_DIR}/configurationvaluebag.cpp PROPERTIES GENERATED TRUE) 32 set_source_files_properties (${CMAKE_BINARY_DIR}/configuration.cpp PROPERTIES GENERATED TRUE)
33 33
34 set (LDFORGE_SOURCES 34 set (LDFORGE_SOURCES
35 src/addObjectDialog.cpp 35 src/addObjectDialog.cpp
36 src/basics.cpp 36 src/basics.cpp
37 src/colors.cpp 37 src/colors.cpp
110 src/partdownloader.h 110 src/partdownloader.h
111 src/partdownloadrequest.h 111 src/partdownloadrequest.h
112 src/primitives.h 112 src/primitives.h
113 src/radioGroup.h 113 src/radioGroup.h
114 src/ringFinder.h 114 src/ringFinder.h
115 src/transform.h
115 src/dialogs/colorselector.h 116 src/dialogs/colorselector.h
116 src/dialogs/configdialog.h 117 src/dialogs/configdialog.h
117 src/dialogs/ldrawpathdialog.h 118 src/dialogs/ldrawpathdialog.h
118 src/dialogs/newpartdialog.h 119 src/dialogs/newpartdialog.h
119 src/dialogs/openprogressdialog.h 120 src/dialogs/openprogressdialog.h
191 if (USE_QT5) 192 if (USE_QT5)
192 qt5_add_resources (LDFORGE_QRC ${LDFORGE_RESOURCES}) 193 qt5_add_resources (LDFORGE_QRC ${LDFORGE_RESOURCES})
193 qt5_wrap_ui (LDFORGE_FORMS_HEADERS ${LDFORGE_FORMS}) 194 qt5_wrap_ui (LDFORGE_FORMS_HEADERS ${LDFORGE_FORMS})
194 add_executable (ldforge WIN32 ${LDFORGE_SOURCES} ${LDFORGE_HEADERS} 195 add_executable (ldforge WIN32 ${LDFORGE_SOURCES} ${LDFORGE_HEADERS}
195 ${LDFORGE_QRC} ${LDFORGE_FORMS_HEADERS} 196 ${LDFORGE_QRC} ${LDFORGE_FORMS_HEADERS}
196 ${CMAKE_BINARY_DIR}/configurationvaluebag.cpp) 197 ${CMAKE_BINARY_DIR}/configuration.cpp)
197 else() 198 else()
198 qt4_wrap_ui (LDFORGE_FORMS_HEADERS ${LDFORGE_FORMS}) 199 qt4_wrap_ui (LDFORGE_FORMS_HEADERS ${LDFORGE_FORMS})
199 qt4_add_resources (LDFORGE_RCC ${LDFORGE_RESOURCES}) 200 qt4_add_resources (LDFORGE_RCC ${LDFORGE_RESOURCES})
200 add_executable (ldforge WIN32 ${LDFORGE_SOURCES} ${LDFORGE_RCC} 201 add_executable (ldforge WIN32 ${LDFORGE_SOURCES} ${LDFORGE_RCC}
201 ${LDFORGE_FORMS_HEADERS} ${LDFORGE_HEADERS} 202 ${LDFORGE_FORMS_HEADERS} ${LDFORGE_HEADERS}
202 ${CMAKE_BINARY_DIR}/configurationvaluebag.cpp) 203 ${CMAKE_BINARY_DIR}/configuration.cpp)
203 endif() 204 endif()
204 205
205 set_source_files_properties (${LDFORGE_HEADERS} PROPERTIES HEADER_FILE_ONLY TRUE) 206 set_source_files_properties (${LDFORGE_HEADERS} PROPERTIES HEADER_FILE_ONLY TRUE)
206 set_target_properties (ldforge PROPERTIES AUTOMOC 1) 207 set_target_properties (ldforge PROPERTIES AUTOMOC 1)
207 208
218 endif() 219 endif()
219 220
220 add_custom_target (config_collection ALL 221 add_custom_target (config_collection ALL
221 COMMAND python 222 COMMAND python
222 "${CMAKE_SOURCE_DIR}/tools/configcollector.py" 223 "${CMAKE_SOURCE_DIR}/tools/configcollector.py"
223 --header ${CMAKE_BINARY_DIR}/configurationvaluebag.h 224 --header ${CMAKE_BINARY_DIR}/configuration.h
224 --source ${CMAKE_BINARY_DIR}/configurationvaluebag.cpp 225 --source ${CMAKE_BINARY_DIR}/configuration.cpp
225 --sourcedir ${CMAKE_SOURCE_DIR}/src 226 --sourcedir ${CMAKE_SOURCE_DIR}/src
226 ${LDFORGE_SOURCES} 227 ${LDFORGE_SOURCES}
227 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) 228 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
228 229
229 add_custom_target(lengthcheck ALL 230 add_custom_target(lengthcheck ALL

mercurial