build(cmake): isolate test-only dependencies
This commit is contained in:
@@ -37,11 +37,29 @@ set_property(
|
||||
${FESA_DEPENDENCY_RUNTIME_MODIFICATIONS}
|
||||
)
|
||||
|
||||
add_test(
|
||||
NAME ProductionConfigureWithoutGTest
|
||||
COMMAND
|
||||
"${CMAKE_COMMAND}"
|
||||
--fresh
|
||||
-S "${CMAKE_SOURCE_DIR}"
|
||||
-B "${CMAKE_BINARY_DIR}/testing/production-no-gtest"
|
||||
-G "${CMAKE_GENERATOR}"
|
||||
-A "${CMAKE_GENERATOR_PLATFORM}"
|
||||
-T "${CMAKE_VS_PLATFORM_TOOLSET}"
|
||||
-DBUILD_TESTING=OFF
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_GTest=TRUE
|
||||
"-DMKL_DIR=${MKL_DIR}"
|
||||
"-DTBB_DIR=${TBB_DIR}"
|
||||
"-DHDF5_DIR=${HDF5_DIR}"
|
||||
)
|
||||
|
||||
add_executable(fesa_core_value_tests
|
||||
unit/core/diagnostic_test.cpp
|
||||
unit/core/entity_id_test.cpp
|
||||
unit/core/status_test.cpp
|
||||
unit/core/vec3_test.cpp
|
||||
unit/core/version_test.cpp
|
||||
)
|
||||
|
||||
target_compile_features(fesa_core_value_tests PRIVATE cxx_std_20)
|
||||
|
||||
Reference in New Issue
Block a user