Skip to content
Snippets Groups Projects
Commit 811a0685 authored by armatusmiles's avatar armatusmiles
Browse files

[+] BUILD_TESTS definition

parent 6f2e9833
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ script: ...@@ -13,7 +13,7 @@ script:
- export CC=gcc-5 - export CC=gcc-5
- mkdir build - mkdir build
- cd build - cd build
- cmake ../ - cmake -DBUILD_TESTS=ON ../
- make - make
- ctest --verbose - ctest --verbose
......
...@@ -6,7 +6,7 @@ add_definitions ("-D_GNU_SOURCE") ...@@ -6,7 +6,7 @@ add_definitions ("-D_GNU_SOURCE")
set(CMAKE_C_FLAGS "-std=c11 -Wall -Wextra") set(CMAKE_C_FLAGS "-std=c11 -Wall -Wextra")
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/libdap-test/CMakeLists.txt") if(BUILD_TESTS)
enable_testing() enable_testing()
add_subdirectory(test) add_subdirectory(test)
endif() endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment