2024-12-07 09:13:17 +00:00
|
|
|
cmake_minimum_required(VERSION 3.20)
|
|
|
|
|
|
|
|
project(aswm)
|
|
|
|
|
|
|
|
find_package(X11 REQUIRED)
|
|
|
|
|
2024-12-15 13:45:02 +00:00
|
|
|
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -fsanitize=address")
|
|
|
|
|
2024-12-07 09:13:17 +00:00
|
|
|
add_executable(aswm
|
2024-12-15 14:09:18 +00:00
|
|
|
src/aswm/main.c
|
|
|
|
src/aswm/event_handlers/create.c
|
|
|
|
src/aswm/event_handlers/configure.c
|
|
|
|
src/aswm/event_handlers/reparent.c
|
|
|
|
src/aswm/event_handlers/destroy.c
|
|
|
|
src/aswm/event_handlers/map.c)
|
2024-12-07 09:13:17 +00:00
|
|
|
target_include_directories(aswm PUBLIC ${X11_INCLUDE_DIR} include)
|
|
|
|
target_link_libraries(aswm ${X11_LIBRARIES})
|