Skip to content

Commit

Permalink
Merge branch '326-reduce-number-of-executables-in-tests-multipatch-co…
Browse files Browse the repository at this point in the history
…nnectivity' into 'main'

Reduce number of executables in tests/multipatch/connectivity.

Closes #326

See merge request gysela-developpers/gyselalibxx!651
  • Loading branch information
EmilyBourne committed Aug 9, 2024
1 parent db65223 commit 40b2710
Showing 1 changed file with 6 additions and 39 deletions.
45 changes: 6 additions & 39 deletions tests/multipatch/connectivity/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,53 +1,20 @@


add_executable("coord_transformation_test"
add_executable("unit_tests_connectivity"
coord_transformation.cpp
../../main.cpp
)
target_link_libraries("coord_transformation_test"
PUBLIC
DDC::DDC
GTest::gtest
GTest::gmock

gslx::multipatch_connectivity
gslx::multipatch_geometries
)
target_compile_definitions("coord_transformation_test" PUBLIC)
gtest_discover_tests("coord_transformation_test" DISCOVERY_MODE PRE_TEST)

add_executable("multipatch_connectivity_test"
multipatch_connectivity.cpp
../../main.cpp
)
target_link_libraries("multipatch_connectivity_test"
PUBLIC
DDC::DDC
GTest::gtest
GTest::gmock

gslx::multipatch_connectivity
gslx::multipatch_geometries
gslx::utils
)
target_compile_definitions("multipatch_connectivity_test" PUBLIC)
gtest_discover_tests("multipatch_connectivity_test" DISCOVERY_MODE PRE_TEST)


add_executable("index_transformation_test"
index_transformation_uniform.cpp
index_transformation_non_uniform.cpp
multipatch_connectivity.cpp
../../main.cpp
)
target_link_libraries("index_transformation_test"
target_link_libraries("unit_tests_connectivity"
PUBLIC
DDC::DDC
GTest::gtest
GTest::gmock

gslx::multipatch_connectivity
gslx::multipatch_geometries
gslx::utils
)
target_compile_definitions("index_transformation_test" PUBLIC)
gtest_discover_tests("index_transformation_test" DISCOVERY_MODE PRE_TEST)

target_compile_definitions("unit_tests_connectivity" PUBLIC)
gtest_discover_tests("unit_tests_connectivity" DISCOVERY_MODE PRE_TEST)

0 comments on commit 40b2710

Please sign in to comment.