Commit e61da3b322642b52cd0c7cc56d76d01178c89faa
Committed by
Moritz Wirger
1 parent
adb6b6cd
Fix cmake install command.
Showing
1 changed file
with
2 additions
and
2 deletions
src/CMakeLists.txt
| @@ -46,7 +46,7 @@ add_library(hueplusplusstatic STATIC ${hueplusplus_SOURCES}) | @@ -46,7 +46,7 @@ add_library(hueplusplusstatic STATIC ${hueplusplus_SOURCES}) | ||
| 46 | target_compile_features(hueplusplusstatic PUBLIC cxx_std_14) | 46 | target_compile_features(hueplusplusstatic PUBLIC cxx_std_14) |
| 47 | install(TARGETS hueplusplusstatic DESTINATION lib) | 47 | install(TARGETS hueplusplusstatic DESTINATION lib) |
| 48 | target_include_directories(hueplusplusstatic PUBLIC $<BUILD_INTERFACE:${hueplusplus_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>) | 48 | target_include_directories(hueplusplusstatic PUBLIC $<BUILD_INTERFACE:${hueplusplus_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>) |
| 49 | -#install(FILES ${hueplusplus_HEADERS} DESTINATION include/hueplusplus) | 49 | +install(DIRECTORY "${PROJECT_SOURCE_DIR}/include/" DESTINATION include) |
| 50 | 50 | ||
| 51 | # Export the package for use from the build-tree | 51 | # Export the package for use from the build-tree |
| 52 | # (this registers the build-tree with a global CMake-registry) | 52 | # (this registers the build-tree with a global CMake-registry) |
| @@ -54,4 +54,4 @@ export(PACKAGE hueplusplus) | @@ -54,4 +54,4 @@ export(PACKAGE hueplusplus) | ||
| 54 | # Create the hueplusplus-config.cmake | 54 | # Create the hueplusplus-config.cmake |
| 55 | configure_file ("${PROJECT_SOURCE_DIR}/cmake/hueplusplus-config.cmake.in" "${hueplusplus_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/hueplusplus-config.cmake" @ONLY) | 55 | configure_file ("${PROJECT_SOURCE_DIR}/cmake/hueplusplus-config.cmake.in" "${hueplusplus_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/hueplusplus-config.cmake" @ONLY) |
| 56 | # Install hueplusplus-config.cmake | 56 | # Install hueplusplus-config.cmake |
| 57 | -install(FILES "${PROJECT_BINARY}${CMAKE_FILES_DIRECTORY}/hueplusplus-config.cmake" DESTINATION "${INSTALL_CMAKE_DIR}" COMPONENT dev) | 57 | +install(FILES "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/hueplusplus-config.cmake" DESTINATION "${INSTALL_CMAKE_DIR}" COMPONENT dev) |