From 43434b170c2725d74f2d91f4cc86b85303893f08 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sat, 19 Feb 2022 13:52:38 +0100 Subject: [PATCH] Update CMakeLists to avoid target clash name on other projects --- tests/CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 30f26d3..aa86582 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -4,17 +4,17 @@ file(COPY pgn_files DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/) # Configure catch3 include_directories(./catch3/) -add_library(catch3 SHARED ./catch3/catch_amalgamated.cpp) +add_library(pgnp_catch3 SHARED ./catch3/catch_amalgamated.cpp) # Add tests add_executable(pgnp_valid valid.cpp) -target_link_libraries(pgnp_valid pgnp catch3) +target_link_libraries(pgnp_valid pgnp pgnp_catch3) add_test(PGNP_Valid_PGN_Set pgnp_valid) add_executable(pgnp_str str.cpp) -target_link_libraries(pgnp_str pgnp catch3) +target_link_libraries(pgnp_str pgnp pgnp_catch3) add_test(PGNP_STR_Compliant_Set pgnp_str) add_executable(pgnp_combined combined.cpp) -target_link_libraries(pgnp_combined pgnp catch3) -add_test(PGNP_Combined_Set pgnp_combined) \ No newline at end of file +target_link_libraries(pgnp_combined pgnp pgnp_catch3) +add_test(PGNP_Combined_Set pgnp_combined)