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)