Skip to content

Draft: CMake: improvements

Fabian Reister requested to merge cmake-improvements into master

Changes

  • removed all "include_directories()", using "target_include_directories" instead
  • ARON generator: will be only executed if necessary (@fratty )
  • separate test executable settings (WIP, IMHO tests should always be built in debug mode to reduce compile time)
  • Target alias will be created by armarx_add_library or armarx_add_component (e.g. library Foo => RobotAPI::Foo).
  • Exporting targets into namespace e.g. RobotAPI:: (not used atm, will be an optional feature for ArmarX 2.0)
  • Test template: using named arguments

As the compiler flags will change ( -I ), the whole ArmarX code base has to be rebuilt. Merge on Friday evenings only ..

Edited by Fabian Reister

Merge request reports