mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 19:47:34 +08:00
28 lines
625 B
CMake
28 lines
625 B
CMake
#
|
|
# Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
|
|
#
|
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
if(DEFINED CMAKE_BUILD_TYPE)
|
|
set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE} CACHE STRING "Debug Release RelWithDebInfo MinSizeRel")
|
|
else()
|
|
set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "Debug Release RelWithDebInfo MinSizeRel")
|
|
endif()
|
|
|
|
project(uavcan)
|
|
|
|
#
|
|
# libuavcan
|
|
#
|
|
add_subdirectory(libuavcan)
|
|
|
|
#
|
|
# libuavcan drivers
|
|
#
|
|
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
|
message(STATUS "Adding Linux support library")
|
|
add_subdirectory(libuavcan_drivers/posix)
|
|
add_subdirectory(libuavcan_drivers/linux)
|
|
endif ()
|