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::config
|
||||
Boost::core
|
||||
Boost::crc
|
||||
Boost::function_types
|
||||
Boost::graph
|
||||
Boost::iterator
|
||||
@@ -34,7 +33,6 @@ target_link_libraries(boost_geometry
|
||||
Boost::mpl
|
||||
Boost::multiprecision
|
||||
Boost::numeric_conversion
|
||||
Boost::program_options
|
||||
Boost::qvm
|
||||
Boost::range
|
||||
Boost::rational
|
||||
|
||||
@@ -31,6 +31,12 @@ function(boost_geometry_add_unit_test prefix item)
|
||||
PRIVATE
|
||||
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
|
||||
target_include_directories(${unit_test_name}
|
||||
PRIVATE
|
||||
|
||||
@@ -15,6 +15,12 @@ function(boost_geometry_add_robustness_test item)
|
||||
PRIVATE
|
||||
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,
|
||||
# and the robustness test folder
|
||||
target_include_directories(${robustness_test_name}
|
||||
|
||||
Reference in New Issue
Block a user