From e61da3b322642b52cd0c7cc56d76d01178c89faa Mon Sep 17 00:00:00 2001 From: Jojo-1000 <33495614+Jojo-1000@users.noreply.github.com> Date: Tue, 14 Apr 2020 23:24:35 +0200 Subject: [PATCH] Fix cmake install command. --- src/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 04063c7..5be5ba9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -46,7 +46,7 @@ add_library(hueplusplusstatic STATIC ${hueplusplus_SOURCES}) target_compile_features(hueplusplusstatic PUBLIC cxx_std_14) install(TARGETS hueplusplusstatic DESTINATION lib) target_include_directories(hueplusplusstatic PUBLIC $ $) -#install(FILES ${hueplusplus_HEADERS} DESTINATION include/hueplusplus) +install(DIRECTORY "${PROJECT_SOURCE_DIR}/include/" DESTINATION include) # Export the package for use from the build-tree # (this registers the build-tree with a global CMake-registry) @@ -54,4 +54,4 @@ export(PACKAGE hueplusplus) # Create the hueplusplus-config.cmake configure_file ("${PROJECT_SOURCE_DIR}/cmake/hueplusplus-config.cmake.in" "${hueplusplus_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/hueplusplus-config.cmake" @ONLY) # Install hueplusplus-config.cmake -install(FILES "${PROJECT_BINARY}${CMAKE_FILES_DIRECTORY}/hueplusplus-config.cmake" DESTINATION "${INSTALL_CMAKE_DIR}" COMPONENT dev) +install(FILES "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/hueplusplus-config.cmake" DESTINATION "${INSTALL_CMAKE_DIR}" COMPONENT dev) -- libgit2 0.21.4