From 302a6f7ce06e7c91bd9ef35873bf0ed4643305b8 Mon Sep 17 00:00:00 2001 From: Abc Dr Date: Mon, 31 Jul 2023 19:54:51 +0800 Subject: [PATCH] cmakefile --- .github/workflows/build.yml | 2 +- .github/workflows/release.yml | 2 +- CMakeLists.txt | 10 ---------- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 72f05b8..2f8214f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -66,7 +66,7 @@ jobs: - name: Build working-directory: ${{env.SOLUTION_FILE_PATH}} - run: mkdir build && cd build && cmake -DCMAKE_CONFIGURATION_TYPES="Release" .. && make + run: mkdir build && cd build && cmake .. && make - name: Upload a Build Artifact uses: actions/upload-artifact@v3.1.0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 102c1e1..1684e2e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -73,7 +73,7 @@ jobs: - name: Build working-directory: ${{env.SOLUTION_FILE_PATH}} - run: mkdir build && cd build && cmake -DCMAKE_CONFIGURATION_TYPES="Release" .. && make && mv libasexthook.so asexthook.so + run: mkdir build && cd build && cmake .. && make && mv libasexthook.so asexthook.so - name: Zipping All uses: vimtor/action-zip@v1 diff --git a/CMakeLists.txt b/CMakeLists.txt index 0793b24..6947bca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -223,13 +223,3 @@ if(MSVC) ) endif() -################################################################################ -# Post build events -################################################################################ -add_custom_command_if( - TARGET ${PROJECT_NAME} - POST_BUILD - COMMANDS - COMMAND cp "${CMAKE_CURRENT_SOURCE_DIR}/Release/libasexthook.so" "${CMAKE_CURRENT_SOURCE_DIR}/../build/addons/metamod/dlls/" -) -