From f468efa90e9adb53e6084825579340abf38328c8 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 21 Dec 2019 12:56:31 +0300 Subject: cmake: install libraries & their headers --- CMakeLists.txt | 2 ++ cxx/CMakeLists.txt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d030045..6dc89d1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,4 +33,6 @@ endif() add_subdirectory(cxx) add_subdirectory(utils) +install(TARGETS aes ARCHIVE DESTINATION lib) +install(DIRECTORY include/aes DESTINATION include) install(FILES LICENSE.txt DESTINATION share) diff --git a/cxx/CMakeLists.txt b/cxx/CMakeLists.txt index 64613f7..9bbf777 100644 --- a/cxx/CMakeLists.txt +++ b/cxx/CMakeLists.txt @@ -9,3 +9,5 @@ if(MSVC_VERSION EQUAL 1900) # https://connect.microsoft.com/VisualStudio/feedback/details/888527/warnings-on-dbghelp-h target_compile_options(aesxx INTERFACE /wd4091) endif() + +install(DIRECTORY include/aesxx DESTINATION include) -- cgit v1.2.3