forked from lxqt/lxqt-globalkeys
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
47 lines (38 loc) · 1.66 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
40
41
42
43
44
45
46
47
cmake_minimum_required(VERSION 2.6)
# additional cmake files
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
project(lxqt-globalkeys)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
find_package(LXQT REQUIRED)
include(${LXQT_USE_FILE})
#************************************************
# Build config.cmake files
#************************************************
#set(LXQT_SHARE_DIR ${CMAKE_INSTALL_PREFIX}/share/lxqt)
#set(LXQT_TRANSLATIONS_DIR ${LXQT_SHARE_DIR}/translations)
include(cmake/FindInstallConfigPath.cmake)
set(LXQT_GLOBALKEYS_INCLUDE_DIR ${CMAKE_INSTALL_PREFIX}/include/lxqt-globalkeys)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/cmake/lxqt_globalkeys-config.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/lxqt_globalkeys-config.cmake
@ONLY
)
set(LXQT_GLOBALKEYS_UI_INCLUDE_DIR ${CMAKE_INSTALL_PREFIX}/include/lxqt-globalkeys-ui)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/cmake/lxqt_globalkeys_ui-config.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/lxqt_globalkeys_ui-config.cmake
@ONLY
)
#************************************************
# End of build config.cmake
#************************************************
add_subdirectory(daemon)
add_subdirectory(config)
add_subdirectory(client)
add_subdirectory(ui)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/lxqt_globalkeys-config.cmake DESTINATION share/cmake/lxqt_globalkeys)
install(FILES cmake/lxqt_globalkeys_use.cmake DESTINATION share/cmake/lxqt_globalkeys)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/lxqt_globalkeys_ui-config.cmake DESTINATION share/cmake/lxqt_globalkeys_ui)
install(FILES cmake/lxqt_globalkeys_ui_use.cmake DESTINATION share/cmake/lxqt_globalkeys_ui)