2024-05-29 16:00:54 +03:00
|
|
|
cmake_minimum_required(VERSION 3.26)
|
|
|
|
|
|
|
|
project(WindowServer CXX)
|
|
|
|
|
|
|
|
set(SOURCES
|
|
|
|
main.cpp
|
|
|
|
Framebuffer.cpp
|
2024-06-02 17:27:09 +03:00
|
|
|
Window.cpp
|
2024-05-29 16:00:54 +03:00
|
|
|
WindowServer.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(WindowServer ${SOURCES})
|
|
|
|
target_compile_options(WindowServer PUBLIC -O2 -g)
|
2024-06-02 17:27:09 +03:00
|
|
|
target_link_libraries(WindowServer PUBLIC libc ban libfont libgui libinput)
|
2024-05-29 16:00:54 +03:00
|
|
|
|
|
|
|
add_custom_target(WindowServer-install
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/WindowServer ${BANAN_BIN}/
|
|
|
|
DEPENDS WindowServer
|
|
|
|
)
|