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: test:
stage: test stage: test
script: script:
- ./build/test/test - ./build/test/testTug
lint: lint:
before_script: before_script:

View File

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