55 add_dependencies (botc revision_check enumstrings) |
55 add_dependencies (botc revision_check enumstrings) |
56 include_directories (${CMAKE_BINARY_DIR}) |
56 include_directories (${CMAKE_BINARY_DIR}) |
57 include_directories (${CMAKE_SOURCE_DIR}/src) |
57 include_directories (${CMAKE_SOURCE_DIR}/src) |
58 |
58 |
59 if (NOT MSVC) |
59 if (NOT MSVC) |
60 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -W -Wall") |
60 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -W -Wall -Og") |
61 |
61 |
62 if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") |
62 if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR "${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo") |
63 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG") |
63 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG") |
64 endif() |
64 endif() |
65 endif() |
65 endif() |