]> Devoid-pointer.net GitWeb - libHPCS.git/commitdiff
Add install directive to CMake recipe
authorMichal Malý <madcatxster@devoid-pointer.net>
Thu, 11 May 2017 08:37:15 +0000 (10:37 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Thu, 11 May 2017 08:37:15 +0000 (10:37 +0200)
CMakeLists.txt

index 80b108c0b63b37f04d04c7b6c59051fc92d7cdb9..5b1871cda5d1d540370c0030497a0fdc0f7fef8a 100644 (file)
@@ -34,7 +34,12 @@ add_library(HPCS SHARED ${libHPCS_SRCS})
 target_link_libraries(HPCS PRIVATE ${ICU_LIBRARIES})
 set_target_properties(HPCS
                      PROPERTIES VERSION 5.0
-                     SOVERSION 5.0)
+                     SOVERSION 5.0
+                     PUBLIC_HEADER "${PROJECT_SOURCE_DIR}/include/libhpcs.h")
+install(TARGETS HPCS
+       LIBRARY DESTINATION lib
+       PUBLIC_HEADER DESTINATION include)
+
 
 if (${BuildTestTool})
   set(libHPCS_test_SRCS