mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-02 06:45:58 +01:00
28 lines
No EOL
560 B
CMake
28 lines
No EOL
560 B
CMake
cmake_minimum_required(VERSION 3.4)
|
|
project(Hypr
|
|
VERSION 0.1
|
|
DESCRIPTION "A Modern OOP C++ Window Manager"
|
|
)
|
|
|
|
add_compile_options(-std=c++17)
|
|
find_package(Threads REQUIRED)
|
|
|
|
file(GLOB_RECURSE SRCFILES "src/*.cpp")
|
|
|
|
add_executable(Hypr ${SRCFILES})
|
|
|
|
target_link_libraries(Hypr rt)
|
|
|
|
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
|
|
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
|
|
include(CPack)
|
|
|
|
target_link_libraries(Hypr
|
|
xcb
|
|
xcb-ewmh
|
|
xcb-icccm
|
|
xcb-keysyms
|
|
xcb-randr
|
|
xcb-xinerama
|
|
${CMAKE_THREAD_LIBS_INIT}
|
|
) |