1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
# Build Gazebo2Simbody example, from an installed Simbody.
# This must be invoked as a CMake subdirectory from
# the main examples CMakeLists.txt file.
set(header_files)
set(shared_header_files ../shared/SimbodyExampleHelper.h)
set(source_files Gazebo2Simbody.cpp)
set(shared_source_files)
set(all_header_files ${header_files} ${shared_header_files})
set(all_source_files ${source_files} ${shared_source_files})
add_definitions("-DSIMBODY_EXAMPLE_NAME=\"${EX_NAME}\"")
# Link with shared library
add_executable(${EX_NAME} ${all_source_files} ${all_header_files})
set_target_properties(${EX_NAME}
PROPERTIES
PROJECT_LABEL "Example - ${EX_NAME}")
target_link_libraries(${EX_NAME} ${Simbody_LIBRARIES})
|