mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
cmake: rename unit-test target to avoid name collision with parent projects
This commit is contained in:
parent
ee6f33fd4d
commit
fbe30f0aac
2 changed files with 4 additions and 4 deletions
|
@ -50,7 +50,7 @@ test:unit:
|
|||
dependencies:
|
||||
- build:source
|
||||
script:
|
||||
- build/tests/unit-tests
|
||||
- build/tests/unit-tests-common
|
||||
image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV}
|
||||
tags:
|
||||
- docker
|
||||
|
|
|
@ -26,16 +26,16 @@ set(SOURCES
|
|||
graph.cpp
|
||||
)
|
||||
|
||||
add_executable(unit-tests ${SOURCES})
|
||||
add_executable(unit-tests-common ${SOURCES})
|
||||
|
||||
find_package(Criterion REQUIRED)
|
||||
|
||||
target_include_directories(unit-tests PUBLIC
|
||||
target_include_directories(unit-tests-common PUBLIC
|
||||
${PROJECT_SOURCE_DIR}/include
|
||||
${CRITERION_INCLUDE_DIRECTORIES}
|
||||
)
|
||||
|
||||
target_link_libraries(unit-tests PUBLIC
|
||||
target_link_libraries(unit-tests-common PUBLIC
|
||||
villas-common
|
||||
${CRITERION_LIBRARIES}
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue