-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
59 lines (51 loc) · 1.69 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
# ---------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------- #
cmake_minimum_required(VERSION 3.0)
# ---------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------- #
project(
k159
VERSION
1.0.0
LANGUAGES
C
)
# ---------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------- #
set(CMAKE_C_STANDARD 99)
# ---------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------- #
add_library(
k159
src/k159.c
src/k159.h
)
target_include_directories(
k159
PRIVATE
src
)
target_link_libraries(
k159
usb-1.0
)
# ---------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------- #
add_executable(
k159-cli
src/k159-cli.c
)
target_include_directories(
k159-cli
PRIVATE
src
)
target_link_libraries(
k159-cli
k159
)
# ---------------------------------------------------------------------------- #