[openrtm-commit:00145] r2156 - in trunk/OpenRTM-aist/utils: . cmake
openrtm @ openrtm.org
openrtm @ openrtm.org
2011年 6月 3日 (金) 18:22:49 JST
Author: n-ando
Date: 2011-06-03 18:22:48 +0900 (Fri, 03 Jun 2011)
New Revision: 2156
Added:
trunk/OpenRTM-aist/utils/cmake/
trunk/OpenRTM-aist/utils/cmake/FindOpenRTM.cmake
trunk/OpenRTM-aist/utils/cmake/FindOpenRTM.cmake.org
trunk/OpenRTM-aist/utils/cmake/Makefile.am
Log:
CMake related files have been added.
Added: trunk/OpenRTM-aist/utils/cmake/FindOpenRTM.cmake
===================================================================
--- trunk/OpenRTM-aist/utils/cmake/FindOpenRTM.cmake (rev 0)
+++ trunk/OpenRTM-aist/utils/cmake/FindOpenRTM.cmake 2011-06-03 09:22:48 UTC (rev 2156)
@@ -0,0 +1,380 @@
+# -*- cmake -*-
+#
+# @file FindOpenRTM.cmake
+# @brief Find script for cmake
+#
+# omniORB variables
+# - OMNIORB_DIR:
+# - OMNIORB_CFLAGS: cflags
+# - OMNIORB_INCLUDE_DIRS:
+# - OMNIORB_LDFLAGS: linker flags
+# - OMNIORB_LIBRARY_DIRS:
+# - OMNIORB_LIBRARIES:
+#
+# OpenRTM variables used in RTC's CMakeList.txt
+# - OPENRTM_CFLAGS: cflags (-Wall -O etc.)
+# - OPENRTM_INCLUDE_DIRS: include directory options (-I<dir0> -I<dir1>)
+# - OPENRTM_LDFLAGS: linker options
+# - OPENRTM_LIBRARY_DIRS: library directories (-L/usr/local/share etc...)
+# - OPENRTM_LIBRARIES: libraries (-lcoil etc...)
+# - OPENRTM_DIR: (C:\Program Files\OpenRTM-aist\1.1 for only windows)
+# - OPENRTM_VERSION_MAJOR: major version number
+# - OPENRTM_VERSION_MINOR: minor version number
+# - OPENRTM_IDL_WRAPPER: rtm-skelwrapper command
+# - OPENRTM_IDL_WRAPPER_FLAGS: rtm-skelwrapper flag
+# - OPENRTM_IDLC: IDL command
+# - OPENRTM_IDLFLAGS: IDL optins
+# - OPENRTM_VERSION: x.y.x version string
+#
+
+set(OMNIORB_FOUND FALSE)
+set(OPENRTM_FOUND FALSE)
+
+#------------------------------------------------------------
+# UNIX
+# this script use pkg-config
+#
+# 1. include pkg-config function
+# 2. find omniORB
+# - OMNIORB_CFLAGS
+# - OMNIORB_LDFLAGS
+# 3. find OpenRTM-aist
+# - OPENRTM_CFLAGS
+#
+#
+#
+#------------------------------------------------------------
+if(UNIX)
+ include(FindPkgConfig)
+
+ #
+ # Getting omniORB settings
+ #
+ pkg_check_modules(OMNIORB REQUIRED "omniORB4")
+ if(NOT OMNIORB_DIR)
+ if(OMNIORB_FOUND)
+ set(OMNIORB_DIR "${OMNIORB_PREFIX}")
+ endif()
+ set(OMNIORB_DIR "${OMNIORB_DIR}" CACHE PATH "omniORB root directory")
+ endif()
+
+ set(OMNIORB_CFLAGS ${OMNIORB_CFLAGS_OTHER})
+ set(OMNIORB_LDFLAGS ${OMNIORB_LDFLAGS_OTHER})
+
+ #
+ # Getting OpenRTM-aist settings
+ #
+ pkg_check_modules(OPENRTM REQUIRED "openrtm-aist")
+ if(NOT OPENRTM_DIR)
+ if(OPENRTM_FOUND)
+ set(OPENRTM_DIR "${OPENRTM_PREFIX}")
+ endif()
+ set(OPENRTM_DIR "${OPENRTM_DIR}" CACHE PATH "OpenRTM-aist root directory")
+ endif()
+
+ set(OPENRTM_CFLAGS ${OPENRTM_CFLAGS_OTHER})
+ set(OPENRTM_LDFLAGS ${OPENRTM_LDFLAGS_OTHER})
+
+ #
+ # Getting OPENRTM_VERSION_MAJOR/MINOR/PATCH
+ #
+ string(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" "\\1"
+ OPENRTM_VERSION_MAJOR "${OPENRTM_VERSION}")
+ string(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" "\\2"
+ OPENRTM_VERSION_MINOR "${OPENRTM_VERSION}")
+ string(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" "\\3"
+ OPENRTM_VERSION_PATCH "${OPENRTM_VERSION}")
+
+ #
+ # Getting IDL Compiler settings
+ #
+ set(OPENRTM_IDLC "")
+ set(OPENRTM_IDLFLAGS "")
+
+ execute_process(COMMAND rtm-config --idlc
+ RESULT_VARIABLE result_val
+ OUTPUT_VARIABLE output_val
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
+ if(result_val EQUAL 0)
+ set(OPENRTM_IDLC "${output_val}")
+ endif()
+
+ execute_process(COMMAND rtm-config --idlflags
+ RESULT_VARIABLE result_val
+ OUTPUT_VARIABLE output_val
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
+ if(result_val EQUAL 0)
+ string(REPLACE " " ";" output_val ${output_val})
+ set(OPENRTM_IDLFLAGS ${output_val} "-I${OPENRTM_DIR}/include/rtm/idl")
+ endif()
+
+ #
+ # Getting IDL Skelton wrapper generator settings
+ #
+ set(OPENRTM_IDL_WRAPPER "rtm-skelwrapper")
+ set(OPENRTM_IDL_WRAPPER_FLAGS --include-dir="" --skel-suffix=Skel --stub-suffix=Stub)
+
+endif(UNIX)
+
+set(WIN32_RTM "")
+set(RTM_CONFIG_CMAKE "")
+
+macro(rtm_norm_path _path _result)
+ string(REGEX REPLACE "\"" "" _var "${_path}")
+ string(REGEX REPLACE "[/]+" "/" _var "${_var}")
+ string(REGEX REPLACE "[/]$" "" _var "${_var}")
+ set(${_result} "${_var}")
+endmacro(rtm_norm_path)
+
+#------------------------------------------------------------
+# Windows
+#------------------------------------------------------------
+if(WIN32)
+ set(WIN32_RTM "10")
+ find_file(rtm_conf "rtm_config.cmake" PATHS "$ENV{RTM_ROOT}/etc")
+ if(rtm_conf)
+ set(WIN32_RTM "11")
+ set(RTM_CONFIG_CMAKE "${rtm_conf}")
+ endif()
+endif(WIN32)
+
+if(WIN32_RTM STREQUAL "11")
+ include("${RTM_CONFIG_CMAKE}")
+ message(STATUS "Configuration by ${RTM_CONFIG_CMAKE}.")
+
+ # omniORB
+ set(OMNIORB_DIR "${omni_root}")
+ set(OMNIORB_FOUND TRUE)
+ file(TO_CMAKE_PATH "${OMNIORB_DIR}" OMNIORB_DIR)
+
+ foreach(path ${omni_includes})
+ file(TO_CMAKE_PATH "${path}" path)
+ rtm_norm_path("${path}" path)
+ list(APPEND OMNIORB_INCLUDE_DIRS "${path}")
+ endforeach()
+ foreach(path ${omni_libdir})
+ file(TO_CMAKE_PATH "${path}" path)
+ rtm_norm_path("${path}" path)
+ list(APPEND OMNIORB_LIBRARY_DIRS "${path}")
+ endforeach()
+
+ # omniORB version
+ file(GLOB _vers RELATIVE "${OMNIORB_DIR}" "${OMNIORB_DIR}/THIS_IS_OMNIORB*")
+ if("${_vers}" STREQUAL "")
+ message(FATAL_ERROR "omniORB version file not found.")
+ endif()
+
+ set(OMNIORB_VERSION "${_vers}")
+ string(REGEX REPLACE "THIS_IS_OMNIORB_" ""
+ OMNIORB_VERSION "${OMNIORB_VERSION}")
+ string(REGEX REPLACE "[_]" "."
+ OMNIORB_VERSION "${OMNIORB_VERSION}")
+
+ set(OMNIORB_VERSION_NUM "${omni_dllver}")
+ set(OMNIORB_THREAD_NUM "${omnithread_dllver}")
+
+ set(OMNIORB_CFLAGS -D__WIN32__;-D__x86__;-D__NT__;-D__OSVERSION__=4;-D_CRT_SECURE_NO_DEPRECATE)
+ if(${OMNIORB_VERSION_NUM} MATCHES "^40")
+ set(OMNIORB_CFLAGS ${OMNIORB_CFLAGS};-D_WIN32_WINNT=0x0400)
+ else()
+ set(OMNIORB_CFLAGS ${OMNIORB_CFLAGS};-D_WIN32_WINNT=0x0500;-DRTC_CORBA_CXXMAPPING11)
+ endif()
+
+ string(REGEX REPLACE " " ";" libs "${omni_lib}")
+ foreach(library ${libs})
+ string(REGEX REPLACE ".lib$" "" library "${library}")
+ list(APPEND OMNIORB_LIBRARIES optimized "${library}")
+ endforeach()
+ string(REGEX REPLACE " " ";" libs "${omni_libd}")
+ foreach(library ${libs})
+ string(REGEX REPLACE ".lib$" "" library "${library}")
+ list(APPEND OMNIORB_LIBRARIES debug "${library}")
+ endforeach()
+
+ # OpenRTM-aist
+ set(OPENRTM_DIR "${rtm_root}")
+ set(OPENRTM_FOUND TRUE)
+ file(TO_CMAKE_PATH "${OPENRTM_DIR}" OPENRTM_DIR)
+
+ # OpenRTM-aist version
+ set(OPENRTM_VERSION "${rtm_version}")
+ string(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" "\\1"
+ OPENRTM_VERSION_MAJOR "${OPENRTM_VERSION}")
+ string(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" "\\2"
+ OPENRTM_VERSION_MINOR "${OPENRTM_VERSION}")
+ string(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" "\\3"
+ OPENRTM_VERSION_PATCH "${OPENRTM_VERSION}")
+
+ set(OPENRTM_VERSION_NUM "${rtm_dllver}")
+
+ foreach(path ${rtm_includes})
+ file(TO_CMAKE_PATH "${path}" path)
+ rtm_norm_path("${path}" path)
+ list(APPEND OPENRTM_INCLUDE_DIRS "${path}")
+ endforeach()
+ foreach(path ${rtm_libdir})
+ file(TO_CMAKE_PATH "${path}" path)
+ rtm_norm_path("${path}" path)
+ list(APPEND OPENRTM_LIBRARY_DIRS "${path}")
+ endforeach()
+
+ set(OPENRTM_CFLAGS "-DINCLUDE_stub_in_nt_dll")
+
+ string(REGEX REPLACE " " ";" libs "${rtm_lib}")
+ foreach(library ${libs})
+ string(REGEX REPLACE ".lib$" "" library "${library}")
+ list(APPEND OPENRTM_LIBRARIES optimized "${library}")
+ endforeach()
+ string(REGEX REPLACE " " ";" libs "${coil_lib}")
+ foreach(library ${libs})
+ string(REGEX REPLACE ".lib$" "" library "${library}")
+ list(APPEND OPENRTM_LIBRARIES optimized "${library}")
+ endforeach()
+
+ string(REGEX REPLACE " " ";" libs "${rtm_libd}")
+ foreach(library ${libs})
+ string(REGEX REPLACE ".lib$" "" library "${library}")
+ list(APPEND OPENRTM_LIBRARIES debug "${library}")
+ endforeach()
+ string(REGEX REPLACE " " ";" libs "${coil_libd}")
+ foreach(library ${libs})
+ string(REGEX REPLACE ".lib$" "" library "${library}")
+ list(APPEND OPENRTM_LIBRARIES debug "${library}")
+ endforeach()
+
+ # IDL Compiler
+ set(OPENRTM_IDLC "${rtm_idlc}")
+ string(REGEX REPLACE " " ";" flags "${rtm_idlflags}")
+ foreach(flag ${flags})
+ string(REGEX REPLACE "\\$\\(SolutionDir\\)" "${OPENRTM_DIR}" flag "${flag}")
+ string(REGEX REPLACE "[\\]" "/" flag "${flag}")
+ list(APPEND OPENRTM_IDLFLAGS "${flag}")
+ endforeach()
+
+ # IDL Skelton Wrapper
+ set(OPENRTM_IDL_WRAPPER "rtm-skelwrapper.py")
+ set(OPENRTM_IDL_WRAPPER_FLAGS --include-dir="" --skel-suffix=Skel --stub-suffix=Stub)
+
+endif(WIN32_RTM STREQUAL "11")
+
+if(WIN32_RTM STREQUAL "10")
+ # omniORB
+ if(NOT OMNIORB_DIR)
+ if(NOT $ENV{OMNI_ROOT} STREQUAL "")
+ set(OMNIORB_DIR "$ENV{OMNI_ROOT}")
+ set(OMNIORB_FOUND TRUE)
+ endif()
+ set(OMNIORB_DIR "${OMNIORB_DIR}" CACHE PATH "omniORB root directory")
+ if(NOT OMNIORB_FOUND)
+ message(FATAL_ERROR "omniORB not found.")
+ endif()
+ endif()
+
+ set(OMNIORB_INCLUDE_DIRS "${OMNIORB_DIR}/include")
+ set(OMNIORB_LIBRARY_DIRS "${OMNIORB_DIR}/lib/x86_win32")
+
+ # omniORB version
+ file(GLOB _vers RELATIVE "${OMNIORB_DIR}" "${OMNIORB_DIR}/THIS_IS_OMNIORB*")
+ if("${_vers}" STREQUAL "")
+ message(FATAL_ERROR "omniORB version file not found.")
+ endif()
+
+ set(OMNIORB_VERSION "${_vers}")
+ string(REGEX REPLACE "THIS_IS_OMNIORB_" ""
+ OMNIORB_VERSION "${OMNIORB_VERSION}")
+ string(REGEX REPLACE "[_]" "."
+ OMNIORB_VERSION "${OMNIORB_VERSION}")
+ string(REGEX REPLACE "[.]" ""
+ OMNIORB_VERSION_NUM "${OMNIORB_VERSION}")
+
+ # omnithread version
+ file(GLOB _vers RELATIVE "${OMNIORB_LIBRARY_DIRS}" "${OMNIORB_LIBRARY_DIRS}/omnithread*")
+ if("${_vers}" STREQUAL "")
+ message(FATAL_ERROR "omnithread not found.")
+ endif()
+ string(REGEX REPLACE ".*omnithread([0-9]+)_rt\\.lib.*" "\\1"
+ OMNIORB_THREAD_NUM "${_vers}")
+
+ set(OMNIORB_CFLAGS -D__WIN32__;-D__x86__;-D__NT__;-D__OSVERSION__=4;-D_CRT_SECURE_NO_DEPRECATE)
+ if(${OMNIORB_VERSION_NUM} MATCHES "^40")
+ set(OMNIORB_CFLAGS ${OMNIORB_CFLAGS};-D_WIN32_WINNT=0x0400)
+ else()
+ set(OMNIORB_CFLAGS ${OMNIORB_CFLAGS};-D_WIN32_WINNT=0x0500;-DRTC_CORBA_CXXMAPPING11)
+ endif()
+
+ foreach(library "omniORB${OMNIORB_VERSION_NUM}_rt"
+ "omniDynamic${OMNIORB_VERSION_NUM}_rt"
+ "omnithread${OMNIORB_THREAD_NUM}_rt")
+ list(APPEND OMNIORB_LIBRARIES optimized "${library}" debug "${library}d")
+ endforeach()
+
+ # OpenRTM-aist
+ if(NOT OPENRTM_DIR)
+ if(NOT $ENV{RTM_ROOT} STREQUAL "")
+ set(OPENRTM_DIR "$ENV{RTM_ROOT}")
+ set(OPENRTM_FOUND TRUE)
+ endif()
+ set(OPENRTM_DIR "${OPENRTM_DIR}" CACHE PATH "OpenRTM-aist root directory")
+ if(NOT OPENRTM_FOUND)
+ message(FATAL_ERROR "OpenRTM-aist not found.")
+ endif()
+ endif()
+
+ # OpenRTM-aist version
+ set(OPENRTM_VERSION "${OPENRTM_DIR}")
+ string(REGEX REPLACE ".*OpenRTM-aist/" "" OPENRTM_VERSION "${OPENRTM_VERSION}")
+ string(REGEX REPLACE "([0-9]+)\\.([0-9]+)" "\\1" OPENRTM_VERSION_MAJOR "${OPENRTM_VERSION}")
+ string(REGEX REPLACE "([0-9]+)\\.([0-9]+)" "\\2" OPENRTM_VERSION_MINOR "${OPENRTM_VERSION}")
+ set(OPENRTM_VERSION_PATCH "0")
+ set(OPENRTM_VERSION "${OPENRTM_VERSION_MAJOR}.${OPENRTM_VERSION_MINOR}.${OPENRTM_VERSION_PATCH}")
+ string(REGEX REPLACE "[.]" ""
+ OPENRTM_VERSION_NUM "${OPENRTM_VERSION}")
+
+ set(OPENRTM_INCLUDE_DIRS "${OPENRTM_DIR}")
+ set(OPENRTM_LIBRARY_DIRS "${OPENRTM_DIR}/bin")
+ list(APPEND OPENRTM_INCLUDE_DIRS "${OPENRTM_DIR}/rtm/idl")
+
+ set(OPENRTM_CFLAGS "-DINCLUDE_stub_in_nt_dll")
+
+ foreach(library "RTC${OPENRTM_VERSION_NUM}" "coil")
+ list(APPEND OPENRTM_LIBRARIES optimized "${library}" debug "${library}d")
+ endforeach()
+ foreach(library "ws2_32" "mswsock")
+ list(APPEND OPENRTM_LIBRARIES optimized "${library}" debug "${library}")
+ endforeach()
+
+ # IDL Compiler
+ set(OPENRTM_IDLC "omniidl")
+ set(OPENRTM_IDLFLAGS -bcxx -Wba -nf)
+
+ # IDL Skelton Wrapper
+ set(OPENRTM_IDL_WRAPPER "rtm-skelwrapper.py")
+ set(OPENRTM_IDL_WRAPPER_FLAGS --include-dir="" --skel-suffix=Skel --stub-suffix=Stub)
+
+endif(WIN32_RTM STREQUAL "10")
+
+message(STATUS "FindOpenRTM setup done.")
+
+message(STATUS " OMNIORB_DIR=${OMNIORB_DIR}")
+message(STATUS " OMNIORB_VERSION=${OMNIORB_VERSION}")
+message(STATUS " OMNIORB_CFLAGS=${OMNIORB_CFLAGS}")
+message(STATUS " OMNIORB_INCLUDE_DIRS=${OMNIORB_INCLUDE_DIRS}")
+message(STATUS " OMNIORB_LDFLAGS=${OMNIORB_LDFLAGS}")
+message(STATUS " OMNIORB_LIBRARY_DIRS=${OMNIORB_LIBRARY_DIRS}")
+message(STATUS " OMNIORB_LIBRARIES=${OMNIORB_LIBRARIES}")
+
+message(STATUS " OPENRTM_DIR=${OPENRTM_DIR}")
+message(STATUS " OPENRTM_VERSION=${OPENRTM_VERSION}")
+message(STATUS " OPENRTM_VERSION_MAJOR=${OPENRTM_VERSION_MAJOR}")
+message(STATUS " OPENRTM_VERSION_MINOR=${OPENRTM_VERSION_MINOR}")
+message(STATUS " OPENRTM_VERSION_PATCH=${OPENRTM_VERSION_PATCH}")
+message(STATUS " OPENRTM_CFLAGS=${OPENRTM_CFLAGS}")
+message(STATUS " OPENRTM_INCLUDE_DIRS=${OPENRTM_INCLUDE_DIRS}")
+message(STATUS " OPENRTM_LDFLAGS=${OPENRTM_LDFLAGS}")
+message(STATUS " OPENRTM_LIBRARY_DIRS=${OPENRTM_LIBRARY_DIRS}")
+message(STATUS " OPENRTM_LIBRARIES=${OPENRTM_LIBRARIES}")
+
+message(STATUS " OPENRTM_IDLC=${OPENRTM_IDLC}")
+message(STATUS " OPENRTM_IDLFLAGS=${OPENRTM_IDLFLAGS}")
+message(STATUS " OPENRTM_IDL_WRAPPER=${OPENRTM_IDL_WRAPPER}")
+message(STATUS " OPENRTM_IDL_WRAPPER_FLAGS=${OPENRTM_IDL_WRAPPER_FLAGS}")
\ No newline at end of file
Property changes on: trunk/OpenRTM-aist/utils/cmake/FindOpenRTM.cmake
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/OpenRTM-aist/utils/cmake/FindOpenRTM.cmake.org
===================================================================
--- trunk/OpenRTM-aist/utils/cmake/FindOpenRTM.cmake.org (rev 0)
+++ trunk/OpenRTM-aist/utils/cmake/FindOpenRTM.cmake.org 2011-06-03 09:22:48 UTC (rev 2156)
@@ -0,0 +1,325 @@
+
+set(OMNIORB_FOUND FALSE)
+set(OPENRTM_FOUND FALSE)
+
+
+if(UNIX)
+ include(FindPkgConfig)
+
+ # omniORB
+ pkg_check_modules(OMNIORB REQUIRED "omniORB4")
+ if(NOT OMNIORB_DIR)
+ if(OMNIORB_FOUND)
+ set(OMNIORB_DIR "${OMNIORB_PREFIX}")
+ endif()
+ set(OMNIORB_DIR "${OMNIORB_DIR}" CACHE PATH "omniORB root directory")
+ endif()
+
+ set(OMNIORB_CFLAGS ${OMNIORB_CFLAGS_OTHER})
+ set(OMNIORB_LDFLAGS ${OMNIORB_LDFLAGS_OTHER})
+
+ # OpenRTM-aist
+ pkg_check_modules(OPENRTM REQUIRED "openrtm-aist")
+ if(NOT OPENRTM_DIR)
+ if(OPENRTM_FOUND)
+ set(OPENRTM_DIR "${OPENRTM_PREFIX}")
+ endif()
+ set(OPENRTM_DIR "${OPENRTM_DIR}" CACHE PATH "OpenRTM-aist root directory")
+ endif()
+
+ set(OPENRTM_CFLAGS ${OPENRTM_CFLAGS_OTHER})
+ set(OPENRTM_LDFLAGS ${OPENRTM_LDFLAGS_OTHER})
+
+ string(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" "\\1"
+ OPENRTM_VERSION_MAJOR "${OPENRTM_VERSION}")
+ string(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" "\\2"
+ OPENRTM_VERSION_MINOR "${OPENRTM_VERSION}")
+ string(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" "\\3"
+ OPENRTM_VERSION_PATCH "${OPENRTM_VERSION}")
+
+ # IDL Compiler
+ set(OPENRTM_IDLC "")
+ set(OPENRTM_IDLFLAGS "")
+
+ execute_process(COMMAND rtm-config --idlc
+ RESULT_VARIABLE result_val
+ OUTPUT_VARIABLE output_val
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
+ if(result_val EQUAL 0)
+ set(OPENRTM_IDLC "${output_val}")
+ endif()
+
+ execute_process(COMMAND rtm-config --idlflags
+ RESULT_VARIABLE result_val
+ OUTPUT_VARIABLE output_val
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
+ if(result_val EQUAL 0)
+ string(REPLACE " " ";" output_val ${output_val})
+ set(OPENRTM_IDLFLAGS ${output_val} "-I${OPENRTM_DIR}/include/rtm/idl")
+ endif()
+
+ # IDL Skelton Wrapper
+ set(OPENRTM_IDL_WRAPPER "rtm-skelwrapper")
+ set(OPENRTM_IDL_WRAPPER_FLAGS --include-dir="" --skel-suffix=Skel --stub-suffix=Stub)
+
+endif(UNIX)
+
+set(WIN32_RTM "")
+set(RTM_CONFIG_CMAKE "")
+
+macro(rtm_norm_path _path _result)
+ string(REGEX REPLACE "\"" "" _var "${_path}")
+ string(REGEX REPLACE "[/]+" "/" _var "${_var}")
+ string(REGEX REPLACE "[/]$" "" _var "${_var}")
+ set(${_result} "${_var}")
+endmacro(rtm_norm_path)
+
+if(WIN32)
+ set(WIN32_RTM "10")
+ find_file(rtm_conf "rtm_config.cmake" PATHS "$ENV{RTM_ROOT}/etc")
+ if(rtm_conf)
+ set(WIN32_RTM "11")
+ set(RTM_CONFIG_CMAKE "${rtm_conf}")
+ endif()
+endif(WIN32)
+
+if(WIN32_RTM STREQUAL "11")
+ include("${RTM_CONFIG_CMAKE}")
+ message(STATUS "Configuration by ${RTM_CONFIG_CMAKE}.")
+
+ # omniORB
+ set(OMNIORB_DIR "${omni_root}")
+ set(OMNIORB_FOUND TRUE)
+ file(TO_CMAKE_PATH "${OMNIORB_DIR}" OMNIORB_DIR)
+
+ foreach(path ${omni_includes})
+ file(TO_CMAKE_PATH "${path}" path)
+ rtm_norm_path("${path}" path)
+ list(APPEND OMNIORB_INCLUDE_DIRS "${path}")
+ endforeach()
+ foreach(path ${omni_libdir})
+ file(TO_CMAKE_PATH "${path}" path)
+ rtm_norm_path("${path}" path)
+ list(APPEND OMNIORB_LIBRARY_DIRS "${path}")
+ endforeach()
+
+ # omniORB version
+ file(GLOB _vers RELATIVE "${OMNIORB_DIR}" "${OMNIORB_DIR}/THIS_IS_OMNIORB*")
+ if("${_vers}" STREQUAL "")
+ message(FATAL_ERROR "omniORB version file not found.")
+ endif()
+
+ set(OMNIORB_VERSION "${_vers}")
+ string(REGEX REPLACE "THIS_IS_OMNIORB_" ""
+ OMNIORB_VERSION "${OMNIORB_VERSION}")
+ string(REGEX REPLACE "[_]" "."
+ OMNIORB_VERSION "${OMNIORB_VERSION}")
+
+ set(OMNIORB_VERSION_NUM "${omni_dllver}")
+ set(OMNIORB_THREAD_NUM "${omnithread_dllver}")
+
+ set(OMNIORB_CFLAGS -D__WIN32__;-D__x86__;-D__NT__;-D__OSVERSION__=4;-D_CRT_SECURE_NO_DEPRECATE)
+ if(${OMNIORB_VERSION_NUM} MATCHES "^40")
+ set(OMNIORB_CFLAGS ${OMNIORB_CFLAGS};-D_WIN32_WINNT=0x0400)
+ else()
+ set(OMNIORB_CFLAGS ${OMNIORB_CFLAGS};-D_WIN32_WINNT=0x0500;-DRTC_CORBA_CXXMAPPING11)
+ endif()
+
+ string(REGEX REPLACE " " ";" libs "${omni_lib}")
+ foreach(library ${libs})
+ string(REGEX REPLACE ".lib$" "" library "${library}")
+ list(APPEND OMNIORB_LIBRARIES optimized "${library}")
+ endforeach()
+ string(REGEX REPLACE " " ";" libs "${omni_libd}")
+ foreach(library ${libs})
+ string(REGEX REPLACE ".lib$" "" library "${library}")
+ list(APPEND OMNIORB_LIBRARIES debug "${library}")
+ endforeach()
+
+ # OpenRTM-aist
+ set(OPENRTM_DIR "${rtm_root}")
+ set(OPENRTM_FOUND TRUE)
+ file(TO_CMAKE_PATH "${OPENRTM_DIR}" OPENRTM_DIR)
+
+ # OpenRTM-aist version
+ set(OPENRTM_VERSION "${rtm_version}")
+ string(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" "\\1"
+ OPENRTM_VERSION_MAJOR "${OPENRTM_VERSION}")
+ string(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" "\\2"
+ OPENRTM_VERSION_MINOR "${OPENRTM_VERSION}")
+ string(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" "\\3"
+ OPENRTM_VERSION_PATCH "${OPENRTM_VERSION}")
+
+ set(OPENRTM_VERSION_NUM "${rtm_dllver}")
+
+ foreach(path ${rtm_includes})
+ file(TO_CMAKE_PATH "${path}" path)
+ rtm_norm_path("${path}" path)
+ list(APPEND OPENRTM_INCLUDE_DIRS "${path}")
+ endforeach()
+ foreach(path ${rtm_libdir})
+ file(TO_CMAKE_PATH "${path}" path)
+ rtm_norm_path("${path}" path)
+ list(APPEND OPENRTM_LIBRARY_DIRS "${path}")
+ endforeach()
+
+ set(OPENRTM_CFLAGS "-DUSE_stub_in_nt_dll")
+
+ string(REGEX REPLACE " " ";" libs "${rtm_lib}")
+ foreach(library ${libs})
+ string(REGEX REPLACE ".lib$" "" library "${library}")
+ list(APPEND OPENRTM_LIBRARIES optimized "${library}")
+ endforeach()
+ string(REGEX REPLACE " " ";" libs "${coil_lib}")
+ foreach(library ${libs})
+ string(REGEX REPLACE ".lib$" "" library "${library}")
+ list(APPEND OPENRTM_LIBRARIES optimized "${library}")
+ endforeach()
+
+ string(REGEX REPLACE " " ";" libs "${rtm_libd}")
+ foreach(library ${libs})
+ string(REGEX REPLACE ".lib$" "" library "${library}")
+ list(APPEND OPENRTM_LIBRARIES debug "${library}")
+ endforeach()
+ string(REGEX REPLACE " " ";" libs "${coil_libd}")
+ foreach(library ${libs})
+ string(REGEX REPLACE ".lib$" "" library "${library}")
+ list(APPEND OPENRTM_LIBRARIES debug "${library}")
+ endforeach()
+
+ # IDL Compiler
+ set(OPENRTM_IDLC "${rtm_idlc}")
+ string(REGEX REPLACE " " ";" flags "${rtm_idlflags}")
+ foreach(flag ${flags})
+ string(REGEX REPLACE "\\$\\(SolutionDir\\)" "${OPENRTM_DIR}" flag "${flag}")
+ string(REGEX REPLACE "[\\]" "/" flag "${flag}")
+ list(APPEND OPENRTM_IDLFLAGS "${flag}")
+ endforeach()
+
+ # IDL Skelton Wrapper
+ set(OPENRTM_IDL_WRAPPER "rtm-skelwrapper.py")
+ set(OPENRTM_IDL_WRAPPER_FLAGS --include-dir="" --skel-suffix=Skel --stub-suffix=Stub)
+
+endif(WIN32_RTM STREQUAL "11")
+
+if(WIN32_RTM STREQUAL "10")
+ # omniORB
+ if(NOT OMNIORB_DIR)
+ if(NOT $ENV{OMNI_ROOT} STREQUAL "")
+ set(OMNIORB_DIR "$ENV{OMNI_ROOT}")
+ set(OMNIORB_FOUND TRUE)
+ endif()
+ set(OMNIORB_DIR "${OMNIORB_DIR}" CACHE PATH "omniORB root directory")
+ if(NOT OMNIORB_FOUND)
+ message(FATAL_ERROR "omniORB not found.")
+ endif()
+ endif()
+
+ set(OMNIORB_INCLUDE_DIRS "${OMNIORB_DIR}/include")
+ set(OMNIORB_LIBRARY_DIRS "${OMNIORB_DIR}/lib/x86_win32")
+
+ # omniORB version
+ file(GLOB _vers RELATIVE "${OMNIORB_DIR}" "${OMNIORB_DIR}/THIS_IS_OMNIORB*")
+ if("${_vers}" STREQUAL "")
+ message(FATAL_ERROR "omniORB version file not found.")
+ endif()
+
+ set(OMNIORB_VERSION "${_vers}")
+ string(REGEX REPLACE "THIS_IS_OMNIORB_" ""
+ OMNIORB_VERSION "${OMNIORB_VERSION}")
+ string(REGEX REPLACE "[_]" "."
+ OMNIORB_VERSION "${OMNIORB_VERSION}")
+ string(REGEX REPLACE "[.]" ""
+ OMNIORB_VERSION_NUM "${OMNIORB_VERSION}")
+
+ # omnithread version
+ file(GLOB _vers RELATIVE "${OMNIORB_LIBRARY_DIRS}" "${OMNIORB_LIBRARY_DIRS}/omnithread*")
+ if("${_vers}" STREQUAL "")
+ message(FATAL_ERROR "omnithread not found.")
+ endif()
+ string(REGEX REPLACE ".*omnithread([0-9]+)_rt\\.lib.*" "\\1"
+ OMNIORB_THREAD_NUM "${_vers}")
+
+ set(OMNIORB_CFLAGS -D__WIN32__;-D__x86__;-D__NT__;-D__OSVERSION__=4;-D_CRT_SECURE_NO_DEPRECATE)
+ if(${OMNIORB_VERSION_NUM} MATCHES "^40")
+ set(OMNIORB_CFLAGS ${OMNIORB_CFLAGS};-D_WIN32_WINNT=0x0400)
+ else()
+ set(OMNIORB_CFLAGS ${OMNIORB_CFLAGS};-D_WIN32_WINNT=0x0500;-DRTC_CORBA_CXXMAPPING11)
+ endif()
+
+ foreach(library "omniORB${OMNIORB_VERSION_NUM}_rt"
+ "omniDynamic${OMNIORB_VERSION_NUM}_rt"
+ "omnithread${OMNIORB_THREAD_NUM}_rt")
+ list(APPEND OMNIORB_LIBRARIES optimized "${library}" debug "${library}d")
+ endforeach()
+
+ # OpenRTM-aist
+ if(NOT OPENRTM_DIR)
+ if(NOT $ENV{RTM_ROOT} STREQUAL "")
+ set(OPENRTM_DIR "$ENV{RTM_ROOT}")
+ set(OPENRTM_FOUND TRUE)
+ endif()
+ set(OPENRTM_DIR "${OPENRTM_DIR}" CACHE PATH "OpenRTM-aist root directory")
+ if(NOT OPENRTM_FOUND)
+ message(FATAL_ERROR "OpenRTM-aist not found.")
+ endif()
+ endif()
+
+ # OpenRTM-aist version
+ set(OPENRTM_VERSION "${OPENRTM_DIR}")
+ string(REGEX REPLACE ".*OpenRTM-aist/" "" OPENRTM_VERSION "${OPENRTM_VERSION}")
+ string(REGEX REPLACE "([0-9]+)\\.([0-9]+)" "\\1" OPENRTM_VERSION_MAJOR "${OPENRTM_VERSION}")
+ string(REGEX REPLACE "([0-9]+)\\.([0-9]+)" "\\2" OPENRTM_VERSION_MINOR "${OPENRTM_VERSION}")
+ set(OPENRTM_VERSION_PATCH "0")
+ set(OPENRTM_VERSION "${OPENRTM_VERSION_MAJOR}.${OPENRTM_VERSION_MINOR}.${OPENRTM_VERSION_PATCH}")
+ string(REGEX REPLACE "[.]" ""
+ OPENRTM_VERSION_NUM "${OPENRTM_VERSION}")
+
+ set(OPENRTM_INCLUDE_DIRS "${OPENRTM_DIR}")
+ set(OPENRTM_LIBRARY_DIRS "${OPENRTM_DIR}/bin")
+ list(APPEND OPENRTM_INCLUDE_DIRS "${OPENRTM_DIR}/rtm/idl")
+
+ set(OPENRTM_CFLAGS "-DUSE_stub_in_nt_dll")
+
+ foreach(library "RTC${OPENRTM_VERSION_NUM}" "coil")
+ list(APPEND OPENRTM_LIBRARIES optimized "${library}" debug "${library}d")
+ endforeach()
+ foreach(library "ws2_32" "mswsock")
+ list(APPEND OPENRTM_LIBRARIES optimized "${library}" debug "${library}")
+ endforeach()
+
+ # IDL Compiler
+ set(OPENRTM_IDLC "omniidl")
+ set(OPENRTM_IDLFLAGS -bcxx -Wba -nf)
+
+ # IDL Skelton Wrapper
+ set(OPENRTM_IDL_WRAPPER "rtm-skelwrapper.py")
+ set(OPENRTM_IDL_WRAPPER_FLAGS --include-dir="" --skel-suffix=Skel --stub-suffix=Stub)
+
+endif(WIN32)
+
+message(STATUS "FindOpenRTM setup done.")
+
+message(STATUS " OMNIORB_DIR=${OMNIORB_DIR}")
+message(STATUS " OMNIORB_VERSION=${OMNIORB_VERSION}")
+message(STATUS " OMNIORB_CFLAGS=${OMNIORB_CFLAGS}")
+message(STATUS " OMNIORB_INCLUDE_DIRS=${OMNIORB_INCLUDE_DIRS}")
+message(STATUS " OMNIORB_LDFLAGS=${OMNIORB_LDFLAGS}")
+message(STATUS " OMNIORB_LIBRARY_DIRS=${OMNIORB_LIBRARY_DIRS}")
+message(STATUS " OMNIORB_LIBRARIES=${OMNIORB_LIBRARIES}")
+
+message(STATUS " OPENRTM_DIR=${OPENRTM_DIR}")
+message(STATUS " OPENRTM_VERSION=${OPENRTM_VERSION}")
+message(STATUS " OPENRTM_VERSION_MAJOR=${OPENRTM_VERSION_MAJOR}")
+message(STATUS " OPENRTM_VERSION_MINOR=${OPENRTM_VERSION_MINOR}")
+message(STATUS " OPENRTM_VERSION_PATCH=${OPENRTM_VERSION_PATCH}")
+message(STATUS " OPENRTM_CFLAGS=${OPENRTM_CFLAGS}")
+message(STATUS " OPENRTM_INCLUDE_DIRS=${OPENRTM_INCLUDE_DIRS}")
+message(STATUS " OPENRTM_LDFLAGS=${OPENRTM_LDFLAGS}")
+message(STATUS " OPENRTM_LIBRARY_DIRS=${OPENRTM_LIBRARY_DIRS}")
+message(STATUS " OPENRTM_LIBRARIES=${OPENRTM_LIBRARIES}")
+
+message(STATUS " OPENRTM_IDLC=${OPENRTM_IDLC}")
+message(STATUS " OPENRTM_IDLFLAGS=${OPENRTM_IDLFLAGS}")
+message(STATUS " OPENRTM_IDL_WRAPPER=${OPENRTM_IDL_WRAPPER}")
+message(STATUS " OPENRTM_IDL_WRAPPER_FLAGS=${OPENRTM_IDL_WRAPPER_FLAGS}")
Property changes on: trunk/OpenRTM-aist/utils/cmake/FindOpenRTM.cmake.org
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/OpenRTM-aist/utils/cmake/Makefile.am
===================================================================
--- trunk/OpenRTM-aist/utils/cmake/Makefile.am (rev 0)
+++ trunk/OpenRTM-aist/utils/cmake/Makefile.am 2011-06-03 09:22:48 UTC (rev 2156)
@@ -0,0 +1,190 @@
+## -*- Makefile -*-
+##---------------------------------------------------------------------------
+## Makefile for cmake: creating OpenRTM-aist's FindOpenRTM.cmake for cmake
+##
+## $Id$
+##---------------------------------------------------------------------------
+#
+# CMake's OpenRTMFind.cmake installation diretories
+#
+# * for the Windows systems
+# <prefix>/ (W)
+# <prefix>/(cmake|CMake)/ (W)
+# <prefix>/<name>*/ (W)
+# <prefix>/<name>*/(cmake|CMake)/ (W)
+#
+# * for the UNIX systems
+# <prefix>/(share|lib)/cmake/<name>*/ (U)
+# <prefix>/(share|lib)/<name>*/ (U)
+# <prefix>/(share|lib)/<name>*/(cmake|CMake)/ (U)
+#
+# In Mac OS X with MacPorts, <prefix> might be /opt/local. (not confirmed)
+# And on systems supporting OS X Frameworks and Application Bundles
+# the following directories are searched for frameworks or bundles
+# containing a configuration file:
+#
+# * for Mac OS X with frameworks and Application Bundles
+# <prefix>/<name>.framework/Resources/ (A)
+# <prefix>/<name>.framework/Resources/CMake/ (A)
+# <prefix>/<name>.framework/Versions/*/Resources/ (A)
+# <prefix>/<name>.framework/Versions/*/Resources/CMake/ (A)
+# <prefix>/<name>.app/Contents/Resources/ (A)
+# <prefix>/<name>.app/Contents/Resources/CMake/ (A)
+#
+# for the OpenRTM-aist
+#
+# Windows:
+# <prefix>/<name>*/cmake: C:/Progam Files/OpenRTM-aist/1.1/cmake
+# UNIX:
+# <prefix>/share/<name>*/cmake: /usr/share/openrtm-1.1/cmake
+# Mac OS X
+# <prefix>/share/<name>*/cmake: /opt/local/share/openrtm-1.1/cmake
+#
+# Users' CMakeList.txt just only use the following find_package() command
+# find_package(OpenRTM-aist ....)
+# ^^^^^^^^^^^^ cmake handle <name> case-insensitively
+#
+#
+#
+# testing find_package ability
+#
+# Windows)
+# configfile: C:\Program Files\OpenRTM-aist\1.1\cmake\
+# directives:
+# find_package(OpenRTM CONFIGS OpenRTMConfig.cmake): OK
+# find_package(openrtm CONFIGS OpenRTMConfig.cmake): OK
+# find_package(OpenRTM-aist CONFIGS OpenRTMConfig.cmake): OK
+# find_package(openrtm-aist CONFIGS OpenRTMConfig.cmake): OK
+#
+# UNIX)
+# configfile: /usr/share/openrtm-1.1/cmake/OpenRTMConfig.cmake
+# directives:
+# find_package(openrtm CONFIGS OpenRTMConfig.cmake): OK
+# find_package(OpenRTM CONFIGS OpenRTMConfig.cmake): OK
+# find_package(OpenRTM-aist CONFIGS OpenRTMConfig.cmake): NG
+# find_package(openrtm-aist CONFIGS OpenRTMConfig.cmake): NG
+# find_package(OpenRTM-aist CONFIGS OpenRTMConfig.cmake NAMES openrtm): OK
+# find_package(openrtm-aist CONFIGS OpenRTMConfig.cmake NAMES openrtm): OK
+#
+
+AUTOMAKE_OPTIONS = 1.4
+
+ORB = @ORB@
+IDLC = @IDLC@
+IDLFLAGS = @IDL_FLAGS@
+
+cmakedir = ${rtm_datadir}/cmake
+cmake_DATA = OpenRTMConfig.cmake FindOpenRTM.cmake
+
+# basic compiler/linker options
+OPENRTM_CFLAGS=${CXXFLAGS}
+OPENRTM_INCLUDE_DIRS= \
+ -I${prefix}/include \
+ -I${coil_includedir} \
+ -I${rtm_includedir} \
+ -I${rtm_includedir}/rtm/idl
+OPENRTM_LDFLAGS_=${LDFLAGS}
+OPENRTM_LIBRARY_DIRS=-L${prefix}/lib
+OPENRTM_LIBRARIES_=${LIBS} -lRTC -lcoil
+
+# OpenRTM-aist specific directory
+COIL_INCLUDE_DIR=${coil_includedir}
+OPENRTM_INCLUDE_DIR=${rtm_includedir}
+OPENRTM_LIB_DIR=${rtm_libdir}
+OPENRTM_DATA_DIR=${rtm_datadir}
+
+# OpenRTM-aist version
+OPENRTM_VERSION=${RTM_VERSION}
+OPENRTM_VERSION_MAJOR=${RTM_MAJOR_VERSION}
+OPENRTM_VERSION_MINOR=${RTM_MINOR_VERSION}
+OPENRTM_REVISION_NUM=${RTM_REVISION_NUM}
+OPENRTM_SHORT_VERSION=${RTM_SHORT_VERSION}
+
+# OpenRTM-aist's CORBA related settings
+OPENRTM_ORB=${ORB}
+OPENRTM_IDL_WRAPPER=rtm-skelwrapper
+OPENRTM_IDL_WRAPPER_FLAGS=--include-dir="" --skel-suffix=Skel --stub-suffix=Stub
+OPENRTM_IDLC=${IDLC}
+OPENRTM_IDLFLAGS=${IDLFLAGS}
+
+
+OpenRTMConfig.cmake: Makefile.am
+ echo "# -*- cmake -*-" > $@
+ echo "#" >> $@
+ echo "# @file OpenRTMConfig.cmake" >> $@
+ echo "# @brief cmake-config file for OpenRTM-aist" >> $@
+ echo "# @author Noriaki Ando" >> $@
+ echo "# @date "`date` >> $@
+ echo "#" >> $@
+ echo "# This file is used for cmake config-mode." >> $@
+ echo "# The following variables are defined." >> $@
+ echo "#" >> $@
+ echo "# Basic compiler/linker options" >> $@
+ echo "# - OPENRTM_CFLAGS: cflags " >> $@
+ echo "# - OPENRTM_INCLUDE_DIRS: include directories" >> $@
+ echo "# - OPENRTM_LDFLAGS: linker options" >> $@
+ echo "# - OPENRTM_LIBRARY_DIRS: library directories" >> $@
+ echo "# - OPENRTM_LIBRARIES: libraries" >> $@
+ echo "# - OPENRTM_LIB_DIR: OpenRTM's lib directory" >> $@
+ echo "#" >> $@
+ echo "# OpenRTM-aist specific directory" >> $@
+ echo "# - COIL_INCLUDE_DIR: coil include dir" >> $@
+ echo "# - OPENRTM_INCLUDE_DIR: OpenRTM's include directory" >> $@
+ echo "# - OPENRTM_LIB_DIR: OpenRTM's lib directory" >> $@
+ echo "# - OPENRTM_DATA_DIR: OpenRTM's shared directory" >> $@
+ echo "#" >> $@
+ echo "# OpenRTM-aist version" >> $@
+ echo "# - OPENRTM_VERSION: x.y.z version" >> $@
+ echo "# - OPENRTM_VERSION_MAJOR: major version number" >> $@
+ echo "# - OPENRTM_VERSION_MINOR: minor version number" >> $@
+ echo "# - OPENRTM_VERSION_PATCH: revision number" >> $@
+ echo "# - OPENRTM_SHORT_VERSION: short version number 1.1.0->110" >> $@
+ echo "#" >> $@
+ echo "# OpenRTM-aist's CORBA related settings" >> $@
+ echo "# - OPENRTM_ORB: CORBA implementation" >> $@
+ echo "# - OPENRTM_IDL_WRAPPER: rtm-skelwrapper command" >> $@
+ echo "# - OPENRTM_IDL_WRAPPER_FLAGS: rtm-skelwrapper flag" >> $@
+ echo "# - OPENRTM_IDLC: IDL command" >> $@
+ echo "# - OPENRTM_IDLFLAGS: IDL optins" >> $@
+ echo "" >> $@
+ echo 'message(STATUS "OpenRTMConfig.cmake found.")' >> $@
+ echo 'message(STATUS "Configrued by configuration mode.")' >> $@
+ echo "" >> $@
+ echo "" >> $@
+ echo "# Basic compiler/linker options" >> $@
+ echo "set(OPENRTM_CFLAGS ${CXXFLAGS})" >> $@
+ echo "set(OPENRTM_INCLUDE_DIRS ${OPENRTM_INCLUDE_DIRS})" >> $@
+ echo "set(OPENRTM_LDFLAGS ${OPENRTM_LDFLAGS_})" >> $@
+ echo "set(OPENRTM_LIBRARY_DIRS ${OPENRTM_LIBRARY_DIRS})" >> $@
+ echo "set(OPENRTM_LIBRARIES ${OPENRTM_LIBRARIES_})" >> $@
+ echo "set(OPENRTM_LIB_DIR ${OPENRTM_LIB_DIR})" >> $@
+ echo "" >> $@
+ echo "# OpenRTM-aist specific directory" >> $@
+ echo "set(COIL_INCLUDE_DIR ${COIL_INCLUDE_DIR})" >> $@
+ echo "set(OPENRTM_INCLUDE_DIR ${OPENRTM_INCLUDE_DIR})" >> $@
+ echo "set(OPENRTM_LIB_DIR ${OPENRTM_LIB_DIR})" >> $@
+ echo "set(OPENRTM_DATA_DIR ${OPENRTM_DATA_DIR})" >> $@
+ echo "" >> $@
+ echo "# OpenRTM-aist version" >> $@
+ echo "set(OPENRTM_VERSION ${OPENRTM_VERSION})" >> $@
+ echo "set(OPENRTM_VERSION_MAJOR ${OPENRTM_VERSION_MAJOR})" >> $@
+ echo "set(OPENRTM_VERSION_MINOR ${OPENRTM_VERSION_MINOR})" >> $@
+ echo "set(OPENRTM_VERSION_PATCH ${OPENRTM_REVISION_NUM})" >> $@
+ echo "set(OPENRTM_SHORT_VERSION ${OPENRTM_SHORT_VERSION})" >> $@
+ echo "" >> $@
+ echo "# OpenRTM-aist's CORBA related settings" >> $@
+ echo "set(OPENRTM_ORB ${OPENRTM_ORB})" >> $@
+ echo "set(OPENRTM_IDL_WRAPPER ${OPENRTM_IDL_WRAPPER})" >> $@
+ echo "set(OPENRTM_IDL_WRAPPER_FLAGS ${OPENRTM_IDL_WRAPPER_FLAGS})" >> $@
+ echo "set(OPENRTM_IDLC ${OPENRTM_IDLC})" >> $@
+ echo "set(OPENRTM_IDLFLAGS ${OPENRTM_IDLFLAGS})" >> $@
+ echo "" >> $@
+ echo 'message(STATUS "OpenRTM-aist configuration done")' >> $@
+ echo "# end of OpenRTMConfig.cmake" >> $@
+
+
+EXTRA_DIST = FindOpenRTM.cmake
+
+clean-local:
+ rm -f OpenRTMConfig.cmake
+ rm -rf *~
Property changes on: trunk/OpenRTM-aist/utils/cmake/Makefile.am
___________________________________________________________________
Added: svn:executable
+ *
openrtm-commit メーリングリストの案内