forked from libhal/libhal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
62 lines (57 loc) · 1.74 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
# Copyright 2024 Khalil Estell
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
cmake_minimum_required(VERSION 3.15)
# Because libhal is a header only library, this cmake file only builds and
# executes the unit tests
project(libhal LANGUAGES CXX)
libhal_unit_test(SOURCES
tests/helpers.cpp
tests/can.test.cpp
tests/pwm.test.cpp
tests/timer.test.cpp
tests/i2c.test.cpp
tests/spi.test.cpp
tests/adc.test.cpp
tests/dac.test.cpp
tests/initializers.test.cpp
tests/input_pin.test.cpp
tests/interrupt_pin.test.cpp
tests/output_pin.test.cpp
tests/serial.test.cpp
tests/steady_clock.test.cpp
tests/motor.test.cpp
tests/timeout.test.cpp
tests/error.test.cpp
tests/accelerometer.test.cpp
tests/distance_sensor.test.cpp
tests/gyroscope.test.cpp
tests/magnetometer.test.cpp
tests/rotation_sensor.test.cpp
tests/temperature_sensor.test.cpp
tests/servo.test.cpp
tests/g_force.test.cpp
tests/io_waiter.test.cpp
tests/lengths.test.cpp
tests/angular_velocity_sensor.test.cpp
tests/current_sensor.test.cpp
tests/stream_dac.test.cpp
tests/lock.test.cpp
tests/experimental/usb.test.cpp
tests/zero_copy_serial.test.cpp
tests/buffered_can.test.cpp
tests/main.test.cpp
PACKAGES
tl-function-ref
LINK_LIBRARIES
tl::function-ref)