lockstep_scheduler: correct cmake target includes

This commit is contained in:
Matthias Grob 2019-02-01 10:26:36 +01:00
parent 2d922b5cb4
commit ffb8bb6066
3 changed files with 4 additions and 4 deletions

View File

@ -33,8 +33,9 @@ else()
add_library(lockstep_scheduler
src/lockstep_scheduler.cpp
)
include_directories(
include
target_include_directories(lockstep_scheduler
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include
)
endif()

View File

@ -1,4 +1,4 @@
#include "lockstep_scheduler/lockstep_scheduler.h"
#include <lockstep_scheduler/lockstep_scheduler.h>
LockstepScheduler::~LockstepScheduler()
{

View File

@ -59,7 +59,6 @@ target_link_libraries(px4_layer PRIVATE px4_daemon)
if(ENABLE_LOCKSTEP_SCHEDULER)
target_link_libraries(px4_layer PRIVATE lockstep_scheduler)
include_directories(${PX4_SOURCE_DIR}/platforms/posix/src/lockstep_scheduler/include)
endif()