diff --git a/CMakeLists.txt b/CMakeLists.txt index 3a9f59557c622643ca8789eac51287a03c977222..66f56188535e5a3b7f26bb74d67b4d5cd283eaea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,6 +22,7 @@ if("${PUGS_SHORT_VERSION}" STREQUAL "") message(FATAL_ERROR "Unable to compute short version from PUGS_VERSION=${PUGS_VERSION}") endif() +set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") set(CMAKE_CONFIGURATION_TYPES "Release;Debug;Coverage" CACHE STRING INTERNAL FORCE ) @@ -372,6 +373,7 @@ endif() #------------------------------------------------------ # Rang (colors? Useless thus necessary!) +add_subdirectory(${PUGS_SOURCE_DIR}/packages/rang/) include_directories(SYSTEM "${PUGS_SOURCE_DIR}/packages/rang/include") # CLI11 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index eebccac12c3c1c7b80b6b1e13ff81d0e802a8def..30d920bb0c111049ae655f67e3951424134dbb01 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -3,6 +3,21 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR}) #------------------------------------------------------ +install( + DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/" + DESTINATION "include" + FILES_MATCHING + PATTERN "*.hpp" +) + +install( + DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/" + DESTINATION "include" + FILES_MATCHING + PATTERN "*.hpp" + PATTERN "CMakeFiles" EXCLUDE +) + # Pugs utils add_subdirectory(utils)