cmake_minimum_required(VERSION 2.6) PROJECT(RTT-examples-plugins) # pick up additional cmake package files (eg FindXXX.cmake) from this directory list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/config") # WORKAROUND for bug 684 with boost installation from MacPorts. INCLUDE_DIRECTORIES(/opt/local/include) LINK_DIRECTORIES(/opt/local/lib) ################################################################################ # Dependancies ################################################################################ # MUST do this first and find Corba before anyone else looks for these packages # and does *not* look for Corba (which drops it off certain lists) find_package(Orocos-RTT 1.6.0 REQUIRED corba) find_package(Orocos-OCL 1.6.0 REQUIRED taskbrowser) # setup corba option, defaulting to off OPTION( ENABLE_CORBA "Enable CORBA" OFF) # default to ACE/TAO if a corba implementation is not specified IF (NOT CORBA_IMPLEMENTATION) SET( CORBA_IMPLEMENTATION "TAO" CACHE STRING "The implementation of CORBA to use (allowed values: TAO or OMNIORB )" ) ENDIF (NOT CORBA_IMPLEMENTATION) IF (ENABLE_CORBA) find_package(Corba) ENDIF (ENABLE_CORBA) ################################################################################ # Libraries ################################################################################ include(${CMAKE_SOURCE_DIR}/config/UseOrocos.cmake) # create shared library ready for deployment create_component(BoostToolkit-${OROCOS_TARGET} VERSION 1.0.0 BoostToolkit.cpp) # for Mac OS X, you have to link against all dependant libraries TARGET_LINK_LIBRARIES(BoostToolkit-${OROCOS_TARGET} boost_date_time) ################################################################################ # Sub-directories ################################################################################ SUBDIRS(tests) SUBDIRS(corba)