IF (ENABLE_CORBA) INCLUDE(${CMAKE_SOURCE_DIR}/config/UseCorba.cmake) # gather up all .idl and .cpp files, FILE( GLOB IDLS [^.]*.idl ) FILE( GLOB CPPS [^.]*.cpp ) # generate all files from the IDL file. # This call adds generated files to the CPPS and HPPS variables ORO_ADD_CORBA_SERVERS(CPPS HPPS ${IDLS} ) # ensure that we can include the generated files from the build dir INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR}/. ) # create shared library ready for deployment CREATE_COMPONENT(BoostToolkit-corba-${OROCOS_TARGET} VERSION 1.0.0 ${CPPS}) TARGET_LINK_LIBRARIES(BoostToolkit-corba-${OROCOS_TARGET} ${OROCOS-RTT_CORBA_LIBRARIES} ${CORBA_LIBRARIES}) SUBDIRS(tests) ENDIF (ENABLE_CORBA)