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 .
|
cmake -A x64 -DCMAKE_BUILD_TYPE=Release --preset=default .
|
||||||
cd build
|
cd build
|
||||||
cmake --build . --config Release
|
cmake --build . --config Release
|
||||||
|
cmake --install .
|
||||||
|
|
||||||
- name: Creating Appropriate Directories
|
- name: Creating Appropriate Directories
|
||||||
run: |
|
run: |
|
||||||
|
@ -220,7 +220,12 @@ add_executable(StrToHash src/StrToHash.cpp)
|
|||||||
|
|
||||||
target_include_directories(EHS PUBLIC ${PROJECT_SOURCE_DIR}/include)
|
target_include_directories(EHS PUBLIC ${PROJECT_SOURCE_DIR}/include)
|
||||||
|
|
||||||
|
if (IS_OS_LINUX)
|
||||||
set(CMAKE_INSTALL_PREFIX "${USER_HOME_DIRECTORY}/.local")
|
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(TARGETS EHS DESTINATION lib)
|
||||||
|
|
||||||
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/ DESTINATION include)
|
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/ DESTINATION include)
|
||||||
|
Loading…
Reference in New Issue
Block a user