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)