-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
31 lines (26 loc) · 795 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
cmake_minimum_required(VERSION 3.9)
project(endlesswm)
set(CMAKE_CXX_STANDARD 11)
set(SOURCE_FILES
src/config.c
src/config.h
src/endlesswm.c
src/grid.c
src/grid.h
src/keyboard.c
src/keyboard.h
src/keystroke.c
src/keystroke.h
src/mouse.c
src/mouse.h
src/painting.c
src/painting.h
src/metamanager.c
src/metamanager.h)
add_executable(endlesswm ${SOURCE_FILES})
find_package(PkgConfig REQUIRED)
pkg_check_modules(DEPS REQUIRED wlc wayland-server x11 glib-2.0)
target_link_libraries(endlesswm ${DEPS_LIBRARIES})
target_include_directories(endlesswm PUBLIC ${DEPS_INCLUDE_DIRS})
target_compile_options(endlesswm PUBLIC ${DEPS_CFLAGS_OTHER})
target_link_libraries(endlesswm m)