~ubuntu-branches/ubuntu/wily/marble/wily

« back to all changes in this revision

Viewing changes to src/plugins/runner/gpx/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell, José Manuel Santamaría Lema, Jonathan Riddell, Philip Muškovac
  • Date: 2015-08-13 11:44:25 UTC
  • mfrom: (1.5.12)
  • Revision ID: package-import@ubuntu.com-20150813114425-kdwa08ijv9p1f1rt
Tags: 4:15.08.0-0ubuntu1
[ José Manuel Santamaría Lema ]
* Update symbols: mark as optional symbols gone after building with
  GCC 5

[ Jonathan Riddell ]
* New upstream release
* Port to frameworks 5
* new upstream beta release

[ Philip Muškovac ]
* Add upstream_fix-vtable-linking.diff to fix vtable linking

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 ${CMAKE_CURRENT_BINARY_DIR}
7
7
 ${QT_INCLUDE_DIR}
8
8
)
9
 
if( QT4_FOUND )
 
9
if( QT4BUILD )
10
10
  INCLUDE(${QT_USE_FILE})
11
11
endif()
12
12
 
37
37
 
38
38
marble_add_plugin( GpxPlugin ${gpx_SRCS}  ${gpx_handlers_SRCS} )
39
39
 
40
 
if(QTONLY)
41
 
  if(WIN32 OR APPLE)
42
 
    # nothing to do
43
 
  else(WIN32 OR APPLE)
44
 
    install(FILES marble_gpx.desktop DESTINATION ${APPS_INSTALL_DIR})
45
 
  endif(WIN32 OR APPLE)
46
 
else(QTONLY)
47
 
  install(PROGRAMS marble_gpx.desktop DESTINATION ${APPS_INSTALL_DIR})
48
 
  install(FILES marble_part_gpx.desktop DESTINATION ${SERVICES_INSTALL_DIR})
49
 
  install(FILES marble_thumbnail_gpx.desktop DESTINATION ${SERVICES_INSTALL_DIR})
50
 
endif(QTONLY)
51
 
 
 
40
install(FILES marble_gpx.desktop DESTINATION ${APPS_INSTALL_DIR})
52
41
 
53
42
if( BUILD_MARBLE_TESTS )
54
43
    include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/tests )
55
44
    set( TestTrack_SRCS tests/TestTrack.cpp GpxParser.cpp ${gpx_handlers_SRCS} )
56
 
    if( QTONLY )
57
 
        qt_generate_moc( tests/TestTrack.cpp ${CMAKE_CURRENT_BINARY_DIR}/TestTrack.moc )
58
 
        include_directories(
59
 
            ${CMAKE_CURRENT_BINARY_DIR}/tests
60
 
        )
61
 
        if( NOT QT4_FOUND )
62
 
          include_directories(${Qt5Test_INCLUDE_DIRS})
63
 
        endif()
64
 
        set( TestTrack_SRCS TestTrack.moc ${TestTrack_SRCS} )
 
45
    qt_generate_moc( tests/TestTrack.cpp ${CMAKE_CURRENT_BINARY_DIR}/TestTrack.moc )
 
46
    include_directories(
 
47
        ${CMAKE_CURRENT_BINARY_DIR}/tests
 
48
    )
 
49
    if( QT5BUILD )
 
50
      include_directories(${Qt5Test_INCLUDE_DIRS})
 
51
    endif()
 
52
    set( TestTrack_SRCS TestTrack.moc ${TestTrack_SRCS} )
65
53
 
66
 
        add_executable( TestTrack ${TestTrack_SRCS} )
67
 
    else( QTONLY )
68
 
        kde4_add_executable( TestTrack ${TestTrack_SRCS} )
69
 
    endif( QTONLY )
 
54
    add_executable( TestTrack ${TestTrack_SRCS} )
70
55
    target_link_libraries( TestTrack ${QT_QTMAIN_LIBRARY}
71
56
                                     ${QT_QTCORE_LIBRARY}
72
57
                                     ${QT_QTGUI_LIBRARY}
73
58
                                     ${QT_QTTEST_LIBRARY}
74
 
                                     ${Qt5Test_LIBRARIES}
75
 
                                     marblewidget )
 
59
                                     ${MARBLEWIDGET} )
 
60
    if( QT5BUILD )
 
61
      target_link_libraries( TestTrack ${Qt5Test_LIBRARIES})
 
62
    endif()
76
63
    set_target_properties( TestTrack PROPERTIES
77
64
                            COMPILE_FLAGS "-DDATA_PATH=\"\\\"${DATA_PATH}\\\"\" -DPLUGIN_PATH=\"\\\"${PLUGIN_PATH}\\\"\"" )
78
65
    add_test( TestTrack TestTrack )
79
66
endif( BUILD_MARBLE_TESTS )
 
67
 
 
68
set(KDE_SKIP_UNINSTALL_TARGET ON CACHE BOOL "KDE uninstall target must be disabled")
 
69
find_package(ECM QUIET)
 
70
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH})
 
71
if(ECM_FOUND)
 
72
  include(KDEInstallDirs)
 
73
endif()
 
74
macro_optional_find_package(KF5 QUIET COMPONENTS KIO)
 
75
if(KF5_FOUND)
 
76
  install(FILES marble_part_gpx.desktop DESTINATION ${SERVICES_INSTALL_DIR})
 
77
  install(FILES marble_thumbnail_gpx.desktop DESTINATION ${SERVICES_INSTALL_DIR})
 
78
endif()