2023-02-18 21:24:31 +03:00
|
|
|
cmake_minimum_required(VERSION 3.22)
|
2023-02-18 20:06:27 +03:00
|
|
|
|
|
|
|
project(MirCompositor)
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
set(CMAKE_CXX_COMPILER g++)
|
|
|
|
|
2023-02-18 22:09:01 +03:00
|
|
|
set(ENV{PKG_CONFIG_PATH} "/usr/local/lib/pkgconfig/")
|
2023-02-18 20:06:27 +03:00
|
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
|
|
|
|
2023-02-18 21:10:42 +03:00
|
|
|
find_package(PkgConfig)
|
|
|
|
pkg_check_modules(MIRAL miral REQUIRED)
|
2023-02-18 20:06:27 +03:00
|
|
|
find_package(OpenGL REQUIRED)
|
2023-02-18 21:10:42 +03:00
|
|
|
|
2023-09-08 23:50:02 +03:00
|
|
|
add_executable(compositor
|
2023-10-27 23:26:34 +03:00
|
|
|
src/display_listener.cpp
|
|
|
|
src/main.cpp
|
|
|
|
src/miracle_window_management_policy.cpp
|
|
|
|
src/task_bar.cpp
|
|
|
|
src/wayland_app.cpp
|
|
|
|
src/wayland_surface.cpp
|
|
|
|
src/wayland_shm.cpp
|
2023-10-30 16:20:00 +03:00
|
|
|
src/protocols/xdg_shell_unstable_v6.c
|
|
|
|
src/xdg_surface.cpp
|
2023-11-19 19:30:05 +03:00
|
|
|
src/window_tree.cpp
|
2023-12-01 01:41:41 +03:00
|
|
|
src/node.cpp
|
2023-10-27 23:26:34 +03:00
|
|
|
)
|
2023-02-18 21:25:18 +03:00
|
|
|
|
2023-02-18 21:25:43 +03:00
|
|
|
target_include_directories(compositor PUBLIC SYSTEM ${MIRAL_INCLUDE_DIRS})
|
2023-10-27 23:26:34 +03:00
|
|
|
target_link_libraries( compositor ${MIRAL_LDFLAGS} -lwayland-client)
|