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)