lockstep_scheduler cmake: spaces -> tabs

This commit is contained in:
Beat Küng 2019-01-09 15:32:46 +01:00 committed by Julian Oes
parent 2a47715385
commit 4bc59092f4
1 changed files with 23 additions and 23 deletions

View File

@ -2,39 +2,39 @@ cmake_minimum_required(VERSION 2.8.12)
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_library(lockstep_scheduler
src/lockstep_scheduler.cpp
)
add_library(lockstep_scheduler
src/lockstep_scheduler.cpp
)
target_include_directories(lockstep_scheduler
PUBLIC
$<INSTALL_INTERFACE:include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/src
)
target_include_directories(lockstep_scheduler
PUBLIC
$<INSTALL_INTERFACE:include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/src
)
target_link_libraries(lockstep_scheduler
pthread
)
target_link_libraries(lockstep_scheduler
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()
add_library(lockstep_scheduler
src/lockstep_scheduler.cpp
)
include_directories(
include
)
add_library(lockstep_scheduler
src/lockstep_scheduler.cpp
)
include_directories(
include
)
endif()