CMakeLists.txt

changeset 40
809a75a7113b
parent 37
c82a86ea87be
child 42
9528f8d06962
equal deleted inserted replaced
39:2c368cf5cc19 40:809a75a7113b
74 ${QT_QTOPENGL_LIBRARY} 74 ${QT_QTOPENGL_LIBRARY}
75 ${OPENGL_LIBRARIES} 75 ${OPENGL_LIBRARIES}
76 ) 76 )
77 endif() 77 endif()
78 78
79 add_custom_target (make_hginfo
80 COMMAND python
81 "${CMAKE_SOURCE_DIR}/updaterevision.py"
82 "${CMAKE_CURRENT_BINARY_DIR}/hginfo.h"
83 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
84
85 add_dependencies (${PROJECT_NAME} make_hginfo)
86
79 # With clang, we need to set -Wno-deprecated since Qt headers seem to use the register keyword 87 # With clang, we need to set -Wno-deprecated since Qt headers seem to use the register keyword
80 # which clang doesn't seem to like. 88 # which clang doesn't seem to like.
81 if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") 89 if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
82 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated") 90 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated")
83 endif() 91 endif()

mercurial