-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
44 lines (35 loc) · 868 Bytes
/
CMakeLists.txt
File metadata and controls
44 lines (35 loc) · 868 Bytes
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
cmake_minimum_required(VERSION 3.20)
project(cavalayer)
set(CMAKE_C_STANDARD 17)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(PkgConfig REQUIRED)
pkg_check_modules(WLCLIENT REQUIRED wayland-client)
pkg_check_modules(WLEGL REQUIRED wayland-egl)
pkg_check_modules(EGL REQUIRED egl)
pkg_check_modules(GLES REQUIRED glesv2)
include_directories(
include
${WLCLIENT_INCLUDE_DIRS}
${WLEGL_INCLUDE_DIRS}
)
link_directories(
${WLCLIENT_LIBRARY_DIRS}
)
link_libraries(
${WLCLIENT_LIBRARIES}
${WLEGL_LIBRARIES}
${EGL_LIBRARIES}
${GLES_LIBRARIES}
)
file(GLOB_RECURSE SOURCES
"src/*.cpp"
"src/*.c"
)
set_source_files_properties(
src/layer-shell-client-protocol.c
src/xdg-shell-protocol.c
PROPERTIES LANGUAGE C
)
add_executable(${PROJECT_NAME} ${SOURCES})