Open paulmelis opened 4 years ago
If you like to use ospray_testing please add target ospray::ospray_testing
to target_link_libraries
, which will add the proper include path for it. ospray_Exports.cmake
has
set_target_properties(ospray::ospray_testing PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/ospray/ospray_testing"
INTERFACE_LINK_LIBRARIES "ospray::ospray_sdk"
)
Even though the ospray_testing headers are included in the superbuild using only
-I <ospray>/include
isn't enough, as one of the headers is then not found due to an incorrect quoted reference inospray/ospray_testing/builders/Builder.h
: