33e205f123
Allows sharing object files between the fgfs and test_suite targets, in a follow-up commit.
17 lines
677 B
CMake
17 lines
677 B
CMake
function(setup_fgfs_includes target)
|
|
if(ENABLE_JSBSIM)
|
|
# FIXME - remove once JSBSim doesn't expose private headers
|
|
target_include_directories(${target} PRIVATE ${PROJECT_SOURCE_DIR}/src/FDM/JSBSim)
|
|
endif()
|
|
|
|
target_include_directories(${target} PRIVATE ${PLIB_INCLUDE_DIR})
|
|
target_include_directories(${target} PRIVATE ${PROJECT_SOURCE_DIR}/3rdparty/cjson)
|
|
# only actually needed for httpd.cxx
|
|
target_include_directories(${target} PRIVATE ${PROJECT_SOURCE_DIR}/3rdparty/mongoose)
|
|
|
|
if (FG_QT_ROOT_DIR)
|
|
# for QtPlatformHeaders
|
|
target_include_directories(${target} PRIVATE ${FG_QT_ROOT_DIR}/include)
|
|
endif()
|
|
|
|
endfunction()
|