Skip to content

Commit

Permalink
Merge pull request #28 from tribal-tec/master
Browse files Browse the repository at this point in the history
Support CMake's find_package()
  • Loading branch information
Amanieu authored May 14, 2018
2 parents c636502 + f86ff6c commit 2c852e5
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 2c852e5

Please sign in to comment.