64 lines
1.1 KiB
CMake
64 lines
1.1 KiB
CMake
include ( ${QT_USE_FILE} )
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
include_directories(
|
|
${tinyxml_INCLUDE_DIRS}
|
|
${PROTOBUF_INCLUDE_DIR}
|
|
${SDFormat_INCLUDE_DIRS}
|
|
)
|
|
|
|
link_directories(
|
|
${CCD_LIBRARY_DIRS}
|
|
${SDFormat_LIBRARY_DIRS}
|
|
${tinyxml_LIBRARY_DIRS}
|
|
)
|
|
|
|
if (HAVE_BULLET)
|
|
link_directories(${BULLET_LIBRARY_DIRS})
|
|
endif()
|
|
|
|
if (HAVE_DART)
|
|
link_directories(${DARTCore_LIBRARY_DIRS})
|
|
endif()
|
|
|
|
if (CURL_FOUND)
|
|
include_directories(${CURL_INCLUDEDIR})
|
|
link_directories(${CURL_LIBDIR})
|
|
if (WIN32)
|
|
add_definitions(-DCURL_STATICLIB)
|
|
endif()
|
|
endif()
|
|
|
|
|
|
set (test_sources
|
|
gz_log_TEST.cc
|
|
gz_TEST.cc
|
|
)
|
|
gz_build_tests(${test_sources} EXTRA_LIBS libgazebo_client gazebo_transport)
|
|
|
|
add_executable(gz gz.cc gz_topic.cc gz_log.cc)
|
|
target_link_libraries(gz
|
|
libgazebo_client
|
|
gazebo_gui
|
|
gazebo_physics
|
|
gazebo_sensors
|
|
${QT_LIBRARIES}
|
|
${Boost_LIBRARIES}
|
|
)
|
|
|
|
if (UNIX)
|
|
target_link_libraries(gz pthread)
|
|
endif()
|
|
|
|
gz_install_executable(gz)
|
|
|
|
if (NOT WIN32)
|
|
roffman(gz 1)
|
|
endif()
|
|
|
|
install (PROGRAMS gzprop DESTINATION ${BIN_INSTALL_DIR})
|
|
|
|
if (NOT WIN32)
|
|
manpage(gzprop 1)
|
|
endif()
|