Skip to content

Commit

Permalink
update CMake test subdirs
Browse files Browse the repository at this point in the history
  • Loading branch information
alandefreitas committed Jul 1, 2022
1 parent 10408db commit ef2db3c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ if(BOOST_URL_INSTALL AND NOT BOOST_SUPERPROJECT_VERSION)
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
)

install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/boost
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING
PATTERN "*.hpp"
PATTERN "*.ipp"
)
endif()


Expand Down
11 changes: 11 additions & 0 deletions test/cmake_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@ else()
add_subdirectory(../../../align boostorg/align)
add_subdirectory(../../../system boostorg/system)
add_subdirectory(../../../container boostorg/container)

# Conditional deps
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../../../detail/CMakeLists.txt")
add_subdirectory(../../../detail boostorg/detail)
endif()
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../../../preprocessor/CMakeLists.txt")
add_subdirectory(../../../preprocessor boostorg/preprocessor)
endif()
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../../../integer/CMakeLists.txt")
add_subdirectory(../../../integer boostorg/integer)
endif()
endif()

add_executable(main main.cpp)
Expand Down

0 comments on commit ef2db3c

Please sign in to comment.