Wip/11221 modernize cmake (#25)
This provides ChimeraTK::<project-name> as cmake imported target. Variables <project_name>_INCLUDE_DIRS, <project_name>LIBRARY_DIRS, <project_name>_LIBRARIES, <project_name>_CXX_FLAGS, <project_name>_LINKER_FLAGS are provided for compatibility but are generated from cmake-exports where possible and cmake imported targets should be preferred. * provide function for option array conversion to be used with target_compile_options etc + FindPackage results, where findPackage results are of incorrect/old format * FindDOOCS: - DOOCS components as imported targets - clean up no longer needed tweaks - add timinglib as component - make use of log levels and respect QUIET argument * add_dependency: fail on wrong add_dependency usage this was unseen since it worked in most cases but in general does not in particular was causing trouble with imports from cppext second arg must be version number * pkgconfig exports - generated from cmake-exports - make linker flags come before libs, order is required e.g. for --no-as-needed flag - remove duplicates in output * FindGccAtomic - do not put absolute lib path in output since it was causing trouble with yocto builds. Should be in system lib paths anyway. Also, make GccAtomic variable output name more consistent.
parent
07a8fe4a
No related branches found
No related tags found
Showing
- cmake/Modules/FindDOOCS.cmake 157 additions, 61 deletionscmake/Modules/FindDOOCS.cmake
- cmake/Modules/FindGccAtomic.cmake 7 additions, 2 deletionscmake/Modules/FindGccAtomic.cmake
- cmake/PROJECT_NAMEConfig.cmake.in.in 65 additions, 26 deletionscmake/PROJECT_NAMEConfig.cmake.in.in
- cmake/add_dependency.cmake 12 additions, 0 deletionscmake/add_dependency.cmake
- cmake/create_cmake_config_files.cmake 251 additions, 30 deletionscmake/create_cmake_config_files.cmake
- cmake/format_options.cmake 8 additions, 0 deletionscmake/format_options.cmake
- cmake/set_control_system_adapter.cmake 4 additions, 4 deletionscmake/set_control_system_adapter.cmake
Loading
Please register or sign in to comment