if(NOT TARGET simUtil) return() endif() project(EXAMPLE_PERISCOPE) set(PROJECT_FILES PeriscopeExample.cpp ) add_executable(example_periscope ${PROJECT_FILES}) target_link_libraries(example_periscope PRIVATE simVis simUtil) set_target_properties(example_periscope PROPERTIES FOLDER "Examples" PROJECT_LABEL "Periscope" ) vsi_install_target(example_periscope SDK_Examples) # Link to Triton and SilverLining if available if(TARGET osgEarth::osgEarthTriton) target_link_libraries(example_periscope PRIVATE osgEarth::osgEarthTriton) target_compile_definitions(example_periscope PRIVATE HAVE_OSGEARTH_TRITON) endif() if (TARGET osgEarth::osgEarthSilverLining) target_link_libraries(example_periscope PRIVATE osgEarth::osgEarthSilverLining) target_compile_definitions(example_ocean PRIVATE HAVE_OSGEARTH_SILVERLINING) endif()