summaryrefslogtreecommitdiff
blob: 9f518629e5a1438bb9393f209400dfa9a1f73fe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- ./CMakeLists.txt	2016-11-08 22:54:33.351677837 +0000
+++ ./CMakeLists.txt	2016-11-08 23:04:26.737184360 +0000
@@ -16,6 +16,7 @@
     set(MODEL 64)
 endif()

+include(GNUInstallDirs)
 message(STATUS "${CMAKE_BUILD_TYPE} version")

 include_directories(${PCRE_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
@@ -31,6 +32,9 @@

 add_subdirectory(examples)

+install(TARGETS da DESTINATION ${CMAKE_INSTALL_LIBDIR})
+install(FILES dac.h dac_json.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+
 if (EXISTS "${PROJECT_SOURCE_DIR}/tests")
     subdirs(tests)
 endif()