From 2d1bac9c3fb540c6982831525bb8d45119ce51ea Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 13 Sep 2019 18:48:47 +0200 Subject: [PATCH] Moved identiconpp.hpp to include/. --- include/CMakeLists.txt | 4 ++++ {src => include}/identiconpp.hpp | 0 src/CMakeLists.txt | 5 ++--- 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 include/CMakeLists.txt rename {src => include}/identiconpp.hpp (100%) diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt new file mode 100644 index 0000000..82609bc --- /dev/null +++ b/include/CMakeLists.txt @@ -0,0 +1,4 @@ +include(GNUInstallDirs) + +install("identiconpp.hpp" + DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}") diff --git a/src/identiconpp.hpp b/include/identiconpp.hpp similarity index 100% rename from src/identiconpp.hpp rename to include/identiconpp.hpp diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 44280a2..6ac09d5 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -4,7 +4,8 @@ find_package(PkgConfig REQUIRED) pkg_check_modules(Magick++ REQUIRED IMPORTED_TARGET Magick++) file(GLOB sources *.cpp) -add_library(${PROJECT_NAME} ${sources} ${PROJECT_NAME}.hpp) +add_library(${PROJECT_NAME} + ${sources} ${PROJECT_SOURCE_DIR}/include/${PROJECT_NAME}.hpp) target_link_libraries(${PROJECT_NAME} PkgConfig::Magick++) set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${PROJECT_VERSION} @@ -14,5 +15,3 @@ install(TARGETS ${PROJECT_NAME} EXPORT "${PROJECT_NAME}Targets" LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) -install(FILES ${PROJECT_NAME}.hpp - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})