--- a/Src/CMakeLists.txt +++ b/Src/CMakeLists.txt @@ -18,6 +18,7 @@ if (NOT MODEL) set(MODEL 64) endif() +include(GNUInstallDirs) message(STATUS "${CMAKE_BUILD_TYPE} version") include_directories(${PCRE_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) @@ -37,5 +38,5 @@ set (CMAKE_EXE_LINKER_FLAGS -m32) set (CMAKE_SHARED_LINKER_FLAGS -m32) endif() -install(FILES libda.so libda.so.${API_VERSION} DESTINATION /usr/local/lib) -install(FILES dac.h dac_json.h DESTINATION /usr/local/include) +install(TARGETS da DESTINATION ${CMAKE_INSTALL_LIBDIR}) +install(FILES dac.h dac_json.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})