-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathCMakeLists.txt
27 lines (22 loc) · 975 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cmake_minimum_required(VERSION 3.0)
set (CMAKE_INSTALL_PREFIX /usr)
project (dnscrypt-proxy-gui)
set (APP_NAME DNSCryptClient)
include(CheckFunctionExists)
include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
if (COMPILER_SUPPORTS_CXX11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
endif()
add_subdirectory(src)
install ( FILES ${APP_NAME}.desktop
DESTINATION ${SHARE_INSTALL_PREFIX}/applications )
install ( FILES ${APP_NAME}@.service
DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/systemd/system )
install ( FILES ${APP_NAME}[email protected]
DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/systemd/system )
install ( FILES ${APP_NAME}_test_v2.service
DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/systemd/system )
install ( FILES src/icons/64x64/status/${APP_NAME}.png
DESTINATION ${SHARE_INSTALL_PREFIX}/icons/hicolor/64x64/apps
RENAME ${APP_NAME}.png )