forked from ashtuchkin/vive-diy-position-sensor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
26 lines (21 loc) · 853 Bytes
/
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
cmake_minimum_required(VERSION 3.2)
if (${PLATFORM} MATCHES "Teensy")
set(CMAKE_TOOLCHAIN_FILE "platform-teensy/teensy-arm.toolchain.cmake")
project(vive-diy-position-sensor)
add_subdirectory(platform-teensy)
add_subdirectory(src)
elseif (${PLATFORM} MATCHES "Particle")
set(CMAKE_TOOLCHAIN_FILE "platform-particle/stm32f2xx.toolchain.cmake")
project(vive-diy-position-sensor)
add_subdirectory(platform-particle)
add_subdirectory(src)
elseif (${PLATFORM} MATCHES "Host_Test")
# Need to define project at the top level to be able to call ctest from build directory
set(CMAKE_TOOLCHAIN_FILE "test/32bit.toolchain.cmake")
project(vive-diy-position-sensor)
include(CTest)
add_subdirectory(test)
add_subdirectory(src)
else()
message(FATAL_ERROR "Please provide PLATFORM env variable")
endif()