|
@@ -0,0 +1,122 @@
|
|
|
+cmake_minimum_required(VERSION 2.8.11)
|
|
|
+project(opendrive_if)
|
|
|
+
|
|
|
+
|
|
|
+message(STATUS "Enter opendrive_if")
|
|
|
+
|
|
|
+
|
|
|
+SET(QT_PATH /opt/qt/5.13.2/gcc_64)
|
|
|
+SET(AGX_QT_PATH /usr/include/aarch64-linux-gnu/qt5)
|
|
|
+
|
|
|
+find_path(QT_EXIST QtCore ${QT_PATH}/include/QtCore ${AGX_QT_PATH}/QtCore)
|
|
|
+
|
|
|
+if(QT_EXIST)
|
|
|
+include_directories(
|
|
|
+ ${QT_PATH}/include
|
|
|
+ ${QT_PATH}/include/QtCore
|
|
|
+ ${AGX_QT_PATH}
|
|
|
+ ${AGX_QT_PATH}/QtCore
|
|
|
+)
|
|
|
+link_directories(
|
|
|
+ ${QT_PATH}/lib
|
|
|
+)
|
|
|
+else()
|
|
|
+ message(FATAL_ERROR "Please set QT_PATH")
|
|
|
+endif()
|
|
|
+
|
|
|
+
|
|
|
+find_path(MODULECOMM_INCLUDE_DIR modulecomm.h ${CMAKE_SOURCE_DIR}/../../../../include )
|
|
|
+find_library(MODULECOMM_LIBRARAY_DIR modulecomm ${CMAKE_SOURCE_DIR}/../../../../bin )
|
|
|
+
|
|
|
+if (MODULECOMM_INCLUDE_DIR AND MODULECOMM_LIBRARAY_DIR )
|
|
|
+ message(STATUS "FIND modulecomm")
|
|
|
+ include_directories(
|
|
|
+ ${CMAKE_SOURCE_DIR}/../../../../include
|
|
|
+ ${CMAKE_SOURCE_DIR}/../../../../src/include/msgtype
|
|
|
+ )
|
|
|
+ link_directories(
|
|
|
+ ${CMAKE_SOURCE_DIR}/../../../../bin
|
|
|
+)
|
|
|
+ else( )
|
|
|
+ message(FATAL_ERROR "Not Found modulecomm")
|
|
|
+endif ()
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+## Find catkin macros and libraries
|
|
|
+## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
|
|
|
+## is used, also find other catkin packages
|
|
|
+find_package(catkin REQUIRED COMPONENTS
|
|
|
+ roscpp
|
|
|
+ pluginlib
|
|
|
+ sensor_msgs
|
|
|
+)
|
|
|
+find_package(Boost REQUIRED)
|
|
|
+find_package(Protobuf REQUIRED)
|
|
|
+
|
|
|
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
+set(CMAKE_AUTOMOC ON)
|
|
|
+set(CMAKE_AUTOUIC ON)
|
|
|
+set(CMAKE_AUTORCC ON)
|
|
|
+
|
|
|
+
|
|
|
+if(CMAKE_COMPILER_IS_GNUCXX)
|
|
|
+ set(CMAKE_CXX_FLAGS "-fPIC ${CMAKE_CXX_FLAGS}")
|
|
|
+ message(STATUS "optional:-fPIC")
|
|
|
+endif(CMAKE_COMPILER_IS_GNUCXX)
|
|
|
+
|
|
|
+
|
|
|
+## System dependencies are found with CMake's conventions
|
|
|
+# find_package(Boost REQUIRED COMPONENTS system)
|
|
|
+#find_package(Qt5Core REQUIRED)
|
|
|
+#qt5_wrap_cpp(MOC src/qt_ros_test.h)
|
|
|
+#qt5_wrap_ui(UIC src/qt_ros_test.ui)
|
|
|
+
|
|
|
+## Uncomment this if the package has a setup.py. This macro ensures
|
|
|
+## modules and global scripts declared therein get installed
|
|
|
+## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html
|
|
|
+# catkin_python_setup()
|
|
|
+
|
|
|
+
|
|
|
+###################################
|
|
|
+## catkin specific configuration ##
|
|
|
+###################################
|
|
|
+## The catkin_package macro generates cmake config files for your package
|
|
|
+## Declare things to be passed to dependent projects
|
|
|
+## INCLUDE_DIRS: uncomment this if you package contains header files
|
|
|
+## LIBRARIES: libraries you create in this project that dependent projects also need
|
|
|
+## CATKIN_DEPENDS: catkin_packages dependent projects also need
|
|
|
+## DEPENDS: system dependencies of this project that dependent projects also need
|
|
|
+catkin_package(
|
|
|
+## INCLUDE_DIRS include
|
|
|
+# LIBRARIES client_plugin
|
|
|
+ CATKIN_DEPENDS
|
|
|
+ roscpp std_msgs
|
|
|
+ sensor_msgs pluginlib
|
|
|
+ DEPENDS
|
|
|
+ Boost
|
|
|
+ Protobuf
|
|
|
+# DEPENDS system_lib
|
|
|
+)
|
|
|
+
|
|
|
+###########
|
|
|
+## Build ##
|
|
|
+###########
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+## Specify additional locations of header files
|
|
|
+## Your package locations should be listed before other locations
|
|
|
+include_directories(
|
|
|
+## INCLUDE_DIRS include
|
|
|
+ ${CMAKE_CURRENT_BINARY_DIR}/..
|
|
|
+ # ${CMAKE_SOURCE_DIR}/../devel/include
|
|
|
+ ${catkin_INCLUDE_DIRS} include
|
|
|
+ ${Boost_INCLUDE_DIR}
|
|
|
+)
|
|
|
+
|
|
|
+
|
|
|
+## Declare a C++ executable
|
|
|
+add_executable(${PROJECT_NAME}_node src/main.cpp )
|
|
|
+target_link_libraries(${PROJECT_NAME}_node ${catkin_LIBRARIES} ${OpenCV_LIBRARIES} ${Protobuf_LIBRARIES} Qt5Core Qt5Xml modulecomm)
|
|
|
+
|