Skip to content

Commit

Permalink
fixup: install all header files
Browse files Browse the repository at this point in the history
  • Loading branch information
milahu committed Jul 17, 2024
1 parent 5d2bbc0 commit eba1832
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,16 @@ set(CXX_FLAGS
include_directories(${CMAKE_SOURCE_DIR}/src)
add_library(diskhash STATIC src/os_wrappers.c src/diskhash.c)

set_target_properties(diskhash PROPERTIES PUBLIC_HEADER
"src/diskhash.h;src/diskhash.hpp"
)
file(GLOB HDR_FILES ${CMAKE_SOURCE_DIR}/src/*.h*)
set_target_properties(diskhash PROPERTIES PUBLIC_HEADER "${HDR_FILES}")

install(TARGETS diskhash
EXPORT diskhashTargets
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
INCLUDES DESTINATION include
PUBLIC_HEADER DESTINATION include
PUBLIC_HEADER DESTINATION include/diskhash
)

install(EXPORT diskhashTargets
Expand Down

0 comments on commit eba1832

Please sign in to comment.