diff --git a/src/lib/parameters/CMakeLists.txt b/src/lib/parameters/CMakeLists.txt index f4fbeb0eb4..a68a6e38ad 100644 --- a/src/lib/parameters/CMakeLists.txt +++ b/src/lib/parameters/CMakeLists.txt @@ -201,4 +201,8 @@ if(${PX4_PLATFORM} STREQUAL "nuttx") target_link_libraries(parameters PRIVATE flashparams) endif() +if(${PX4_PLATFORM} STREQUAL "posix" OR ${PX4_PLATFORM} STREQUAL "ros2") + target_include_directories(parameters PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../../../platforms/posix/include/") +endif() + px4_add_functional_gtest(SRC ParameterTest.cpp LINKLIBS parameters)