forked from libthinkpad/dockd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
37 lines (27 loc) · 904 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
36
37
cmake_minimum_required(VERSION 2.8)
project(dockd)
set(CMAKE_CXX_STANDARD 11)
add_definitions(-pthread)
set(srcs
"main.cpp"
"crtc.cpp"
"hooks.cpp"
)
set(hdrs
"crtc.h"
"hooks.h"
)
add_executable(${PROJECT_NAME} ${srcs} ${hdrs})
target_link_libraries(${PROJECT_NAME} X11 Xrandr thinkpad)
install(TARGETS ${PROJECT_NAME}
RUNTIME DESTINATION bin)
install(FILES dockd.desktop DESTINATION /etc/xdg/autostart)
install(FILES dock.hook DESTINATION /etc/dockd)
install(FILES undock.hook DESTINATION /etc/dockd)
set(CPACK_PACKAGE_VENDOR "Ognjen Galic")
set(CPACK_PACKAGE_VERSION_MAJOR 1)
set(CPACK_PACKAGE_VERSION_MINOR 21)
set(CPACK_SOURCE_PACKAGE_FILE_NAME ${PROJECT_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR})
set(CPACK_SOURCE_GENERATOR "TGZ")
set(CPACK_SOURCE_IGNORE_FILES "doc/out;.git;.idea;CMakeLists.txt.user;cmake-build-debug")
include(CPack)