-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
65 lines (57 loc) · 1.65 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
cmake_minimum_required(VERSION 3.10)
project(lazywm)
set(CMAKE_CXX_STANDARD 17)
find_package(X11 REQUIRED)
include_directories(${X11_INCLUDE_DIR})
add_executable(lazywm
src/main.cpp
src/window_manager.cpp
src/window_manager.h
src/config_manager.cpp
src/config_manager.h
src/event_bus.cpp
src/event_bus.h
src/input_manager.cpp
src/input_manager.h
src/compositor.cpp
src/compositor.h
src/ipc_manager.cpp
src/ipc_manager.h
src/log_manager.cpp
src/log_manager.h
src/monitor_manager.cpp
src/monitor_manager.h
src/plugin_manager.cpp
src/plugin_manager.h
src/session_manager.cpp
src/session_manager.h
src/state_store.cpp
src/state_store.h
src/window_layout_manager.cpp
src/window_layout_manager.h
src/workspace_manager.cpp
src/workspace_manager.h
)
target_link_libraries(lazywm ${X11_LIBRARIES})
add_custom_target(run
DEPENDS lazywm
COMMAND Xephyr -screen 1280x720 :1 &
COMMAND sleep 1
COMMAND DISPLAY=:1 ./lazywm
COMMAND killall Xephyr
COMMENT "Running lazywm"
)
add_custom_target(debug
DEPENDS lazywm
COMMAND Xephyr -screen 1280x720 :1 &
COMMAND sleep 1
COMMAND DISPLAY=:1 gdb -ex run --args ./lazywm
COMMAND killall Xephyr
COMMENT "Debugging lazywm"
)
install(TARGETS lazywm DESTINATION bin)
install(FILES src/config_manager.h src/event_bus.h src/input_manager.h src/compositor.h
src/ipc_manager.h src/log_manager.h src/monitor_manager.h src/plugin_manager.h
src/session_manager.h src/state_store.h src/window_layout_manager.h
src/window_manager.h src/workspace_manager.h
DESTINATION include/lazywm)