Skip to content

Commit

Permalink
CML: Add project to IDEs
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 13, 2024
1 parent a4b167b commit b8ee43f
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 @@ -11,6 +11,10 @@ add_library(boost_variant2 INTERFACE)
add_library(Boost::variant2 ALIAS boost_variant2)

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

target_link_libraries(boost_variant2
INTERFACE
Expand Down

0 comments on commit b8ee43f

Please sign in to comment.