C:\Users\Kawauchi\workspace_test\myCalib\src\CMakeLists.txt C:\Users\Kawauchi\workspace_test\myCalib\src\CMakeLists_rtcb_opencv.txt
set(comp_srcs ImageCalibration.cpp CalibrationServiceSVC_impl.cpp ) set(comp_srcs ImageCalibration.cpp CalibrationServiceSVC_impl.cpp )
set(standalone_srcs ImageCalibrationComp.cpp) set(standalone_srcs ImageCalibrationComp.cpp)
   
find_package(OpenCV REQUIRED) find_package(OpenCV REQUIRED)
   
if (DEFINED OPENRTM_INCLUDE_DIRS) if (DEFINED OPENRTM_INCLUDE_DIRS)
 string(REGEX REPLACE "-I" ";"  string(REGEX REPLACE "-I" ";"
   OPENRTM_INCLUDE_DIRS "${OPENRTM_INCLUDE_DIRS}")    OPENRTM_INCLUDE_DIRS "${OPENRTM_INCLUDE_DIRS}")
 string(REGEX REPLACE " ;" ";"  string(REGEX REPLACE " ;" ";"
   OPENRTM_INCLUDE_DIRS "${OPENRTM_INCLUDE_DIRS}")    OPENRTM_INCLUDE_DIRS "${OPENRTM_INCLUDE_DIRS}")
endif (DEFINED OPENRTM_INCLUDE_DIRS) endif (DEFINED OPENRTM_INCLUDE_DIRS)
   
if (DEFINED OPENRTM_LIBRARY_DIRS) if (DEFINED OPENRTM_LIBRARY_DIRS)
 string(REGEX REPLACE "-L" ";"  string(REGEX REPLACE "-L" ";"
   OPENRTM_LIBRARY_DIRS "${OPENRTM_LIBRARY_DIRS}")    OPENRTM_LIBRARY_DIRS "${OPENRTM_LIBRARY_DIRS}")
 string(REGEX REPLACE " ;" ";"  string(REGEX REPLACE " ;" ";"
   OPENRTM_LIBRARY_DIRS "${OPENRTM_LIBRARY_DIRS}")    OPENRTM_LIBRARY_DIRS "${OPENRTM_LIBRARY_DIRS}")
endif (DEFINED OPENRTM_LIBRARY_DIRS) endif (DEFINED OPENRTM_LIBRARY_DIRS)
   
if (DEFINED OPENRTM_LIBRARIES) if (DEFINED OPENRTM_LIBRARIES)
 string(REGEX REPLACE "-l" ";"  string(REGEX REPLACE "-l" ";"
   OPENRTM_LIBRARIES "${OPENRTM_LIBRARIES}")    OPENRTM_LIBRARIES "${OPENRTM_LIBRARIES}")
 string(REGEX REPLACE " ;" ";"  string(REGEX REPLACE " ;" ";"
   OPENRTM_LIBRARIES "${OPENRTM_LIBRARIES}")    OPENRTM_LIBRARIES "${OPENRTM_LIBRARIES}")
endif (DEFINED OPENRTM_LIBRARIES) endif (DEFINED OPENRTM_LIBRARIES)
   
include_directories(${PROJECT_SOURCE_DIR}/include) include_directories(${PROJECT_SOURCE_DIR}/include)
include_directories(${PROJECT_SOURCE_DIR}/include/${PROJECT_NAME}) include_directories(${PROJECT_SOURCE_DIR}/include/${PROJECT_NAME})
include_directories(${PROJECT_BINARY_DIR}) include_directories(${PROJECT_BINARY_DIR})
include_directories(${PROJECT_BINARY_DIR}/idl) include_directories(${PROJECT_BINARY_DIR}/idl)
include_directories(${OPENRTM_INCLUDE_DIRS}) include_directories(${OPENRTM_INCLUDE_DIRS})
include_directories(${OMNIORB_INCLUDE_DIRS}) include_directories(${OMNIORB_INCLUDE_DIRS})
add_definitions(${OPENRTM_CFLAGS}) add_definitions(${OPENRTM_CFLAGS})
add_definitions(${OMNIORB_CFLAGS}) add_definitions(${OMNIORB_CFLAGS})
   
MAP_ADD_STR(comp_hdrs "../" comp_headers) MAP_ADD_STR(comp_hdrs "../" comp_headers)
   
link_directories(${OPENRTM_LIBRARY_DIRS}) link_directories(${OPENRTM_LIBRARY_DIRS})
link_directories(${OMNIORB_LIBRARY_DIRS}) link_directories(${OMNIORB_LIBRARY_DIRS})
   
add_library(${PROJECT_NAME} ${LIB_TYPE} ${comp_srcs} add_library(${PROJECT_NAME} ${LIB_TYPE} ${comp_srcs}
 ${comp_headers} ${ALL_IDL_SRCS})  ${comp_headers} ${ALL_IDL_SRCS})
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "") set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
set_source_files_properties(${ALL_IDL_SRCS} PROPERTIES GENERATED 1) set_source_files_properties(${ALL_IDL_SRCS} PROPERTIES GENERATED 1)
  if(NOT TARGET ALL_IDL_TGT)
   add_custom_target(ALL_IDL_TGT)
  endif(NOT TARGET ALL_IDL_TGT)
add_dependencies(${PROJECT_NAME} ALL_IDL_TGT) add_dependencies(${PROJECT_NAME} ALL_IDL_TGT)
target_link_libraries(${PROJECT_NAME} ${OPENRTM_LIBRARIES} ${OpenCV_LIBS}) target_link_libraries(${PROJECT_NAME} ${OPENRTM_LIBRARIES} ${OpenCV_LIBS})
   
add_executable(${PROJECT_NAME}Comp ${standalone_srcs} add_executable(${PROJECT_NAME}Comp ${standalone_srcs}
 ${comp_srcs} ${comp_headers} ${ALL_IDL_SRCS})  ${comp_srcs} ${comp_headers} ${ALL_IDL_SRCS})
target_link_libraries(${PROJECT_NAME}Comp ${OPENRTM_LIBRARIES} ${OpenCV_LIBS}) target_link_libraries(${PROJECT_NAME}Comp ${OPENRTM_LIBRARIES} ${OpenCV_LIBS})
   
install(TARGETS ${PROJECT_NAME} ${PROJECT_NAME}Comp install(TARGETS ${PROJECT_NAME} ${PROJECT_NAME}Comp
   EXPORT ${PROJECT_NAME}    EXPORT ${PROJECT_NAME}
   RUNTIME DESTINATION ${INSTALL_PREFIX} COMPONENT component    RUNTIME DESTINATION ${INSTALL_DIR} COMPONENT component
   LIBRARY DESTINATION ${INSTALL_PREFIX} COMPONENT component    LIBRARY DESTINATION ${INSTALL_DIR} COMPONENT component
   ARCHIVE DESTINATION ${INSTALL_PREFIX} COMPONENT component)    ARCHIVE DESTINATION ${INSTALL_DIR} COMPONENT component)