-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathCMakeLists.txt
36 lines (23 loc) · 929 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
28
29
30
31
32
33
34
35
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
set(PROJECT qt-lightdm-greeter)
project(${PROJECT})
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
file(GLOB SRCS *.cpp *ui *moc)
message(STATUS "SRCS ${SRCS}")
find_package(Qt5Widgets REQUIRED)
#find_package(Qt5X11Extras REQUIRED QUIET)
QT5_ADD_RESOURCES(RSCS qt-lightdm-greeter.qrc)
include(FindPkgConfig)
pkg_check_modules(LIGHTDM_QT liblightdm-qt5-3)
include_directories ( ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${LIGHTDM_QT_INCLUDE_DIRS}
)
add_executable ( qt-lightdm-greeter ${SRCS} ${RSCS})
target_link_libraries ( qt-lightdm-greeter Qt5::Widgets ${LIGHTDM_QT_LIBRARIES} )
install(TARGETS ${PROJECT} RUNTIME DESTINATION bin)
install(FILES qt-lightdm-greeter.desktop DESTINATION /usr/share/xgreeters)
if (NOT KEEP_CONFIGS)
install(FILES qt-lightdm-greeter.conf DESTINATION /etc/lightdm)
endif()