From 9a12d42bb331553f6b1733ab14174fb9bce23c91 Mon Sep 17 00:00:00 2001 From: Matthias Konnerth Date: Wed, 20 Nov 2024 11:14:36 +0100 Subject: [PATCH] Check::check target --- tests/CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index ede4cee..a1d244e 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -2,7 +2,7 @@ add_executable(sort sort.c ${CMAKE_CURRENT_SOURCE_DIR}/../src/Sort.c ${CMAKE_CURRENT_SOURCE_DIR}/../src/nodes/InstanceNode.c) target_include_directories(sort PRIVATE ${CHECK_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../src ${CMAKE_CURRENT_SOURCE_DIR}/../include) -target_link_libraries(sort PRIVATE ${CHECK_LIBRARIES} ${PTHREAD_LIB} coverageLib open62541::open62541) +target_link_libraries(sort PRIVATE Check::check ${PTHREAD_LIB} coverageLib open62541::open62541) add_test(NAME sort_Test WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMAND sort ${CMAKE_CURRENT_LIST_DIR}) add_executable(nodeContainer @@ -13,21 +13,21 @@ add_executable(nodeContainer ${CMAKE_CURRENT_SOURCE_DIR}/../src/Value.c ) target_include_directories(nodeContainer PRIVATE ${CHECK_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../include ${CMAKE_CURRENT_SOURCE_DIR}/../src) -target_link_libraries(nodeContainer PRIVATE ${CHECK_LIBRARIES} ${PTHREAD_LIB} coverageLib open62541::open62541) +target_link_libraries(nodeContainer PRIVATE Check::check ${PTHREAD_LIB} coverageLib open62541::open62541) add_test(NAME nodeContainer_Test WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMAND nodeContainer ${CMAKE_CURRENT_LIST_DIR}) add_executable(value ValueTest.c ${CMAKE_CURRENT_SOURCE_DIR}/../src/Value.c) target_include_directories(value PRIVATE ${CHECK_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../include) -target_link_libraries(value PRIVATE ${CHECK_LIBRARIES} ${PTHREAD_LIB} coverageLib open62541::open62541) +target_link_libraries(value PRIVATE Check::check ${PTHREAD_LIB} coverageLib open62541::open62541) add_test(NAME value_Test WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMAND value ${CMAKE_CURRENT_LIST_DIR}) add_executable(allocator allocator.c ${CMAKE_CURRENT_SOURCE_DIR}/../src/CharAllocator.c) target_include_directories(allocator PRIVATE ${CHECK_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../src) -target_link_libraries(allocator PRIVATE ${CHECK_LIBRARIES} ${PTHREAD_LIB} coverageLib open62541::open62541) +target_link_libraries(allocator PRIVATE Check::check ${PTHREAD_LIB} coverageLib open62541::open62541) add_test(NAME allocatorTest WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMAND allocator ${CMAKE_CURRENT_LIST_DIR}) add_executable(parser parser.c) -target_link_libraries(parser PRIVATE NodesetLoader ${CHECK_LIBRARIES} ${PTHREAD_LIB} coverageLib open62541::open62541) +target_link_libraries(parser PRIVATE NodesetLoader Check::check ${PTHREAD_LIB} coverageLib open62541::open62541) target_include_directories(parser PRIVATE ${CHECK_INCLUDE_DIR}) add_test(NAME parser_Test WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}