diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c45e39..295fa9c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,15 +14,23 @@ set(CMAKE_C_FLAGS "-Wall -pedantic -std=c99 -D_POSIX_SOURCE") set(CMAKE_C_FLAGS_RELEASE "-O3") set(CMAKE_C_FLAGS_DEBUG "-O0 -g") +# If we specified a debug build, #define OXEN_DEBUG if(${CMAKE_BUILD_TYPE} MATCHES Debug) add_definitions(-DOXEN_DEBUG) endif(${CMAKE_BUILD_TYPE} MATCHES Debug) +# If CMake is run with -DDGLSERVER=ON, #define OXEN_DGLSERVER +if(DGLSERVER) + message("Building server to use for dgamelaunch watchmode") + add_definitions(-DOXEN_DGLSERVER) +endif(DGLSERVER) + # Find dependencies -# Find ncurses +# Find ncurses (required) set(CURSES_NEED_NCURSES true) -find_package(Curses) +find_package(Curses REQUIRED) +# Find doxygen (optional) find_package(Doxygen) if(DOXYGEN_FOUND) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY) @@ -54,7 +62,7 @@ target_link_libraries( install(TARGETS oxen RUNTIME DESTINATION bin) -# package generator (see also http://www.cmake.org/Wiki/CMake:Packaging_With_CPack) +# Package generator (see also http://www.cmake.org/Wiki/CMake:Packaging_With_CPack) SET(CPACK_PACKAGE_VERSION_MAJOR "0") SET(CPACK_PACKAGE_VERSION_MINOR "1") SET(CPACK_PACKAGE_VERSION_PATCH "0") |
