forked from Coffee2CodeNL/gebaar-libinput
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
33 lines (28 loc) · 898 Bytes
/
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
cmake_minimum_required(VERSION 3.10.2)
project(gebaar)
set(CMAKE_EXPORT_COMPILE_COMMANDS on)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror -pedantic -pthread")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
find_package(Libinput REQUIRED)
find_package(udev REQUIRED)
include_directories(${PROJECT_SOURCE_DIR}/src)
file(GLOB_RECURSE SOURCE_FILES RELATIVE ${PROJECT_SOURCE_DIR} src/*.h src/*.cpp)
add_executable(gebaard ${SOURCE_FILES})
target_link_libraries(gebaard
${LIBINPUT_LIBRARIES}
${UDEV_LIBRARIES}
stdc++fs
)
target_include_directories(gebaard PUBLIC
${LIBINPUT_INCLUDE_DIRS}
${UDEV_INCLUDE_DIRS}
libs/cxxopts/include
libs/cpptoml/include
libs/spdlog/include
)
target_compile_options(gebaard PUBLIC
${LIBINPUT_CFLAGS_OTHER}
${UDEV_CFLAGS_OTHER}
)
install(TARGETS gebaard DESTINATION bin)