Warning, /education/marble/examples/cpp/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # Generate fake headers
0002 # forwarding headers to simulate installed header paths with just a marble/ prefix
0003 # for headers which are located in other prefixes in the sources
0004 set(FAKEHEADERS_DIR ${CMAKE_CURRENT_BINARY_DIR}/fakeheaders)
0005 
0006 function(generateFakeHeaders basedir)
0007     foreach(_filename ${ARGN})
0008         set(_fileContent "#include <${basedir}/${_filename}>")
0009         file(WRITE ${FAKEHEADERS_DIR}/marble/${_filename} ${_fileContent})
0010     endforeach()
0011 endfunction()
0012 
0013 # create clean dir
0014 file(REMOVE_RECURSE ${FAKEHEADERS_DIR})
0015 file(MAKE_DIRECTORY ${FAKEHEADERS_DIR}/marble)
0016 
0017 generateFakeHeaders(geodata/data
0018     GeoDataCoordinates.h
0019     GeoDataDocument.h
0020     GeoDataFlyTo.h
0021     GeoDataGeometry.h
0022     GeoDataGroundOverlay.h
0023     GeoDataIconStyle.h
0024     GeoDataLatLonAltBox.h
0025     GeoDataLinearRing.h
0026     GeoDataLineString.h
0027     GeoDataLineStyle.h
0028     GeoDataLookAt.h
0029     GeoDataMultiGeometry.h
0030     GeoDataPlacemark.h
0031     GeoDataPlaylist.h
0032     GeoDataPoint.h
0033     GeoDataPolygon.h
0034     GeoDataPolyStyle.h
0035     GeoDataStyle.h
0036     GeoDataStyleMap.h
0037     GeoDataTour.h
0038 )
0039 generateFakeHeaders(geodata/parser
0040     GeoDataTypes.h
0041 )
0042 generateFakeHeaders(routing
0043     Route.h
0044     RouteRequest.h
0045     RoutingManager.h
0046     RoutingModel.h
0047 )
0048 
0049 # TODO: Change include directories for the library not to include all subdirectories,
0050 # and change #include statements to use <marble/...> and "..." includes only
0051 include_directories(
0052     ${CMAKE_SOURCE_DIR}/src/lib
0053     ${FAKEHEADERS_DIR}
0054 )
0055 
0056 set( MARBLE_EXAMPLES_INSTALL_DIR ${CMAKE_INSTALL_FULL_DATAROOTDIR}/apps/marble/examples )
0057 
0058 add_subdirectory( hello-marble )
0059 add_subdirectory( map-properties )
0060 add_subdirectory( drawing-places )
0061 add_subdirectory( kml-inspector )
0062 add_subdirectory( map-controls )
0063 add_subdirectory( overlay-rendering )
0064 add_subdirectory( squad-interpolation )
0065 add_subdirectory( geopainter )
0066 add_subdirectory( basic-routing )
0067 add_subdirectory( reverse-geocoding )
0068 add_subdirectory( vehicletracking )
0069 add_subdirectory( search )
0070 
0071 add_subdirectory( marble-game )
0072 add_subdirectory( marbleQuick2 )
0073 
0074 FIND_PACKAGE (OpenCV QUIET COMPONENTS core imgproc highgui videoio)
0075 if(OPENCV_HIGHGUI_FOUND)
0076   add_subdirectory( animation-video )
0077   add_subdirectory( tour-preview )
0078 endif()