CMakeLists.txt

changeset 710
86a19bfc34de
parent 706
d79083b9f74d
parent 657
5cfbf4dffebf
child 714
b4a990f59a5e
equal deleted inserted replaced
709:47a2f9d10ebe 710:86a19bfc34de
10 find_package (OpenGL REQUIRED) 10 find_package (OpenGL REQUIRED)
11 11
12 get_target_property (UPDATEREVISION_EXE updaterevision LOCATION) 12 get_target_property (UPDATEREVISION_EXE updaterevision LOCATION)
13 13
14 add_custom_target (revision_check ALL 14 add_custom_target (revision_check ALL
15 COMMAND ${UPDATEREVISION_EXE} src/gitinfo.h 15 COMMAND ${UPDATEREVISION_EXE} gitinfo.h
16 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} 16 WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
17 DEPENDS updaterevision) 17 DEPENDS updaterevision)
18 18
19 include_directories (${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR}) 19 include_directories (${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR})
20 20
21 set (LDForgeSources 21 set (LDForgeSources
131 ${QT_QTNETWORK_LIBRARY} 131 ${QT_QTNETWORK_LIBRARY}
132 ${QT_QTOPENGL_LIBRARY} 132 ${QT_QTOPENGL_LIBRARY}
133 ${OPENGL_LIBRARIES} 133 ${OPENGL_LIBRARIES}
134 ) 134 )
135 135
136 add_dependencies (ldforge revision_check)
136 install (TARGETS ldforge RUNTIME DESTINATION bin) 137 install (TARGETS ldforge RUNTIME DESTINATION bin)

mercurial