From 233387cfa6b5f0b0f48584e71e143f188b478e3e Mon Sep 17 00:00:00 2001 From: karutoh Date: Sun, 4 Feb 2024 22:07:20 -0800 Subject: [PATCH] Adjusted install and workflow. --- .gitea/workflows/BuildRelease.yaml | 8 ++++++-- CMakeLists.txt | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/BuildRelease.yaml b/.gitea/workflows/BuildRelease.yaml index fe8761e..f22cc2c 100644 --- a/.gitea/workflows/BuildRelease.yaml +++ b/.gitea/workflows/BuildRelease.yaml @@ -23,8 +23,10 @@ jobs: - name: Building/Compiling Project run: | cd ${{ gitea.workspace }} - cmake -DCMAKE_BUILD_TYPE=Debug -DLINUX_WINDOW_SYSTEM:STRING=XCB . - cmake --build . --config Debug + cmake -DCMAKE_BUILD_TYPE=Release -DLINUX_WINDOW_SYSTEM:STRING=XCB . + cmake --build . --config Release + rm -R ~/.local/include/ehs + cmake --install . - name: Creating Appropriate Directories run: | @@ -66,6 +68,8 @@ jobs: cd ${{ gitea.workspace }} cmake -DCMAKE_BUILD_TYPE=Debug -DLINUX_WINDOW_SYSTEM:STRING=XCB . cmake --build . --config Debug + rm -R ~/.local/include/ehs + cmake --install . - name: Creating Appropriate Directories run: | diff --git a/CMakeLists.txt b/CMakeLists.txt index befac3b..bba26d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -221,7 +221,7 @@ add_executable(StrToHash src/StrToHash.cpp) target_include_directories(EHS PUBLIC ${PROJECT_SOURCE_DIR}/include) -set(CMAKE_INSTALL_PREFIX "/usr/local") +set(CMAKE_INSTALL_PREFIX "${USER_HOME_DIRECTORY}/.local") install(TARGETS EHS DESTINATION lib) install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/ DESTINATION include)