mirror of
https://github.com/boostorg/math.git
synced 2026-01-19 04:22:09 +00:00
Link tests to Boost::math
This commit is contained in:
@@ -3,11 +3,6 @@
|
||||
# https://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
file(GLOB SOURCES "*.cpp")
|
||||
add_library(boost_math-compile_tests ${SOURCES})
|
||||
add_library(boost_math-compile_tests STATIC ${SOURCES})
|
||||
target_compile_features(boost_math-compile_tests PRIVATE cxx_std_17)
|
||||
target_include_directories(boost_math-compile_tests PUBLIC ${CMAKE_SOURCE_DIR}/include)
|
||||
|
||||
# For boost superproject CI testing
|
||||
if(EXISTS ${CMAKE_SOURCE_DIR}/libs/math)
|
||||
target_include_directories(boost_math-compile_tests PUBLIC ${CMAKE_SOURCE_DIR}/libs/math/include)
|
||||
endif()
|
||||
target_link_libraries(boost_math-compile_tests PUBLIC Boost::math)
|
||||
|
||||
Reference in New Issue
Block a user