From 01a21032a58f54344c1b1ea913c164a830873abb Mon Sep 17 00:00:00 2001 From: Karutoh Date: Wed, 24 Jul 2024 15:37:45 -0700 Subject: [PATCH] Simplified Windows build again. --- CMakeLists.txt | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9fcf959..bd0f2b1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -255,12 +255,15 @@ elseif (IS_OS_WINDOWS) set(CMAKE_INSTALL_PREFIX "${USER_HOME_DIRECTORY}/EHS") endif () -install(TARGETS EHS_Stc DESTINATION lib) -install(TARGETS EHS_Dyn RUNTIME DESTINATION bin) -install(TARGETS EHS_Dyn LIBRARY DESTINATION lib) -install(TARGETS StrToHash DESTINATION bin) +install(TARGETS EHS_Stc DESTINATION LIB) +install(TARGETS EHS_Dyn RUNTIME DESTINATION BIN) +install(TARGETS EHS_Dyn LIBRARY DESTINATION LIB) +install(TARGETS StrToHash DESTINATION BIN) -install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/ DESTINATION include) +file(GLOB DLL_FILES "${CMAKE_CURRENT_BINARY_DIR}/*.dll") +install(FILES ${DLL_FILES} DESTINATION BIN) + +install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/" DESTINATION INCLUDE) find_package(ZLIB REQUIRED) if (ZLIB_FOUND)