pxmlw6n2f/Gazebo_Distributed_TCP/plugins/rest_web/CMakeLists.txt

59 lines
1.0 KiB
CMake
Raw Permalink Normal View History

2019-03-28 10:57:49 +08:00
link_directories(
${GAZEBO_LIBRARY_DIRS}
${CMAKE_CURRENT_BINARY_DIR}
)
set (server_inc
RestApi.hh
RestException.hh
RestWebPlugin.hh
)
set (server_src
RestApi.cc
RestWebPlugin.cc
)
set (client_inc
RestUiLoginDialog.hh
RestUiPlugin.hh
RestUiWidget.hh
)
set (client_src
RestUiLoginDialog.cc
RestUiPlugin.cc
RestUiWidget.cc
)
set (qt_headers
RestUiWidget.hh
RestUiLoginDialog.hh
)
include ( ${QT_USE_FILE} )
add_definitions(${QT_DEFINITIONS})
QT4_WRAP_CPP(headers_MOC ${qt_headers})
include_directories(
${GAZEBO_INCLUDE_DIRS}
)
add_library(RestWebPlugin SHARED ${server_src} )
target_link_libraries(RestWebPlugin ${GAZEBO_libraries} gazebo_msgs)
install (TARGETS RestWebPlugin DESTINATION ${GAZEBO_PLUGIN_INSTALL_DIR})
gz_install_includes("plugins" ${server_inc})
add_library(RestUiPlugin SHARED ${client_src} ${headers_MOC})
target_link_libraries(RestUiPlugin ${GAZEBO_libraries} gazebo_msgs)
install (TARGETS RestUiPlugin DESTINATION ${GAZEBO_PLUGIN_INSTALL_DIR})
gz_install_includes("plugins" ${client_inc})