CMakeLists.txt

changeset 633
34d18b9c2cab
parent 632
63e6243b880c
child 634
5ef894f699d7
child 684
8a56b1d4d44d
equal deleted inserted replaced
632:63e6243b880c 633:34d18b9c2cab
100 ) 100 )
101 101
102 set (LDForgeResources ldforge.qrc) 102 set (LDForgeResources ldforge.qrc)
103 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -W -Wall") 103 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -W -Wall")
104 set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lGLU") 104 set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lGLU")
105 include_directories ("${PROJECT_BINARY_DIR}")
105 include_directories ("${PROJECT_BINARY_DIR}/src") 106 include_directories ("${PROJECT_BINARY_DIR}/src")
106 include_directories ("${PROJECT_BINARY_DIR}/src/misc") 107 include_directories ("${PROJECT_BINARY_DIR}/src/misc")
107 108
108 if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") 109 if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
109 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG") 110 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG")
114 qt4_add_resources (LDForgeResourcesRCC ${LDForgeResources}) 115 qt4_add_resources (LDForgeResourcesRCC ${LDForgeResources})
115 116
116 add_executable (ldforge 117 add_executable (ldforge
117 ${LDForgeSources} 118 ${LDForgeSources}
118 ${LDForgeResourcesRCC} 119 ${LDForgeResourcesRCC}
119 ${LDForgeFormsHeaders} 120 ${LDForgeFormsHeaders}
121 ${LDForgeMOC}
120 ) 122 )
121 123
122 target_link_libraries (ldforge 124 target_link_libraries (ldforge
123 ${QT_QTCORE_LIBRARY} 125 ${QT_QTCORE_LIBRARY}
124 ${QT_QTGUI_LIBRARY} 126 ${QT_QTGUI_LIBRARY}

mercurial