-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
41 lines (35 loc) · 1.62 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
cmake_minimum_required(VERSION 3.13)
project(motion.emd.icm42670s.driver)
function(configure_executable _name)
message(STATUS "Configuring ${_name}")
add_executable(${_name}
${CMAKE_CURRENT_SOURCE_DIR}/examples/${_name}/${_name}.c
${_sources})
target_include_directories(${_name} PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/icm42670s/
${CMAKE_CURRENT_SOURCE_DIR}/examples/)
endfunction()
set(_sources
${CMAKE_CURRENT_SOURCE_DIR}/icm42670s/imu/inv_imu.h
${CMAKE_CURRENT_SOURCE_DIR}/icm42670s/imu/inv_imu_apex.c
${CMAKE_CURRENT_SOURCE_DIR}/icm42670s/imu/inv_imu_apex.h
${CMAKE_CURRENT_SOURCE_DIR}/icm42670s/imu/inv_imu_defs.h
${CMAKE_CURRENT_SOURCE_DIR}/icm42670s/imu/inv_imu_driver.c
${CMAKE_CURRENT_SOURCE_DIR}/icm42670s/imu/inv_imu_driver.h
${CMAKE_CURRENT_SOURCE_DIR}/icm42670s/imu/inv_imu_extfunc.h
${CMAKE_CURRENT_SOURCE_DIR}/icm42670s/imu/inv_imu_regmap_rev_a.h
${CMAKE_CURRENT_SOURCE_DIR}/icm42670s/imu/inv_imu_selftest.c
${CMAKE_CURRENT_SOURCE_DIR}/icm42670s/imu/inv_imu_selftest.h
${CMAKE_CURRENT_SOURCE_DIR}/icm42670s/imu/inv_imu_transport.c
${CMAKE_CURRENT_SOURCE_DIR}/icm42670s/imu/inv_imu_transport.h
${CMAKE_CURRENT_SOURCE_DIR}/icm42670s/imu/inv_imu_version.h
${CMAKE_CURRENT_SOURCE_DIR}/examples/system_interface.h
${CMAKE_CURRENT_SOURCE_DIR}/examples/system_interface.c)
configure_executable(eis)
configure_executable(freefall)
configure_executable(pedometer)
configure_executable(raw)
configure_executable(selftest)
configure_executable(smd)
configure_executable(tilt)
configure_executable(wom)