From 22e4ef1b1d927136ed4929c45e8171214ab9a9d3 Mon Sep 17 00:00:00 2001 From: arteniioleg Date: Thu, 23 Nov 2017 14:25:55 +0200 Subject: [PATCH] install library and headers --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 66f2801..79220b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,3 +38,10 @@ endif() # add_executable(miniz_tester ${MINIZ_TESTER_SRC_LIST}) # target_link_libraries(miniz_tester miniz) + +install(TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}Targets + ARCHIVE DESTINATION lib + LIBRARY DESTINATION lib + ) +file(GLOB INSTALL_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/*.h) +install(FILES ${INSTALL_HEADERS} DESTINATION include/${PROJECT_NAME}) \ No newline at end of file