From 4486455f17b60b47fd32731dec80aa7241a6c882 Mon Sep 17 00:00:00 2001 From: Jason Wenger Date: Wed, 13 May 2020 01:22:01 -0500 Subject: [PATCH] Support installation --- CMakeLists.txt | 3 +++ aasdk_proto/CMakeLists.txt | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 672bf23..abc9226 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,6 +77,9 @@ target_link_libraries(aasdk ${OPENSSL_LIBRARIES} ${WINSOCK2_LIBRARIES}) +install(TARGETS aasdk DESTINATION lib) +install(DIRECTORY include/f1x DESTINATION include) + if(AASDK_TEST) add_executable(aasdk_ut ${tests_source_files} diff --git a/aasdk_proto/CMakeLists.txt b/aasdk_proto/CMakeLists.txt index c54aca7..e89a348 100644 --- a/aasdk_proto/CMakeLists.txt +++ b/aasdk_proto/CMakeLists.txt @@ -7,3 +7,7 @@ protobuf_generate_cpp(proto_sources proto_headers ${proto_files}) add_library(aasdk_proto SHARED ${proto_headers} ${proto_sources}) target_link_libraries(aasdk_proto ${PROTOBUF_LIBRARIES}) +install(TARGETS aasdk_proto DESTINATION lib) +install(DIRECTORY . DESTINATION include/aasdk_proto + FILES_MATCHING PATTERN *.h + PATTERN CMakeFiles EXCLUDE )