-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
75 lines (68 loc) · 2.1 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
cmake_minimum_required(VERSION 3.14)
project(touchegg-music-client VERSION 1.1.3)
set(CMAKE_CXX_STANDARD 17)
include(cmake/touchegg-dependency.cmake)
list(APPEND CMAKE_MODULE_PATH
"${PROJECT_SOURCE_DIR}/cmake/modules"
"${touchegg_SOURCE_DIR}/cmake/Modules")
if (CMAKE_BUILD_TYPE MATCHES Debug)
include(cmake/code-style.cmake)
endif ()
find_package(Threads REQUIRED)
find_package(LIBUDEV REQUIRED)
find_package(LIBINPUT REQUIRED)
find_package(PUGIXML REQUIRED)
find_package(CAIRO REQUIRED)
find_package(X11 REQUIRED)
find_package(XTEST REQUIRED)
find_package(XRANDR REQUIRED)
find_package(XINPUT REQUIRED)
find_package(GLIB REQUIRED)
find_package(GTK3 REQUIRED)
find_package(LibPulse REQUIRED)
find_package(DBus REQUIRED)
find_package(Glibmm REQUIRED)
find_package(Cairomm REQUIRED)
file(GLOB_RECURSE SOURCE_FILES
${PROJECT_SOURCE_DIR}/src/*.h
${PROJECT_SOURCE_DIR}/src/*.cpp)
list(APPEND SOURCE_FILES "${TOUCHEGG_SOURCE_FILES}")
add_executable(touchegg-music-client ${SOURCE_FILES})
target_include_directories(touchegg-music-client
PUBLIC
${PROJECT_SOURCE_DIR}/src
${touchegg_SOURCE_DIR}/src
${LIBUDEV_INCLUDE_DIRS}
${LIBINPUT_INCLUDE_DIRS}
${PUGIXML_INCLUDE_DIRS}
${CAIRO_INCLUDE_DIRS}
${X11_INCLUDE_DIRS}
${XTEST_INCLUDE_DIRS}
${XRANDR_INCLUDE_DIRS}
${XINPUT_INCLUDE_DIRS}
${GLIB_INCLUDE_DIRS}
${GTK3_INCLUDE_DIRS}
${LIBPULSE_INCLUDE_DIRS}
${DBUS_INCLUDE_DIRS}
${GLIBMM_INCLUDE_DIRS}
${CAIROMM_INCLUDE_DIRS}
)
target_link_libraries(touchegg-music-client
stdc++fs # std::filesystem
Threads::Threads # std::thread
${LIBUDEV_LIBRARIES}
${LIBINPUT_LIBRARIES}
${PUGIXML_LIBRARIES}
${CAIRO_LIBRARIES}
${X11_LIBRARIES}
${XTEST_LIBRARIES}
${XRANDR_LIBRARIES}
${XINPUT_LIBRARIES}
${GLIB_LIBRARIES}
${GTK3_LIBRARIES}
${LIBPULSE_LIBRARIES}
${DBUS_LIBRARIES}
${GLIBMM_LIBRARIES}
${CAIROMM_LIBRARIES}
)
add_definitions(-DAUTO_COLORS=ON)