Skip to content

Commit

Permalink
fix installation layout of dll for windows (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceIm authored Sep 28, 2023
1 parent 5d63874 commit 57cb691
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)

include(CheckCCompilerFlag)
include(GNUInstallDirs)

option(STREAMVBYTE_WERROR "Treat warnings as errors." OFF)
option(STREAMVBYTE_WALL "Emit all warnings during compilation." ON)
Expand Down Expand Up @@ -132,9 +133,14 @@ install(
${PROJECT_SOURCE_DIR}/include/streamvbyte.h
${PROJECT_SOURCE_DIR}/include/streamvbytedelta.h
${PROJECT_SOURCE_DIR}/include/streamvbyte_zigzag.h
DESTINATION include
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)
install(
TARGETS streamvbyte
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
install(TARGETS streamvbyte DESTINATION lib)

option(STREAMVBYTE_SANITIZE_UNDEFINED "Sanitize undefined behavior" OFF)
if(STREAMVBYTE_SANITIZE_UNDEFINED)
Expand Down

0 comments on commit 57cb691

Please sign in to comment.