X-Git-Url: https://git.sthu.org/?a=blobdiff_plain;f=CMakeLists.txt;h=8969cb30776f56573a0ad2ceb95aa9ac4f12924c;hb=a440a674daf0140dc0fed2c6ed84d0fe04790159;hp=b5116d9d93515228cef3292c1dec55f45db5b5fe;hpb=267194caeb2fe56530b11c440fefd01c344e5482;p=libstick.git diff --git a/CMakeLists.txt b/CMakeLists.txt index b5116d9..8969cb3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ project (libstick) if(NOT CMAKE_SYSTEM_NAME STREQUAL "Windows") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -ansi -pedantic") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -std=c++98 -pedantic") # I would like to use -pedantic, but VTK devs are not sufficiently # pedantic set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Werror") @@ -25,10 +25,11 @@ option(WITH_UNITTESTS "Enable unit tests" "OFF") add_subdirectory(include) add_subdirectory(lib) -add_subdirectory(src) if(WITH_UNITTESTS) add_subdirectory(tests) + enable_testing() + add_test(NAME unittests COMMAND tests) endif()