-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
39 lines (29 loc) · 1.12 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
cmake_minimum_required( VERSION 2.6 )
project(lxqt-backlight)
set(POLKIT_FILES
${CMAKE_BINARY_DIR}/org.lxqt.backlight.pkexec.policy
)
# Config file
configure_file ( org.lxqt.backlight.pkexec.policy.in org.lxqt.backlight.pkexec.policy )
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
)
if(NOT CMAKE_BUILD_TYPE)
set( CMAKE_BUILD_TYPE Release )
endif (NOT CMAKE_BUILD_TYPE)
set(APP_SHARE_DIR share/lxqt/${PROJECT_NAME})
add_subdirectory(liblxqtbacklight_backend)
add_subdirectory(lxqtbacklight_backend)
add_subdirectory(liblxqtbacklight)
add_subdirectory(lxqt-backlight-gui)
install(FILES ${POLKIT_FILES} DESTINATION /usr/share/polkit-1/actions/)
# building tarball with CPack -------------------------------------------------
#include (InstallRequiredSystemLibraries)
#set (CPACK_PACKAGE_VERSION_MAJOR ${LXQT_MAJOR_VERSION})
#set (CPACK_PACKAGE_VERSION_MINOR ${LXQT_MINOR_VERSION})
#set (CPACK_PACKAGE_VERSION_PATCH ${LXQT_PATCH_VERSION})
#set (CPACK_GENERATOR TBZ2)
#set (CPACK_SOURCE_GENERATOR TBZ2)
#set (CPACK_SOURCE_IGNORE_FILES /build/;.gitignore;.*~;.git;.kdev4;temp)
#include (CPack)