[openrtm-commit:02994] r3128 - in trunk/OpenRTM-aist/examples: . StaticFsm
openrtm @ openrtm.org
openrtm @ openrtm.org
2017年 12月 11日 (月) 16:57:16 JST
Author: miyamoto
Date: 2017-12-11 16:57:16 +0900 (Mon, 11 Dec 2017)
New Revision: 3128
Added:
trunk/OpenRTM-aist/examples/StaticFsm/CMakeLists.txt
Modified:
trunk/OpenRTM-aist/examples/CMakeLists.txt
Log:
[incompat] add CMakeLists.txt
Modified: trunk/OpenRTM-aist/examples/CMakeLists.txt
===================================================================
--- trunk/OpenRTM-aist/examples/CMakeLists.txt 2017-12-11 07:37:17 UTC (rev 3127)
+++ trunk/OpenRTM-aist/examples/CMakeLists.txt 2017-12-11 07:57:16 UTC (rev 3128)
@@ -10,4 +10,4 @@
add_subdirectory(Analyzer)
add_subdirectory(Throughput)
-#add_subdirectory(FileTest)
+add_subdirectory(StaticFsm)
Added: trunk/OpenRTM-aist/examples/StaticFsm/CMakeLists.txt
===================================================================
--- trunk/OpenRTM-aist/examples/StaticFsm/CMakeLists.txt (rev 0)
+++ trunk/OpenRTM-aist/examples/StaticFsm/CMakeLists.txt 2017-12-11 07:57:16 UTC (rev 3128)
@@ -0,0 +1,161 @@
+cmake_minimum_required (VERSION 2.6)
+
+project (StaticFSM)
+
+
+link_directories(${ORB_LINK_DIR})
+include_directories(
+ ${RTM_INCLUDE_DIR}
+ ${ORB_INCLUDE_DIR}
+ )
+
+ADD_DEFINITIONS(${ORB_C_FLAGS_LIST})
+
+
+set(target Display)
+
+set(srcs Display.cpp Display.h)
+set(standalone_srcs DisplayComp.cpp ${srcs})
+
+if(VXWORKS AND NOT RTP)
+ set(standalone_srcs ${standalone_srcs} ${CMAKE_SOURCE_DIR}/src/lib/rtm/DataFlowComponentBase.cpp)
+ set(libs ${RTCSKEL_PROJECT_NAME})
+
+ add_executable(${target} ${standalone_srcs})
+ target_link_libraries(${target} ${libs})
+ add_dependencies(${target} ${RTM_PROJECT_NAME})
+
+ install(TARGETS ${target} RUNTIME DESTINATION examples)
+else()
+ if(VXWORKS)
+ set(libs ${RTM_PROJECT_NAME} ${ORB_LIBRARIES} ${COIL_PROJECT_NAME} ${RTCSKEL_PROJECT_NAME})
+ else(VXWORKS)
+ set(libs ${RTM_PROJECT_NAME} ${ORB_LIBRARIES} ${COIL_PROJECT_NAME})
+ endif(VXWORKS)
+
+ add_executable(${target}Comp ${standalone_srcs})
+ target_link_libraries(${target}Comp ${libs} ${RTM_LINKER_OPTION})
+ add_dependencies(${target}Comp ${RTM_PROJECT_NAME})
+
+ add_library(${target} SHARED ${srcs})
+ target_link_libraries(${target} ${libs} ${RTM_LINKER_OPTION})
+ add_dependencies(${target} ${RTM_PROJECT_NAME})
+ set_target_properties(${target} PROPERTIES PREFIX "")
+
+ install(TARGETS ${target}Comp RUNTIME DESTINATION examples)
+ if(WIN32)
+ install(TARGETS ${target} RUNTIME DESTINATION examples)
+ else(WIN32)
+ install(TARGETS ${target} LIBRARY DESTINATION examples)
+ endif(WIN32)
+endif()
+
+if(VXWORKS)
+ if(RTP)
+ set_target_properties(${target}Comp PROPERTIES SUFFIX ".vxe")
+ else(RTP)
+ set_target_properties(${target} PROPERTIES SUFFIX ".out")
+ endif(RTP)
+endif(VXWORKS)
+
+
+
+set(target Inputbutton)
+
+
+
+set(srcs Inputbutton.cpp Inputbutton.h)
+set(standalone_srcs InputbuttonComp.cpp ${srcs})
+
+if(VXWORKS AND NOT RTP)
+ set(standalone_srcs ${standalone_srcs} ${CMAKE_SOURCE_DIR}/src/lib/rtm/DataFlowComponentBase.cpp)
+ set(libs ${RTCSKEL_PROJECT_NAME})
+
+ add_executable(${target} ${standalone_srcs})
+ target_link_libraries(${target} ${libs})
+ add_dependencies(${target} ${RTM_PROJECT_NAME})
+
+ install(TARGETS ${target} RUNTIME DESTINATION examples)
+else()
+ if(VXWORKS)
+ set(libs ${RTM_PROJECT_NAME} ${ORB_LIBRARIES} ${COIL_PROJECT_NAME} ${RTCSKEL_PROJECT_NAME})
+ else(VXWORKS)
+ set(libs ${RTM_PROJECT_NAME} ${ORB_LIBRARIES} ${COIL_PROJECT_NAME})
+ endif(VXWORKS)
+
+ add_executable(${target}Comp ${standalone_srcs})
+ target_link_libraries(${target}Comp ${libs} ${RTM_LINKER_OPTION})
+ add_dependencies(${target}Comp ${RTM_PROJECT_NAME})
+
+ add_library(${target} SHARED ${srcs})
+ target_link_libraries(${target} ${libs} ${RTM_LINKER_OPTION})
+ add_dependencies(${target} ${RTM_PROJECT_NAME})
+ set_target_properties(${target} PROPERTIES PREFIX "")
+
+ install(TARGETS ${target}Comp RUNTIME DESTINATION examples)
+ if(WIN32)
+ install(TARGETS ${target} RUNTIME DESTINATION examples)
+ else(WIN32)
+ install(TARGETS ${target} LIBRARY DESTINATION examples)
+ endif(WIN32)
+endif()
+
+
+if(VXWORKS)
+ if(RTP)
+ set_target_properties(${target}Comp PROPERTIES SUFFIX ".vxe")
+ else(RTP)
+ set_target_properties(${target} PROPERTIES SUFFIX ".out")
+ endif(RTP)
+endif(VXWORKS)
+
+
+
+set(target Microwave)
+
+
+
+set(srcs Microwave.cpp Microwave.h MicrowaveFsm.cpp MicrowaveFsm.h)
+set(standalone_srcs MicrowaveComp.cpp ${srcs})
+
+if(VXWORKS AND NOT RTP)
+ set(standalone_srcs ${standalone_srcs} ${CMAKE_SOURCE_DIR}/src/lib/rtm/DataFlowComponentBase.cpp)
+ set(libs ${RTCSKEL_PROJECT_NAME})
+
+ add_executable(${target} ${standalone_srcs})
+ target_link_libraries(${target} ${libs})
+ add_dependencies(${target} ${RTM_PROJECT_NAME})
+
+ install(TARGETS ${target} RUNTIME DESTINATION examples)
+else()
+ if(VXWORKS)
+ set(libs ${RTM_PROJECT_NAME} ${ORB_LIBRARIES} ${COIL_PROJECT_NAME} ${RTCSKEL_PROJECT_NAME})
+ else(VXWORKS)
+ set(libs ${RTM_PROJECT_NAME} ${ORB_LIBRARIES} ${COIL_PROJECT_NAME})
+ endif(VXWORKS)
+
+ add_executable(${target}Comp ${standalone_srcs})
+ target_link_libraries(${target}Comp ${libs} ${RTM_LINKER_OPTION})
+ add_dependencies(${target}Comp ${RTM_PROJECT_NAME})
+
+ add_library(${target} SHARED ${srcs})
+ target_link_libraries(${target} ${libs} ${RTM_LINKER_OPTION})
+ add_dependencies(${target} ${RTM_PROJECT_NAME})
+ set_target_properties(${target} PROPERTIES PREFIX "")
+
+ install(TARGETS ${target}Comp RUNTIME DESTINATION examples)
+ if(WIN32)
+ install(TARGETS ${target} RUNTIME DESTINATION examples)
+ else(WIN32)
+ install(TARGETS ${target} LIBRARY DESTINATION examples)
+ endif(WIN32)
+endif()
+
+
+if(VXWORKS)
+ if(RTP)
+ set_target_properties(${target}Comp PROPERTIES SUFFIX ".vxe")
+ else(RTP)
+ set_target_properties(${target} PROPERTIES SUFFIX ".out")
+ endif(RTP)
+endif(VXWORKS)
\ No newline at end of file
More information about the openrtm-commit
mailing list