Skip to content

Commit

Permalink
Fix building package for debian
Browse files Browse the repository at this point in the history
  • Loading branch information
MishkaRogachev committed Nov 10, 2017
1 parent c1d8f4b commit 05be37f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 3 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,12 @@ if(ANDROID)
)
endif()

# Install instructions
install(TARGETS ${PROJECT} DESTINATION "/usr/bin")
install(FILES "debian/jagcs.desktop" DESTINATION "/usr/share/applications/")
install(FILES "resources/icons/jagcs.svg" DESTINATION "/usr/share/icons/")

# CPack Debian package
option(WITH_DEBIAN "Include instructions to make Debian package")
if (WITH_DEBIAN)
# https://cmake.org/Bug/view.php?id=14444
install(TARGETS ${PROJECT} DESTINATION "/usr/bin")

add_subdirectory(platforms/debian)
endif (WITH_DEBIAN)

Expand Down
4 changes: 4 additions & 0 deletions platforms/debian/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# CMake version string
cmake_minimum_required(VERSION 3.0)

# Install debian instructions
install(FILES "jagcs.desktop" DESTINATION "/usr/share/applications/")
install(FILES "../../resources/icons/jagcs.svg" DESTINATION "/usr/share/icons/")

# CPack generator type
set(CPACK_GENERATOR "DEB")

Expand Down

0 comments on commit 05be37f

Please sign in to comment.