-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
96 lines (83 loc) · 1.76 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#
# This file is part of HiKoB Openlab.
#
# HiKoB Openlab is free software: you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public License
# as published by the Free Software Foundation, version 3.
#
# HiKoB Openlab is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with HiKoB Openlab. If not, see
# <http://www.gnu.org/licenses/>.
#
# Copyright (C) 2011-2013 HiKoB.
#
# Include the STM32L drivers folder
include_directories(
${PROJECT_SOURCE_DIR}/drivers/cortex-m3
${PROJECT_SOURCE_DIR}/drivers/stm32
${PROJECT_SOURCE_DIR}/drivers/stm32l1xx)
# Add the platform library
add_library(platform STATIC
${PROJECT_SOURCE_DIR}/platform/platform
azurelion
azurelion_leds
azurelion_drivers
azurelion_periph
azurelion_lib
azurelion_net
azurelion_io
)
add_library(platform_usb STATIC
${PROJECT_SOURCE_DIR}/platform/platform
azurelion
azurelion_leds
azurelion_drivers
azurelion_periph
azurelion_lib
azurelion_net
azurelion_io
azurelion_usb
)
# Allow for some more cyclic deps in libraries
set_property(TARGET platform APPEND PROPERTY LINK_INTERFACE_MULTIPLICITY 3)
# Link the library to the drivers and peripherals
target_link_libraries(platform
# Driver
drivers_stm32l1xx
# Periph
rf2xx
batfb
pga308
adg759
# Lib
freertos
random
printf
packet
event
softtimer
# Net
phy_rf2xx)
target_link_libraries(platform_usb
# Driver
drivers_stm32l1xx
# Periph
rf2xx
batfb
pga308
adg759
# Lib
freertos
random
printf
packet
event
softtimer
usb
# Net
phy_rf2xx)