Skip to content

Commit

Permalink
Rename test target name
Browse files Browse the repository at this point in the history
This should avoid conflicts with tests in consumer projects
  • Loading branch information
yowidin committed Feb 17, 2024
1 parent ebc8123 commit d6a5ad3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ FetchContent_MakeAvailable(Catch2)
message(STATUS "Catch2: ${Catch2_SOURCE_DIR}")
list(APPEND CMAKE_MODULE_PATH ${Catch2_SOURCE_DIR}/extras)

add_executable(tests
add_executable(shp_tests
src/format_backup.cpp
src/integral_hex_writer.cpp
src/iterator_hex_writer.cpp
)

set_target_properties(tests PROPERTIES CXX_STANDARD 11)
set_target_properties(shp_tests PROPERTIES CXX_STANDARD 11)

target_link_libraries(tests
target_link_libraries(shp_tests
PRIVATE SimpleHexPrinter::library
PRIVATE Catch2::Catch2WithMain
)

add_test(NAME Catch2Tests COMMAND "tests")
add_test(NAME Catch2Tests COMMAND "shp_tests")

0 comments on commit d6a5ad3

Please sign in to comment.