1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
# Build TaskSpaceControl-UR10 example, from an installed Simbody.
# This must be invoked as a CMake subdirectory from
# the main examples CMakeLists.txt file.
set(header_files UR10.h)
set(shared_header_files
../shared/TaskSpace.h ../shared/SimbodyExampleHelper.h)
set(source_files TaskSpaceControl-UR10.cpp UR10.cpp)
set(shared_source_files ../shared/TaskSpace.cpp)
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})
|