Adjusted Windows install.
This commit is contained in:
parent
355a26a042
commit
a7331d5561
@ -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: |
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user