-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
46 lines (39 loc) · 949 Bytes
/
CMakeLists.txt
File metadata and controls
46 lines (39 loc) · 949 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
45
46
cmake_minimum_required(VERSION 3.10.0)
project(gptokeyb
VERSION 0.2.0
LANGUAGES C)
list(APPEND CMAKE_PREFIX_PATH
"${CMAKE_CURRENT_LIST_DIR}/cmake/modules"
)
add_compile_options(-Wall -Wextra -pedantic -Werror)
# NOTE: you can specify custom installation locations of the libraries
# by setting CMake variables -DSDL_INCLUDE_DIR=... or -DLIBEVDEV_INCLUDE_DIR=...
# on the command line
find_package(LIBEVDEV REQUIRED)
find_package(SDL2 REQUIRED)
add_subdirectory(interpose)
add_executable(gptokeyb2
src/analog.c
src/config.c
src/event.c
src/gptokeyb2.h
src/ini.c
src/input.c
src/keyboard.c
src/keys.c
src/main.c
src/state.c
src/util.c
src/xbox360.c
)
target_include_directories(gptokeyb2 PRIVATE
interpose
${LIBEVDEV_INCLUDE_DIR}
${SDL2_INCLUDE_DIRS}
)
target_link_libraries(gptokeyb2 PRIVATE
interpose
${LIBEVDEV_LIBRARY}
${SDL2_LIBRARIES}
m
)