2
0
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:
Peter Dimov
2021-05-27 20:30:42 +03:00
parent c83a5644a0
commit 20de153ca3

View File

@@ -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)