-
Notifications
You must be signed in to change notification settings - Fork 17
/
CMakeLists.txt
49 lines (42 loc) · 1.33 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
cmake_minimum_required(VERSION 3.12)
project("hyprscroller"
LANGUAGES CXX
DESCRIPTION "Hyprland layout similar to PaperWM and niri")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
find_package(PkgConfig REQUIRED)
pkg_check_modules(HYPRLAND REQUIRED hyprland)
pkg_check_modules(DEPS REQUIRED hyprutils hyprlang pixman-1 libdrm pangocairo)
# Compile flags
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED true)
set(CMAKE_CXX_FLAGS "-fno-gnu-unique")
add_library(hyprscroller SHARED
src/main.cpp
src/dispatchers.h
src/dispatchers.cpp
src/list.h
src/overview.h
src/overview.cpp
src/scroller.h
src/scroller.cpp
src/enums.h
src/common.h
src/sizes.h
src/sizes.cpp
src/window.h
src/window.cpp
src/decorations.h
src/decorations.cpp
src/column.h
src/column.cpp
src/row.h
src/row.cpp
src/functions.h
src/functions.cpp
)
add_compile_definitions(WLR_USE_UNSTABLE)
target_include_directories(hyprscroller PRIVATE ${HYPRLAND_INCLUDE_DIRS} ${DEPS_INCLUDE_DIRS})
set_target_properties(hyprscroller PROPERTIES PREFIX "")