Skip to content

Commit

Permalink
Better packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
vhotspur committed Nov 4, 2024
1 parent 7986303 commit bd3e33d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jobs:
working-directory: ${{github.workspace}}/build
run: ctest -C ${{matrix.build_type}}

- name: Package
working-directory: ${{github.workspace}}/build
run: cpack -C ${{matrix.build_type}}

macos:
runs-on: macos-latest
steps:
Expand All @@ -45,3 +49,7 @@ jobs:
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest

- name: Package
working-directory: ${{github.workspace}}/build
run: cpack
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

cmake_minimum_required(VERSION 3.12)
cmake_minimum_required(VERSION 3.20)

include(CheckCCompilerFlag)
enable_testing()
Expand Down Expand Up @@ -141,7 +141,7 @@ add_self_test(timeout 1 tests/timeout.c)
add_self_test(xmlreport 1 tests/xmlreport.c tests/tested.c)


install(TARGETS pcut DESTINATION lib)
install(TARGETS pcutpp DESTINATION bin)
install(TARGETS pcut DESTINATION lib ARCHIVE)
install(TARGETS pcutpp DESTINATION bin RUNTIME)
install(DIRECTORY include/pcut DESTINATION include)

include(CPack)

0 comments on commit bd3e33d

Please sign in to comment.