From 6be668d881751519dbd4222c9a57684664243dbf Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 4 Oct 2020 11:08:39 +0300 Subject: cmake: fix install commands --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d43a1aa..555e0b2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,9 @@ file(GLOB_RECURSE winapi_utf8_include "include/*.hpp") file(GLOB winapi_utf8_src "src/*.cpp") add_library(winapi_utf8 ${winapi_utf8_include} ${winapi_utf8_src}) target_include_directories(winapi_utf8 PUBLIC include/) -install(TARGETS winapi_utf8 LIBRARY DESTINATION lib) + +install(TARGETS winapi_utf8 ARCHIVE DESTINATION lib) +install(DIRECTORY include/winapi DESTINATION include) if(WINAPI_UTF8_ENABLE_TESTS) add_subdirectory(test) -- cgit v1.2.3