Warning, /education/marble/src/plugins/runner/gpx/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 PROJECT( GpxPlugin )
0002 
0003 INCLUDE_DIRECTORIES(
0004  ${CMAKE_CURRENT_SOURCE_DIR}
0005  ${CMAKE_CURRENT_SOURCE_DIR}/handlers
0006  ${CMAKE_CURRENT_BINARY_DIR}
0007 )
0008 
0009 set( gpx_handlers_SRCS
0010         handlers/GPXElementDictionary.cpp
0011         handlers/GPXgpxTagHandler.cpp
0012         handlers/GPXnameTagHandler.cpp
0013         handlers/GPXdescTagHandler.cpp
0014         handlers/GPXtypeTagHandler.cpp
0015         handlers/GPXtrkTagHandler.cpp
0016         handlers/GPXtrkptTagHandler.cpp
0017         handlers/GPXtrksegTagHandler.cpp
0018         handlers/GPXwptTagHandler.cpp
0019         handlers/GPXtimeTagHandler.cpp
0020         handlers/GPXeleTagHandler.cpp
0021         handlers/GPXextensionsTagHandler.cpp
0022         handlers/GPXTrackPointExtensionTagHandler.cpp
0023         handlers/GPXhrTagHandler.cpp
0024         handlers/GPXrteTagHandler.cpp
0025         handlers/GPXrteptTagHandler.cpp
0026         handlers/GPXcmtTagHandler.cpp
0027         handlers/GPXlinkTagHandler.cpp
0028         handlers/GPXurlTagHandler.cpp
0029         handlers/GPXurlnameTagHandler.cpp
0030    )
0031 
0032 set( gpx_SRCS GpxParser.cpp GpxPlugin.cpp GpxRunner.cpp )
0033 
0034 marble_add_plugin( GpxPlugin ${gpx_SRCS}  ${gpx_handlers_SRCS} )
0035 
0036 if( BUILD_MARBLE_TESTS )
0037     include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/tests )
0038     set( TestTrack_SRCS tests/TestTrack.cpp GpxParser.cpp ${gpx_handlers_SRCS} )
0039     qt_generate_moc( tests/TestTrack.cpp ${CMAKE_CURRENT_BINARY_DIR}/TestTrack.moc )
0040     set( TestTrack_SRCS TestTrack.moc ${TestTrack_SRCS} )
0041 
0042     add_executable( TestTrack ${TestTrack_SRCS} )
0043     target_link_libraries( TestTrack Qt5::Test
0044                                      marblewidget )
0045     set_target_properties( TestTrack PROPERTIES
0046                             COMPILE_FLAGS "-DDATA_PATH=\"\\\"${DATA_PATH}\\\"\" -DPLUGIN_PATH=\"\\\"${PLUGIN_PATH}\\\"\"" )
0047                     add_test( NAME TestTrack COMMAND TestTrack )
0048 endif( BUILD_MARBLE_TESTS )
0049 
0050 
0051 find_package(ECM ${REQUIRED_ECM_VERSION} QUIET)
0052 if(NOT ECM_FOUND)
0053     return()
0054 endif()
0055 
0056 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH})
0057 
0058 include(KDEInstallDirs)
0059 
0060 macro_optional_find_package(KF5 ${REQUIRED_KF5_MIN_VERSION} QUIET COMPONENTS KIO)
0061 if(NOT KF5_FOUND)
0062     return()
0063 endif()
0064 
0065 # register marble part as handler
0066 # install again once part is fixed to load and show the passed file
0067 # install(FILES marble_part_gpx.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
0068 
0069 # register thumbnail plugin as handler
0070 install(FILES marble_thumbnail_gpx.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
0071 
0072 if(NOT WIN32 AND NOT APPLE)
0073     # register marble app as handler
0074     install(FILES marble_gpx.desktop DESTINATION ${KDE_INSTALL_APPDIR})
0075 endif()