diff --git a/CMakeLists.txt b/CMakeLists.txt index 50f7731..d030c17 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,23 @@ set(GENERATED_INCLUDE "${PROJECT_BINARY_DIR}/include") include_directories("${GENERATED_INCLUDE}") +### Options ### + +option (DEBUG + "Enable debug code" + on) +if (DEBUG) + add_definitions(-DDEBUG) +endif (DEBUG) + +option (NDEBUG + "Enable no-debug mode (for assert() and others)" + off) +if (NDEBUG) + add_definitions(-DNDEBUG) +endif (NDEBUG) + + ### Libraries ### add_subdirectory(libowlps)