Skip to content

Commit

Permalink
Fix CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
krabiworld committed Dec 16, 2024
1 parent 6422f23 commit c6f5698
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/cmake-build-*/
/tests/.env
/cmake-build
foxogram
12 changes: 3 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
cmake_minimum_required(VERSION 3.14)
project(foxogram
VERSION 1.0.0
DESCRIPTION "Desktop client for foxogram"
LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
Expand Down Expand Up @@ -64,17 +63,12 @@ set_target_properties(foxogram PROPERTIES
include(CMakePackageConfigHelpers)

target_sources(foxogram PRIVATE ${sources})
set_target_properties(foxogram PROPERTIES
SOVERSION ${PROJECT_VERSION_MAJOR}
VERSION ${PROJECT_VERSION})

install(TARGETS foxogram
BUNDLE DESTINATION .
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
qt_generate_deploy_app_script(
TARGET foxogram
OUTPUT_SCRIPT deploy_script
NO_UNSUPPORTED_PLATFORM_ERROR
)
install(SCRIPT ${deploy_script})
install(SCRIPT ${deploy_script})

set(CPACK_BUNDLE_STARTUP_COMMAND ${PROJECT_BINARY_DIR}/startup.sh)

0 comments on commit c6f5698

Please sign in to comment.