From 64c0ddfe6fdd3adc27faf57bffe97d86f5f45b93 Mon Sep 17 00:00:00 2001 From: giuliof Date: Wed, 30 Nov 2022 21:04:49 +0100 Subject: [PATCH] Aggiunto packaging automatizzato tramite CPack --- argento/CMakeLists.txt | 4 ++++ nicolodi/CMakeLists.txt | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/argento/CMakeLists.txt b/argento/CMakeLists.txt index 8a20da2..ab3c673 100644 --- a/argento/CMakeLists.txt +++ b/argento/CMakeLists.txt @@ -56,3 +56,7 @@ add_executable (argento # Qt: link needed libraries target_link_libraries(argento Qt5::Widgets Qt5::Sql) + +# CMake packaging system +install(TARGETS argento RUNTIME DESTINATION bin) +include (CPack) diff --git a/nicolodi/CMakeLists.txt b/nicolodi/CMakeLists.txt index 39b0e49..7fec3a0 100644 --- a/nicolodi/CMakeLists.txt +++ b/nicolodi/CMakeLists.txt @@ -40,3 +40,7 @@ add_executable (nicolodi # Qt: link needed libraries target_link_libraries(nicolodi Qt5::Widgets Qt5::Sql) + +# CMake packaging system +install(TARGETS nicolodi RUNTIME DESTINATION bin) +include (CPack)