-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
54 lines (44 loc) · 1.82 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
50
51
52
53
54
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
cmake_minimum_required(VERSION 2.6)
project(feathers CXX)
# main sources and headers
set(HEADER_DIRECTORY "include")
set(SOURCE_DIRECTORY "source")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -W -pthread -lsocket++ -fdiagnostics-color=always -Wall -Wcast-align -Wcast-qual -Wconversion -Wctor-dtor-privacy -Wdisabled-optimization -Wduplicated-cond -Wextra -Wformat=2 -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-include-dirs -Wno-sign-conversion -Wnoexcept -Wnull-dereference -Wold-style-cast -Woverloaded-virtual -Wredundant-decls -Wstrict-aliasing=1 -Wstrict-null-sentinel -Wstrict-overflow=5 -Wswitch-default -Wno-unknown-pragmas -Wuseless-cast -Wno-parentheses -Wno-unused-local-typedefs")
file(GLOB_RECURSE SOURCES_FILE "${SOURCE_DIRECTORY}/*.cpp")
file(GLOB_RECURSE HEADERS_FILE "${HEADER_DIRECTORY}/*.hpp")
find_package(Wayland REQUIRED)
find_package(Wlroots REQUIRED)
find_package(PkgConfig REQUIRED)
find_package(Pixman REQUIRED)
find_package(Albinos REQUIRED)
find_package(Libsocket REQUIRED)
include_directories(
${HEADER_DIRECTORY}
${WAYLAND_CLIENT_INCLUDE_DIR}
${WAYLAND_SERVER_INCLUDE_DIR}
${WLR_INCLUDE_DIRS}
${PIXMAN_INCLUDE_DIRS}
${ALBNINOS_INCLUDE_DIRS}
${LIBSOCKET_INCLUDE_DIRS}
)
add_executable(
${PROJECT_NAME}
${SOURCES_FILE}
${HEADERS_FILE}
)
target_link_libraries(${PROJECT_NAME}
${WAYLAND_CLIENT_LIBRARIES}
${WAYLAND_SERVER_LIBRARIES}
${WLR_LIBRARIES}
${PIXMAN_LIBRARIES}
xkbcommon
${ALBINOS_LIBRARIES}
${LIBSOCKET_LIBRARIES}
)
install(TARGETS ${PROJECT_NAME} DESTINATION /usr/bin)
install(FILES wallpaper.jpg openConfig.sh DESTINATION /usr/share/feathers/)
install(FILES waybar/config DESTINATION /etc/xdg/waybar/)