forked from SKKU-ESLAB/ANT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
28 lines (23 loc) · 859 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
27
28
cmake_minimum_required(VERSION 2.8)
include(${CMAKE_SOURCE_DIR}/kconfig.cmake)
import_kconfig(${CMAKE_SOURCE_DIR}/.config)
option(VIRTUAL_SENSOR "Use virtual sensor when there's no sensor" OFF)
add_custom_target(
out-dir ALL
COMMAND mkdir -p ${CMAKE_SOURCE_DIR}/out/bin
COMMAND mkdir -p ${CMAKE_SOURCE_DIR}/out/bin/api
COMMAND mkdir -p ${CMAKE_SOURCE_DIR}/out/config
COMMAND mkdir -p ${CMAKE_SOURCE_DIR}/out/libs
COMMAND mkdir -p ${CMAKE_SOURCE_DIR}/out/device-drivers
COMMAND mkdir -p ${CMAKE_SOURCE_DIR}/out/apps/system
COMMAND mkdir -p ${CMAKE_SOURCE_DIR}/out/apps/user
COMMENT "Make output directory"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
add_subdirectory(framework)
add_subdirectory(subprojects)
add_subdirectory(api)
add_subdirectory(new-api)
add_subdirectory(apps)
add_subdirectory(models)
add_subdirectory(target)