mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
lockstep_scheduler cmake: spaces -> tabs
This commit is contained in:
@@ -2,39 +2,39 @@ cmake_minimum_required(VERSION 2.8.12)
|
|||||||
|
|
||||||
if(NOT PROJECT_NAME STREQUAL "px4")
|
if(NOT PROJECT_NAME STREQUAL "px4")
|
||||||
|
|
||||||
project(lockstep_scheduler)
|
project(lockstep_scheduler)
|
||||||
|
|
||||||
set (CMAKE_CXX_STANDARD 11)
|
set (CMAKE_CXX_STANDARD 11)
|
||||||
|
|
||||||
add_definitions(-DUNIT_TESTS)
|
add_definitions(-DUNIT_TESTS)
|
||||||
|
|
||||||
add_library(lockstep_scheduler
|
add_library(lockstep_scheduler
|
||||||
src/lockstep_scheduler.cpp
|
src/lockstep_scheduler.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(lockstep_scheduler
|
target_include_directories(lockstep_scheduler
|
||||||
PUBLIC
|
PUBLIC
|
||||||
$<INSTALL_INTERFACE:include>
|
$<INSTALL_INTERFACE:include>
|
||||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||||
PRIVATE
|
PRIVATE
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/src
|
${CMAKE_CURRENT_SOURCE_DIR}/src
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(lockstep_scheduler
|
target_link_libraries(lockstep_scheduler
|
||||||
pthread
|
pthread
|
||||||
)
|
)
|
||||||
|
|
||||||
target_compile_options(lockstep_scheduler PRIVATE -Wall -Wextra -Werror -O2)
|
target_compile_options(lockstep_scheduler PRIVATE -Wall -Wextra -Werror -O2)
|
||||||
|
|
||||||
add_subdirectory(test)
|
add_subdirectory(test)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
add_library(lockstep_scheduler
|
add_library(lockstep_scheduler
|
||||||
src/lockstep_scheduler.cpp
|
src/lockstep_scheduler.cpp
|
||||||
)
|
)
|
||||||
include_directories(
|
include_directories(
|
||||||
include
|
include
|
||||||
)
|
)
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user