cmake_minimum_required (VERSION 2.4) project (openrave-modular-robots-examples) include(FindOpenRAVE.cmake) if( NOT OPENRAVE_FOUND ) message(FATAL_ERROR "could not find openrave, check for openrave-config in path") endif( NOT OPENRAVE_FOUND ) if( CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX ) add_definitions("-fno-strict-aliasing -Wall") endif( CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX ) include_directories(${OPENRAVE_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR}) link_directories(${OPENRAVE_LINK_DIRS}) add_executable(Experiment-1 Experiment-1.cpp TestBase.cpp Experiment.cpp) set_target_properties(Experiment-1 PROPERTIES COMPILE_FLAGS "${OPENRAVE_CXXFLAGS}") set_target_properties(Experiment-1 PROPERTIES LINK_FLAGS "${OPENRAVE_LINK_FLAGS}") target_link_libraries(Experiment-1 ${OPENRAVE_LIBRARY} ${OPENRAVE_CORE_LIBRARY}) add_executable(Experiment-2 Experiment-2.cpp TestBase.cpp Experiment.cpp) set_target_properties(Experiment-2 PROPERTIES COMPILE_FLAGS "${OPENRAVE_CXXFLAGS}") set_target_properties(Experiment-2 PROPERTIES LINK_FLAGS "${OPENRAVE_LINK_FLAGS}") target_link_libraries(Experiment-2 ${OPENRAVE_LIBRARY} ${OPENRAVE_CORE_LIBRARY}) add_executable(Experiment-3 Experiment-3.cpp TestBase.cpp Experiment.cpp) set_target_properties(Experiment-3 PROPERTIES COMPILE_FLAGS "${OPENRAVE_CXXFLAGS}") set_target_properties(Experiment-3 PROPERTIES LINK_FLAGS "${OPENRAVE_LINK_FLAGS}") target_link_libraries(Experiment-3 ${OPENRAVE_LIBRARY} ${OPENRAVE_CORE_LIBRARY}) add_executable(Experiment-4 Experiment-4.cpp TestBase.cpp Experiment.cpp) set_target_properties(Experiment-4 PROPERTIES COMPILE_FLAGS "${OPENRAVE_CXXFLAGS}") set_target_properties(Experiment-4 PROPERTIES LINK_FLAGS "${OPENRAVE_LINK_FLAGS}") target_link_libraries(Experiment-4 ${OPENRAVE_LIBRARY} ${OPENRAVE_CORE_LIBRARY}) add_executable(Experiment-5 Experiment-5.cpp TestBase.cpp Experiment.cpp) set_target_properties(Experiment-5 PROPERTIES COMPILE_FLAGS "${OPENRAVE_CXXFLAGS}") set_target_properties(Experiment-5 PROPERTIES LINK_FLAGS "${OPENRAVE_LINK_FLAGS}") target_link_libraries(Experiment-5 ${OPENRAVE_LIBRARY} ${OPENRAVE_CORE_LIBRARY}) add_executable(Experiment-6 Experiment-6.cpp TestBase.cpp Experiment.cpp) set_target_properties(Experiment-6 PROPERTIES COMPILE_FLAGS "${OPENRAVE_CXXFLAGS}") set_target_properties(Experiment-6 PROPERTIES LINK_FLAGS "${OPENRAVE_LINK_FLAGS}") target_link_libraries(Experiment-6 ${OPENRAVE_LIBRARY} ${OPENRAVE_CORE_LIBRARY}) add_executable(Experiment-7 Experiment-7.cpp TestBase.cpp Experiment.cpp) set_target_properties(Experiment-7 PROPERTIES COMPILE_FLAGS "${OPENRAVE_CXXFLAGS}") set_target_properties(Experiment-7 PROPERTIES LINK_FLAGS "${OPENRAVE_LINK_FLAGS}") target_link_libraries(Experiment-7 ${OPENRAVE_LIBRARY} ${OPENRAVE_CORE_LIBRARY}) add_executable(Experiment-8 Experiment-8.cpp TestBase.cpp Experiment.cpp) set_target_properties(Experiment-8 PROPERTIES COMPILE_FLAGS "${OPENRAVE_CXXFLAGS}") set_target_properties(Experiment-8 PROPERTIES LINK_FLAGS "${OPENRAVE_LINK_FLAGS}") target_link_libraries(Experiment-8 ${OPENRAVE_LIBRARY} ${OPENRAVE_CORE_LIBRARY}) add_executable(Test Test.cpp TestBase.cpp Experiment.cpp) set_target_properties(Test PROPERTIES COMPILE_FLAGS "${OPENRAVE_CXXFLAGS}") set_target_properties(Test PROPERTIES LINK_FLAGS "${OPENRAVE_LINK_FLAGS}") target_link_libraries(Test ${OPENRAVE_LIBRARY} ${OPENRAVE_CORE_LIBRARY})