From a7331d5561de3fc7d8aeafb0cc7db501cbdfe100 Mon Sep 17 00:00:00 2001 From: Karutoh Date: Mon, 5 Feb 2024 22:54:47 -0800 Subject: [PATCH] Adjusted Windows install. --- .gitea/workflows/BuildRelease.yaml | 1 + CMakeLists.txt | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/BuildRelease.yaml b/.gitea/workflows/BuildRelease.yaml index cab9612..0c8f31e 100644 --- a/.gitea/workflows/BuildRelease.yaml +++ b/.gitea/workflows/BuildRelease.yaml @@ -22,6 +22,7 @@ jobs: cmake -A x64 -DCMAKE_BUILD_TYPE=Release --preset=default . cd build cmake --build . --config Release + cmake --install . - name: Creating Appropriate Directories run: | diff --git a/CMakeLists.txt b/CMakeLists.txt index 371ea15..8119c5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -220,7 +220,12 @@ add_executable(StrToHash src/StrToHash.cpp) target_include_directories(EHS PUBLIC ${PROJECT_SOURCE_DIR}/include) -set(CMAKE_INSTALL_PREFIX "${USER_HOME_DIRECTORY}/.local") +if (IS_OS_LINUX) + set(CMAKE_INSTALL_PREFIX "${USER_HOME_DIRECTORY}/.local") +elseif (IS_OS_WINDOWS) + set(CMAKE_INSTALL_PREFIX "${USER_HOME_DIRECTORY}/EHS") +endif () + install(TARGETS EHS DESTINATION lib) install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/ DESTINATION include)