Added cmake install directions

This commit is contained in:
Jeremy Borgman
2020-08-25 08:14:44 -05:00
parent 34bc07fc76
commit 3e226651db
2 changed files with 20 additions and 2 deletions

View File

@@ -1,6 +1,9 @@
cmake_minimum_required(VERSION 3.15)
cmake_minimum_required(VERSION 3.13)
project(flameshot VERSION 0.8.0 LANGUAGES CXX)
project(flameshot CXX)
include(cmake/StandardProjectSettings.cmake)

View File

@@ -13,6 +13,8 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
add_executable(flameshot)
add_executable(Flameshot::flameshot ALIAS flameshot)
add_subdirectory(cli)
add_subdirectory(config)
@@ -81,3 +83,16 @@ target_compile_definitions(flameshot PRIVATE APP_PREFIX="/usr")
target_compile_definitions(flameshot PRIVATE APP_VERSION="v0.8.0")
target_compile_definitions(flameshot PRIVATE IMGUR_CLIENT_ID="313baf0c7b4d3ff")
target_compile_definitions(flameshot PRIVATE QAPPLICATION_CLASS=QApplication)
##############################################
# Installation instructions
include(GNUInstallDirs)
set(INSTALL_CONFIGDIR ${CMAKE_INSTALL_LIBDIR}/cmake/Flameshot)
install(TARGETS flameshot
EXPORT flameshot-targets
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)