This repository has been archived by the owner on Jan 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathCMakeLists.txt
57 lines (52 loc) · 1.56 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
# Copyright 2023 Google LLC
#
# 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/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/lengths.test.cpp
tests/angular_velocity_sensor.test.cpp
tests/current_sensor.test.cpp
tests/main.test.cpp
PACKAGES
boost-leaf
tl-function-ref
LINK_LIBRARIES
boost::leaf
tl::function-ref)