forked from khampf/g13
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
80 lines (73 loc) · 1.83 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
cmake_minimum_required(VERSION 3.13)
project(g13)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "-std=c++17")
include_directories(.)
add_executable(pbm2lpbm
pbm2lpbm.cpp)
add_executable(g13d
g13.hpp
g13_action.hpp
g13_action.cpp
g13_device.hpp
g13_device.cpp
g13_fonts.hpp
g13_fonts.cpp
g13_hotplug.hpp
g13_hotplug.cpp
g13_keys.hpp
g13_keys.cpp
g13_lcd.hpp
g13_lcd.cpp
g13_log.hpp
g13_log.cpp
g13_main.cpp
g13_manager.hpp
g13_manager.cpp
g13_profile.hpp
g13_profile.cpp
g13_stick.hpp
g13_stick.cpp
g13_test.py
helper.hpp
helper.cpp
logo.hpp)
add_custom_target(version
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMAND ${CMAKE_SOURCE_DIR}/GIT-VERSION-GEN
DEPENDS GIT-VERSION-GEN
COMMENT "Checking version header ..."
)
add_dependencies(g13d version)
set_property(DIRECTORY PROPERTY ADDITIONAL_MAKE_CLEAN_FILES
"${CMAKE_CURRENT_SOURCE_DIR}/GIT-VERSION.h"
"${CMAKE_CURRENT_SOURCE_DIR}/GIT-VERSION-FILE")
add_executable(runtests
g13.hpp
g13_action.hpp
g13_action.cpp
g13_device.hpp
g13_device.cpp
g13_fonts.hpp
g13_fonts.cpp
g13_hotplug.hpp
g13_hotplug.cpp
g13_keys.hpp
g13_keys.cpp
g13_lcd.hpp
g13_lcd.cpp
g13_log.hpp
g13_log.cpp
g13_manager.hpp
g13_manager.cpp
g13_profile.hpp
g13_profile.cpp
g13_stick.hpp
g13_stick.cpp
g13_test.py
helper.hpp
helper.cpp
logo.hpp
testKeys.cpp)
target_link_libraries (g13d usb-1.0 log4cpp evdev)
target_link_libraries (runtests usb-1.0 log4cpp evdev gtest gmock)