Skip to content

Commit

Permalink
Support CMake's find_package()
Browse files Browse the repository at this point in the history
  • Loading branch information
tribal-tec committed May 14, 2018
1 parent c636502 commit f86ff6c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
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

0 comments on commit f86ff6c

Please sign in to comment.