Last change
on this file since 23 was 17, checked in by Sanahuja Guillaume, 9 years ago |
passage lib qwtdataview
|
File size:
2.3 KB
|
Rev | Line | |
---|
[9] | 1 | PROJECT(FlairGCS)
|
---|
| 2 | cmake_minimum_required(VERSION 2.8)
|
---|
| 3 | include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
|
---|
| 4 |
|
---|
| 5 | SET(PROJECT_SOURCE_FILES
|
---|
| 6 | src/Manager.cpp
|
---|
| 7 | src/ConnectionLayout.cpp
|
---|
| 8 | src/main.cpp
|
---|
| 9 | src/UdtSocket.cpp
|
---|
| 10 | src/DataPlot1D.cpp
|
---|
| 11 | src/DataPlot2D.cpp
|
---|
| 12 | src/RangeFinderPlot.cpp
|
---|
| 13 | src/Picture.cpp
|
---|
| 14 | src/DataRemote.cpp
|
---|
| 15 | src/file_ui.cpp
|
---|
| 16 | src/FormLayout.cpp
|
---|
| 17 | src/Vector3DSpinBox.cpp
|
---|
| 18 | src/DoubleSpinBox.cpp
|
---|
| 19 | src/SpinBox.cpp
|
---|
| 20 | src/CheckBox.cpp
|
---|
| 21 | src/ComboBox.cpp
|
---|
| 22 | src/Tab.cpp
|
---|
| 23 | src/TabWidget.cpp
|
---|
| 24 | src/GroupBox.cpp
|
---|
| 25 | src/GridLayout.cpp
|
---|
| 26 | src/Layout.cpp
|
---|
| 27 | src/PushButton.cpp
|
---|
| 28 | src/TextEdit.cpp
|
---|
| 29 | src/Label.cpp
|
---|
| 30 | src/Map.cpp
|
---|
| 31 | src/mapwidget.cpp
|
---|
| 32 | src/Landmark.cpp
|
---|
| 33 | src/XmlWidget.cpp
|
---|
| 34 | )
|
---|
| 35 |
|
---|
| 36 | SET(FILES_TO_MOC
|
---|
| 37 | src/UdtSocket.h
|
---|
| 38 | src/RangeFinderPlot.h
|
---|
| 39 | src/DataPlot2D.h
|
---|
| 40 | src/Picture.h
|
---|
| 41 | src/Manager.h
|
---|
| 42 | src/file_ui.h
|
---|
| 43 | src/Vector3DSpinBox.h
|
---|
| 44 | src/DoubleSpinBox.h
|
---|
| 45 | src/SpinBox.h
|
---|
| 46 | src/CheckBox.h
|
---|
| 47 | src/ComboBox.h
|
---|
| 48 | src/PushButton.h
|
---|
| 49 | src/mapwidget.h
|
---|
| 50 | src/Map.h
|
---|
| 51 | src/XmlWidget.h
|
---|
| 52 | src/ConnectionLayout.h
|
---|
| 53 | )
|
---|
| 54 |
|
---|
| 55 | FIND_PACKAGE(Qt4 REQUIRED)
|
---|
| 56 | SET(QT_USE_QTGUI TRUE)
|
---|
| 57 | SET(QT_USE_QTMAIN TRUE)
|
---|
| 58 | SET(QT_USE_QTXML TRUE)
|
---|
| 59 | SET(QT_USE_QTNETWORK TRUE)
|
---|
| 60 | INCLUDE(${QT_USE_FILE})
|
---|
| 61 |
|
---|
| 62 | QT4_WRAP_CPP(MOC_SOURCES ${FILES_TO_MOC})
|
---|
| 63 |
|
---|
| 64 | # generate rules for building source files from the resources
|
---|
| 65 | QT4_ADD_RESOURCES(RCC_SOURCES "src/ressources.qrc")
|
---|
| 66 |
|
---|
| 67 | ADD_DEFINITIONS(${QT_DEFINITIONS})
|
---|
| 68 | ADD_DEFINITIONS(-DQT_THREAD_SUPPORT -DQT_NO_DEBUG)
|
---|
| 69 |
|
---|
| 70 | include_directories(
|
---|
| 71 | ${CMAKE_SOURCE_DIR}/src
|
---|
| 72 | ${CMAKE_SOURCE_DIR}/../../lib/FlairCore/src/unexported
|
---|
| 73 | ${QT_INCLUDE_DIR}
|
---|
| 74 | ${CMAKE_SYSROOT}/usr/include/udt
|
---|
| 75 | ${CMAKE_SYSROOT}/usr/include/qwt
|
---|
[17] | 76 | ${CMAKE_SYSROOT}/usr/include/QwtDataViewer
|
---|
[9] | 77 | ${CMAKE_SYSROOT}/usr/include/qt4/QtMobility
|
---|
| 78 | ${CMAKE_SYSROOT}/usr/include/qt4/QtLocation
|
---|
| 79 | )
|
---|
| 80 |
|
---|
| 81 | LINK_DIRECTORIES (
|
---|
| 82 | ${QT_LIBRARY_DIR}
|
---|
| 83 | )
|
---|
| 84 |
|
---|
| 85 | ADD_EXECUTABLE(${PROJECT_NAME} ${PROJECT_SOURCE_FILES} ${MOC_SOURCES} ${RCC_SOURCES})
|
---|
[17] | 86 | TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${QT_LIBRARIES} qwt QwtDataViewer udt QtLocation FileLib z)
|
---|
[9] | 87 |
|
---|
| 88 | INSTALL(
|
---|
| 89 | TARGETS ${PROJECT_NAME}
|
---|
| 90 | RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/tools/${ARCH_DIR}
|
---|
| 91 | )
|
---|
| 92 |
|
---|
| 93 | add_custom_target(
|
---|
| 94 | svn_rev
|
---|
| 95 | COMMAND $ENV{FLAIR_ROOT}/flair-dev/scripts/svn_revision.sh $ENV{FLAIR_ROOT}/flair-src ${CMAKE_CURRENT_SOURCE_DIR}/src/svnversion.h
|
---|
| 96 | )
|
---|
| 97 |
|
---|
| 98 | add_dependencies(${PROJECT_NAME} svn_rev)
|
---|
| 99 |
|
---|
| 100 |
|
---|
| 101 | SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.