Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Async++Config.cmake.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
find_dependency(Threads)
include("${CMAKE_CURRENT_LIST_DIR}/Async++.cmake")
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,16 @@ if (NOT USE_CXX_EXCEPTIONS)
endif()
endif()

include(CMakePackageConfigHelpers)
configure_package_config_file("${CMAKE_CURRENT_LIST_DIR}/Async++Config.cmake.in"
"${PROJECT_BINARY_DIR}/Async++Config.cmake"
INSTALL_DESTINATION cmake
)

install(FILES "${PROJECT_BINARY_DIR}/Async++Config.cmake"
DESTINATION cmake
)

# Install the library and produce a CMake export script
install(TARGETS Async++
EXPORT Async++
Expand Down