-
-
Notifications
You must be signed in to change notification settings - Fork 652
/
Copy pathCMakeLists.txt
92 lines (69 loc) · 2.64 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
project(plotjuggler)
cmake_minimum_required(VERSION 2.8)
find_package(Qt5 REQUIRED COMPONENTS Core Widgets PrintSupport Concurrent Xml)
find_package(catkin QUIET)
if(catkin_FOUND)
message("--------------------------------------------------------------------")
message("PlotJuggler is being built using CATKIN. ROS plugin will be compiled")
message("--------------------------------------------------------------------")
find_package(catkin REQUIRED COMPONENTS
rosbag
rosbag_storage
roscpp
roscpp_serialization
ros_type_introspection
rostime
topic_tools
)
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS ros_type_introspection
DEPENDS
)
endif()
set(CMAKE_AUTOMOC ON)
SET(CMAKE_AUTOUIC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fPIC")
include_directories(
${Qt5Widgets_INCLUDE_DIRS}
${Qt5Concurrent_INCLUDE_DIRS}
${Qt5PrintSupport_INCLUDE_DIRS}
${Qt5Xml_INCLUDE_DIRS}
#${Qt5OpenGl_INCLUDE_DIRS}
)
include_directories( ./qwt/src ./include ./color_widgets/include )
if(catkin_FOUND)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CATKIN_DEVEL_PREFIX}/lib/${PROJECT_NAME})
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CATKIN_DEVEL_PREFIX}/lib/${PROJECT_NAME})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CATKIN_DEVEL_PREFIX}/lib/${PROJECT_NAME})
elseif()
set(CMAKE_INSTALL_PREFIX "/usr/local")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
endif()
add_subdirectory( color_widgets )
add_subdirectory( qwt/src )
add_subdirectory( plotter_gui )
add_subdirectory( plugins/DataLoadCSV )
add_subdirectory( plugins/DataStreamSample )
if(catkin_FOUND)
add_subdirectory( plugins/ROS )
endif()
######################### create a package ####################################
SET(CPACK_GENERATOR "TGZ;DEB")
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Davide Faconti")
SET(CPACK_PACKAGE_CONTACT "[email protected]")
SET(CPACK_PACKAGING_INSTALL_PREFIX "/usr/local/")
SET(CPACK_INCLUDE_TOPLEVEL_DIRECTORY 0)
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "PlotJuggler: juggle with data")
SET(CPACK_PACKAGE_VENDOR "Icarus Technology")
SET(CPACK_PACKAGE_VERSION_MAJOR "0")
SET(CPACK_PACKAGE_VERSION_MINOR "6")
SET(CPACK_PACKAGE_VERSION_PATCH "0")
SET(CPACK_PACKAGE_VERSION "0.6.0")
SET(CPACK_PACKAGE_NAME "plotjuggler${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}")
SET(CPACK_DEBIAN_PACKAGE_DEPENDS "qt5-default")
set(CPACK_PACKAGE_INSTALL_DIRECTORY "PlotJuggler")
INCLUDE(CPack)