diff options
| author | Mario Kilies <MarioKilies@GMX.net> | 2011-01-31 16:30:40 +0100 |
|---|---|---|
| committer | Mario Kilies <MarioKilies@GMX.net> | 2011-01-31 16:30:40 +0100 |
| commit | 5343c362b9479cedb7e795b9185ca662eb5f17aa (patch) | |
| tree | 1debc175996b809bb4635cdee316df2518787098 /CMakeLists.txt | |
| parent | 23b74dd9c933760005c0123ce3934afd5de1bd50 (diff) | |
Modified CMakeLists.txt.
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") |
