Skip to content

Commit

Permalink
Improve rapidcheck in cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
rroelke committed Jan 7, 2025
1 parent d823062 commit 8ea9d7a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ target_include_directories(local_install INTERFACE ${CMAKE_SOURCE_DIR})
enable_testing()

if(TILEDB_TESTS)
find_package(rapidcheck CONFIG REQUIRED)
# Add custom Catch2 entry point that suppresses message boxes on debug assertion
# failures on Windows CI.
find_package(Catch2 REQUIRED)
Expand Down
8 changes: 1 addition & 7 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,6 @@ if (NOT MSVC)
add_compile_options(-Wno-deprecated-declarations)
endif()

find_library(
LIBRAPIDCHECK
NAMES rapidcheck
REQUIRED
)

# unit test executable
add_executable(
tiledb_unit EXCLUDE_FROM_ALL
Expand All @@ -241,7 +235,7 @@ target_link_libraries(tiledb_unit
Catch2::Catch2
tiledb_test_support_lib
configuration_definitions
${LIBRAPIDCHECK}
rapidcheck
)

target_link_libraries(tiledb_unit PRIVATE $<BUILD_INTERFACE:common>)
Expand Down
8 changes: 1 addition & 7 deletions tiledb/common/algorithm/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,9 @@

include(unit_test)

find_library(
LIBRAPIDCHECK
NAMES rapidcheck
REQUIRED
)

commence(unit_test algorithm)
this_target_object_libraries(algorithm)
this_target_sources(main.cc unit_parallel_merge.cc)
this_target_link_libraries(tiledb_test_support_lib)
this_target_link_libraries(${LIBRAPIDCHECK})
this_target_link_libraries(rapidcheck)
conclude(unit_test)

0 comments on commit 8ea9d7a

Please sign in to comment.