-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
45 lines (39 loc) · 1.93 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
cmake_minimum_required(VERSION 3.13)
project(motion.emd.icm45605.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}/icm45605/
${CMAKE_CURRENT_SOURCE_DIR}/examples/)
endfunction()
set(_sources
${CMAKE_CURRENT_SOURCE_DIR}/icm45605/imu/inv_imu.h
${CMAKE_CURRENT_SOURCE_DIR}/icm45605/imu/inv_imu_defs.h
${CMAKE_CURRENT_SOURCE_DIR}/icm45605/imu/inv_imu_driver.c
${CMAKE_CURRENT_SOURCE_DIR}/icm45605/imu/inv_imu_driver.h
${CMAKE_CURRENT_SOURCE_DIR}/icm45605/imu/inv_imu_driver_advanced.c
${CMAKE_CURRENT_SOURCE_DIR}/icm45605/imu/inv_imu_driver_advanced.h
${CMAKE_CURRENT_SOURCE_DIR}/icm45605/imu/inv_imu_edmp.c
${CMAKE_CURRENT_SOURCE_DIR}/icm45605/imu/inv_imu_edmp.h
${CMAKE_CURRENT_SOURCE_DIR}/icm45605/imu/inv_imu_edmp_defs.h
${CMAKE_CURRENT_SOURCE_DIR}/icm45605/imu/inv_imu_edmp_memmap.h
${CMAKE_CURRENT_SOURCE_DIR}/icm45605/imu/inv_imu_regmap_be.h
${CMAKE_CURRENT_SOURCE_DIR}/icm45605/imu/inv_imu_regmap_le.h
${CMAKE_CURRENT_SOURCE_DIR}/icm45605/imu/inv_imu_selftest.c
${CMAKE_CURRENT_SOURCE_DIR}/icm45605/imu/inv_imu_selftest.h
${CMAKE_CURRENT_SOURCE_DIR}/icm45605/imu/inv_imu_transport.c
${CMAKE_CURRENT_SOURCE_DIR}/icm45605/imu/inv_imu_transport.h
${CMAKE_CURRENT_SOURCE_DIR}/icm45605/imu/inv_imu_version.h
${CMAKE_CURRENT_SOURCE_DIR}/examples/system_interface.h
${CMAKE_CURRENT_SOURCE_DIR}/examples/system_interface.c)
configure_executable(basic_read_fifo)
configure_executable(basic_read_registers)
configure_executable(adv_read_fifo)
configure_executable(adv_fifo_compression)
configure_executable(adv_wom)
configure_executable(adv_fsync)
configure_executable(edmp_apex)
configure_executable(selftest)