source: flair-src/branches/mavlink/tools/FlairGCS/CMakeLists.txt@ 57

Last change on this file since 57 was 48, checked in by Thomas Fuhrmann, 6 years ago

Add ListWidget

File size: 2.4 KB
Line 
1PROJECT(flairgcs)
2cmake_minimum_required(VERSION 2.8)
3include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
4
5SET(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 src/ListWidget.cpp
35)
36
37SET(FILES_TO_MOC
38 src/UdtSocket.h
39 src/RangeFinderPlot.h
40 src/DataPlot2D.h
41 src/Picture.h
42 src/Manager.h
43 src/file_ui.h
44 src/Vector3DSpinBox.h
45 src/DoubleSpinBox.h
46 src/SpinBox.h
47 src/CheckBox.h
48 src/ComboBox.h
49 src/PushButton.h
50 src/mapwidget.h
51 src/Map.h
52 src/XmlWidget.h
53 src/ConnectionLayout.h
54 src/ListWidget.h
55)
56
57FIND_PACKAGE(Qt4 REQUIRED)
58SET(QT_USE_QTGUI TRUE)
59SET(QT_USE_QTMAIN TRUE)
60SET(QT_USE_QTXML TRUE)
61SET(QT_USE_QTNETWORK TRUE)
62INCLUDE(${QT_USE_FILE})
63
64QT4_WRAP_CPP(MOC_SOURCES ${FILES_TO_MOC})
65
66# generate rules for building source files from the resources
67QT4_ADD_RESOURCES(RCC_SOURCES "src/ressources.qrc")
68
69ADD_DEFINITIONS(${QT_DEFINITIONS})
70ADD_DEFINITIONS(-DQT_THREAD_SUPPORT -DQT_NO_DEBUG)
71
72include_directories(
73 ${CMAKE_SOURCE_DIR}/src
74 ${CMAKE_SOURCE_DIR}/../../lib/FlairCore/src/unexported
75 ${QT_INCLUDE_DIR}
76 ${CMAKE_SYSROOT}/usr/include/udt
77 ${CMAKE_SYSROOT}/usr/include/qwt
78 ${CMAKE_SYSROOT}/usr/include/QwtDataViewer
79 ${CMAKE_SYSROOT}/usr/include/qt4/QtMobility
80 ${CMAKE_SYSROOT}/usr/include/qt4/QtLocation
81)
82
83LINK_DIRECTORIES (
84 ${QT_LIBRARY_DIR}
85)
86
87ADD_EXECUTABLE(${PROJECT_NAME} ${PROJECT_SOURCE_FILES} ${MOC_SOURCES} ${RCC_SOURCES})
88TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${QT_LIBRARIES} qwt QwtDataViewer udt QtLocation FileLib z)
89
90INSTALL(
91 TARGETS ${PROJECT_NAME}
92 RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/tools/${ARCH_DIR}
93)
94
95add_custom_target(
96 svn_rev
97 COMMAND $ENV{FLAIR_ROOT}/flair-dev/scripts/svn_revision.sh $ENV{FLAIR_ROOT}/flair-src ${CMAKE_CURRENT_SOURCE_DIR}/src/svnversion.h
98)
99
100add_dependencies(${PROJECT_NAME} svn_rev)
101
102
103SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
Note: See TracBrowser for help on using the repository browser.