2021-11-18 18:04:09 +01:00
|
|
|
cmake_minimum_required(VERSION 3.4)
|
|
|
|
project(Hypr
|
|
|
|
VERSION 0.1
|
|
|
|
DESCRIPTION "A Modern OOP C++ Window Manager"
|
|
|
|
)
|
|
|
|
|
|
|
|
add_compile_options(-std=c++17)
|
2021-11-22 18:43:55 +01:00
|
|
|
add_compile_options(-Wall -Wextra)
|
2021-11-21 11:25:26 +01:00
|
|
|
find_package(Threads REQUIRED)
|
2021-11-18 18:04:09 +01:00
|
|
|
|
|
|
|
file(GLOB_RECURSE SRCFILES "src/*.cpp")
|
|
|
|
|
|
|
|
add_executable(Hypr ${SRCFILES})
|
|
|
|
|
2021-11-21 11:25:26 +01:00
|
|
|
target_link_libraries(Hypr rt)
|
|
|
|
|
2021-11-18 18:04:09 +01:00
|
|
|
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
|
2021-11-21 11:25:26 +01:00
|
|
|
${CMAKE_THREAD_LIBS_INIT}
|
2021-11-18 18:04:09 +01:00
|
|
|
)
|