From d0e2ff8548e9fd01ff0f268fb345d89cebd1965b Mon Sep 17 00:00:00 2001 From: eswardhinak Date: Mon, 18 Nov 2024 14:37:02 -0800 Subject: [PATCH] Prepare for 0.1 release --- CMakeLists.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 77149fa..fb0ee8b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,4 +45,20 @@ target_link_libraries(puzzledpictures PRIVATE ${OpenCV_LIBS} ) +# Installation rules +include(GNUInstallDirs) +install(TARGETS puzzledpictures + BUNDLE DESTINATION . + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} +) + +# macOS specific bundle settings +set_target_properties(puzzledpictures PROPERTIES + MACOSX_BUNDLE TRUE + MACOSX_BUNDLE_GUI_IDENTIFIER "com.yourdomain.puzzledpictures" + MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION} + MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} +) + + qt_finalize_executable(puzzledpictures)