Skip to content

Commit

Permalink
Add support for DLLs on Windows (#285)
Browse files Browse the repository at this point in the history
* install dll in bin folder
* add support to generate dlls
  • Loading branch information
uilianries authored Feb 20, 2024
1 parent 981dc6b commit 2d9f3d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ option(BUILD_TOOLS "Whether or not to build tools" ON)
option(BUILD_EXAMPLES "Whether or not to build examples" ON)
option(BUILD_BENCHMARK "Whether or not to build the benchmark application (has no effect if BUILD_TESTING is disabled)" ON)

set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ${BUILD_SHARED_LIBS})

if (BUILD_TESTING)
if (BUILD_BENCHMARK)
find_package(benchmark)
Expand Down Expand Up @@ -170,7 +172,7 @@ include(GNUInstallDirs)
install(TARGETS cctz
EXPORT ${PROJECT_NAME}-targets
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/cctz
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
Expand Down

0 comments on commit 2d9f3d0

Please sign in to comment.