From f81be80b524a88533f7e5eefd96fe10dc59cc289 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20R=C3=BCth?= Date: Tue, 6 Sep 2022 20:23:20 +0400 Subject: [PATCH] Add install targets to cmake setup (#145) --- src/CMakeLists.txt | 3 +++ tool/CMakeLists.txt | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6228f8f..e1dfe27 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -122,3 +122,6 @@ target_compile_options(cppast PRIVATE # MSVC warnings $<$: /W3>) + +install(TARGETS cppast) +install(DIRECTORY ../include/ DESTINATION include) diff --git a/tool/CMakeLists.txt b/tool/CMakeLists.txt index 5dfa27a..e6179ec 100644 --- a/tool/CMakeLists.txt +++ b/tool/CMakeLists.txt @@ -5,3 +5,5 @@ add_executable(cppast_tool main.cpp) target_link_libraries(cppast_tool PUBLIC cppast cxxopts) set_target_properties(cppast_tool PROPERTIES CXX_STANDARD 11 OUTPUT_NAME cppast) + +install(TARGETS cppast_tool)