source: flair-src/trunk/tools/FlairGCS/CMakeLists.txt @ 17

Last change on this file since 17 was 17, checked in by Sanahuja Guillaume, 5 years ago

passage lib qwtdataview

File size: 2.3 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)
35
36SET(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
55FIND_PACKAGE(Qt4 REQUIRED)
56SET(QT_USE_QTGUI TRUE)
57SET(QT_USE_QTMAIN TRUE)
58SET(QT_USE_QTXML TRUE)
59SET(QT_USE_QTNETWORK TRUE)
60INCLUDE(${QT_USE_FILE})
61
62QT4_WRAP_CPP(MOC_SOURCES ${FILES_TO_MOC})
63
64# generate rules for building source files from the resources
65QT4_ADD_RESOURCES(RCC_SOURCES "src/ressources.qrc")
66
67ADD_DEFINITIONS(${QT_DEFINITIONS})
68ADD_DEFINITIONS(-DQT_THREAD_SUPPORT -DQT_NO_DEBUG)
69
70include_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
76        ${CMAKE_SYSROOT}/usr/include/QwtDataViewer
77        ${CMAKE_SYSROOT}/usr/include/qt4/QtMobility
78        ${CMAKE_SYSROOT}/usr/include/qt4/QtLocation
79)
80
81LINK_DIRECTORIES (
82        ${QT_LIBRARY_DIR}
83)
84
85ADD_EXECUTABLE(${PROJECT_NAME} ${PROJECT_SOURCE_FILES} ${MOC_SOURCES} ${RCC_SOURCES})
86TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${QT_LIBRARIES} qwt QwtDataViewer udt QtLocation FileLib z)
87
88INSTALL(
89        TARGETS ${PROJECT_NAME}
90        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/tools/${ARCH_DIR}
91)
92
93add_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
98add_dependencies(${PROJECT_NAME} svn_rev)
99
100
101SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
Note: See TracBrowser for help on using the repository browser.