mirror of
https://github.com/boostorg/geometry.git
synced 2026-01-19 04:12:11 +00:00
Move Boost::crc and Boost::program_options dependencies in cmake from library to unit and robustness tests (#1437)
This commit is contained in:
@@ -24,7 +24,6 @@ target_link_libraries(boost_geometry
|
|||||||
Boost::concept_check
|
Boost::concept_check
|
||||||
Boost::config
|
Boost::config
|
||||||
Boost::core
|
Boost::core
|
||||||
Boost::crc
|
|
||||||
Boost::function_types
|
Boost::function_types
|
||||||
Boost::graph
|
Boost::graph
|
||||||
Boost::iterator
|
Boost::iterator
|
||||||
@@ -34,7 +33,6 @@ target_link_libraries(boost_geometry
|
|||||||
Boost::mpl
|
Boost::mpl
|
||||||
Boost::multiprecision
|
Boost::multiprecision
|
||||||
Boost::numeric_conversion
|
Boost::numeric_conversion
|
||||||
Boost::program_options
|
|
||||||
Boost::qvm
|
Boost::qvm
|
||||||
Boost::range
|
Boost::range
|
||||||
Boost::rational
|
Boost::rational
|
||||||
|
|||||||
@@ -31,6 +31,12 @@ function(boost_geometry_add_unit_test prefix item)
|
|||||||
PRIVATE
|
PRIVATE
|
||||||
Boost::included_unit_test_framework)
|
Boost::included_unit_test_framework)
|
||||||
|
|
||||||
|
# At least one unit test uses the crc library (but the Geometry library does not).
|
||||||
|
target_link_libraries(${unit_test_name}
|
||||||
|
PRIVATE
|
||||||
|
Boost::crc
|
||||||
|
Boost::program_options)
|
||||||
|
|
||||||
# Include the main Geometry test folder and the current folder
|
# Include the main Geometry test folder and the current folder
|
||||||
target_include_directories(${unit_test_name}
|
target_include_directories(${unit_test_name}
|
||||||
PRIVATE
|
PRIVATE
|
||||||
|
|||||||
@@ -15,6 +15,12 @@ function(boost_geometry_add_robustness_test item)
|
|||||||
PRIVATE
|
PRIVATE
|
||||||
Boost::geometry)
|
Boost::geometry)
|
||||||
|
|
||||||
|
# Link to additional libraries required for testing.
|
||||||
|
target_link_libraries(${robustness_test_name}
|
||||||
|
PRIVATE
|
||||||
|
Boost::crc
|
||||||
|
Boost::program_options)
|
||||||
|
|
||||||
# Include the main Geometry test folder and the current folder,
|
# Include the main Geometry test folder and the current folder,
|
||||||
# and the robustness test folder
|
# and the robustness test folder
|
||||||
target_include_directories(${robustness_test_name}
|
target_include_directories(${robustness_test_name}
|
||||||
|
|||||||
Reference in New Issue
Block a user