From 24e3fd103598b4ec80150ddb8dddeb2410245b9a Mon Sep 17 00:00:00 2001 From: Zhihao Yuan Date: Wed, 1 May 2019 12:05:59 -0500 Subject: install CMake target taywee::args --- CMakeLists.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c59cfa9..6f63af6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,7 +26,16 @@ option(ARGS_BUILD_EXAMPLE "Build example" ON) option(ARGS_BUILD_UNITTESTS "Build unittests" ON) add_library(args INTERFACE) -target_include_directories(args INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}") +target_include_directories(args INTERFACE + $ + $) + +install(FILES args.hxx DESTINATION include) +install(TARGETS args EXPORT args-targets) +install(EXPORT args-targets + FILE args-config.cmake + NAMESPACE taywee:: + DESTINATION lib/cmake/args) if (ARGS_BUILD_EXAMPLE) add_executable(gitlike examples/gitlike.cxx) -- cgit v1.2.1