mirror of
https://github.com/boostorg/ratio.git
synced 2025-05-09 23:24:01 +00:00
Update test CMakeLists files
This commit is contained in:
parent
f3f743b618
commit
c944af3bd1
@ -6,6 +6,6 @@ include(BoostTestJamfile OPTIONAL RESULT_VARIABLE HAVE_BOOST_TEST)
|
||||
|
||||
if(HAVE_BOOST_TEST)
|
||||
|
||||
boost_test_jamfile(FILE Jamfile.v2 LINK_LIBRARIES Boost::ratio)
|
||||
boost_test_jamfile(FILE Jamfile.v2 LINK_LIBRARIES Boost::ratio Boost::core)
|
||||
|
||||
endif()
|
||||
|
@ -7,10 +7,9 @@ cmake_minimum_required(VERSION 3.5...3.16)
|
||||
project(cmake_install_test LANGUAGES CXX)
|
||||
|
||||
find_package(boost_ratio REQUIRED)
|
||||
find_package(boost_core REQUIRED)
|
||||
|
||||
add_executable(quick ../quick.cpp)
|
||||
target_link_libraries(quick Boost::ratio Boost::core)
|
||||
target_link_libraries(quick Boost::ratio)
|
||||
|
||||
enable_testing()
|
||||
add_test(quick quick)
|
||||
|
@ -10,23 +10,7 @@ add_subdirectory(../.. boostorg/ratio)
|
||||
|
||||
set(deps
|
||||
# Primary dependencies
|
||||
|
||||
config
|
||||
core
|
||||
integer
|
||||
mpl
|
||||
rational
|
||||
static_assert
|
||||
type_traits
|
||||
|
||||
# Secondary dependencies
|
||||
|
||||
assert
|
||||
throw_exception
|
||||
predef
|
||||
preprocessor
|
||||
utility
|
||||
io
|
||||
)
|
||||
|
||||
foreach(dep IN LISTS deps)
|
||||
@ -36,7 +20,7 @@ foreach(dep IN LISTS deps)
|
||||
endforeach()
|
||||
|
||||
add_executable(quick ../quick.cpp)
|
||||
target_link_libraries(quick Boost::ratio Boost::core)
|
||||
target_link_libraries(quick Boost::ratio)
|
||||
|
||||
enable_testing()
|
||||
add_test(quick quick)
|
||||
|
Loading…
x
Reference in New Issue
Block a user