-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
48 lines (43 loc) · 1.43 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
cmake_minimum_required(VERSION 3.16)
project(traktor_kontrol_s4_mk1_driver_linux)
set(CMAKE_CXX_STANDARD 17)
include_directories(./classes)
include_directories(./includes)
add_compile_options(-lpthread)
add_executable(traktor_kontrol_s4_mk1_driver_linux
includes/Button.h
includes/EvDevHelper.h
includes/MidiHelper.h
includes/Knob.h
includes/Slider.h
includes/Led.h
includes/EvDevEvent.h
includes/Jog.h
includes/MidiEventOut.h
includes/AlsaHelper.h
includes/ConfigHelper.h
includes/MidiEventIn.h
includes/cxxopts.hpp
includes/UtilsHelper.h
classes/Button.cpp
classes/MidiHelper.cpp
classes/EvDevHelper.cpp
classes/Knob.cpp
classes/Slider.cpp
classes/Led.cpp
classes/EvDevEvent.cpp
classes/Jog.cpp
classes/MidiEventOut.cpp
classes/AlsaHelper.cpp
classes/ConfigHelper.cpp
classes/MidiEventIn.cpp
classes/UtilsHelper.cpp
main.cpp)
find_package(PkgConfig REQUIRED)
pkg_check_modules(PC_EVDEV libevdev REQUIRED)
find_path(EVDEV_INCLUDE_DIR libevdev/libevdev.h
HINTS ${PC_EVDEV_INCLUDE_DIRS} ${PC_EVDEV_INCLUDEDIR})
find_library(EVDEV_LIBRARY
NAMES evdev libevdev)
include_directories(${EVDEV_INCLUDE_DIR})
target_link_libraries(traktor_kontrol_s4_mk1_driver_linux rtmidi ${EVDEV_LIBRARY} libasound.so.2 libpthread.so.0)