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

Add enable_testing() to CMake

parent a5cbee78
No related branches found
No related tags found
No related merge requests found
...@@ -17,8 +17,8 @@ script: ...@@ -17,8 +17,8 @@ script:
- mkdir build - mkdir build
- cd build - cd build
- cmake ../ - cmake ../
- make libdap-test - make
- ./test/libdap-test - make test
addons: addons:
apt: apt:
......
...@@ -6,6 +6,8 @@ add_definitions ("-D_GNU_SOURCE") ...@@ -6,6 +6,8 @@ add_definitions ("-D_GNU_SOURCE")
set(CMAKE_C_FLAGS "-std=c11 -Wall -Wextra") set(CMAKE_C_FLAGS "-std=c11 -Wall -Wextra")
enable_testing()
add_subdirectory(core) add_subdirectory(core)
add_subdirectory(crypto) add_subdirectory(crypto)
add_subdirectory(test EXCLUDE_FROM_ALL) add_subdirectory(test)
...@@ -8,7 +8,7 @@ Deus Applications Prototypes: core library ...@@ -8,7 +8,7 @@ Deus Applications Prototypes: core library
mkdir build mkdir build
cd build cd build
cmake ../ cmake ../
make libdap-test make
./test/libdap-test make test
``` ```
...@@ -20,3 +20,8 @@ add_executable(${PROJECT_NAME} ${TEST_FILES} ${SRC} ${HEADERS}) ...@@ -20,3 +20,8 @@ add_executable(${PROJECT_NAME} ${TEST_FILES} ${SRC} ${HEADERS})
target_link_libraries(${PROJECT_NAME} Qt5::Test) target_link_libraries(${PROJECT_NAME} Qt5::Test)
target_link_libraries(${PROJECT_NAME} dap_core) target_link_libraries(${PROJECT_NAME} dap_core)
target_link_libraries(${PROJECT_NAME} dap_crypto) target_link_libraries(${PROJECT_NAME} dap_crypto)
add_test(
NAME libdap-test
COMMAND libdap-test
)
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