Skip to content

Commit

Permalink
CML: Add project to IDEs (#1209)
Browse files Browse the repository at this point in the history
Make IDEs show the headers as a separate target.
  • Loading branch information
Flamefire authored Oct 15, 2024
1 parent 5229890 commit 5970659
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_library(boost_math INTERFACE)
add_library(Boost::math ALIAS boost_math)

target_include_directories(boost_math INTERFACE include)
if(NOT CMAKE_VERSION VERSION_LESS "3.19")
file(GLOB_RECURSE headers include/*.hpp)
target_sources(boost_math PRIVATE ${headers})
endif()

include(CMakeDependentOption)

Expand Down

0 comments on commit 5970659

Please sign in to comment.