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