test: add target check

This commit is contained in:
Max Lübke 2022-08-24 09:05:12 +02:00
parent 822f50d887
commit 443ea15c58
2 changed files with 7 additions and 5 deletions

View File

@ -21,7 +21,7 @@ build_release:
test:
stage: test
script:
- ./build/test/test
- ./build/test/testTug
lint:
before_script:

View File

@ -8,8 +8,10 @@ FetchContent_Declare(
FetchContent_MakeAvailable(DocTest)
#add_library(doctest INTERFACE)
#target_include_directories(doctest INTERFACE doctest)
add_executable(testTug setup.cpp testBoundaryCondition.cpp testDiffusion.cpp)
target_link_libraries(testTug doctest tug)
add_executable(test setup.cpp testBoundaryCondition.cpp testDiffusion.cpp)
target_link_libraries(test doctest tug)
add_custom_target(check
COMMAND $<TARGET_FILE:testTug>
DEPENDS testTug
)