Skip to content
Snippets Groups Projects
  1. Apr 20, 2023
  2. Apr 19, 2023
  3. Mar 16, 2023
    • Dietrich Rothe's avatar
      Wip/11221 modernize cmake (#25) · 4d87627e
      Dietrich Rothe authored
      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.
      4d87627e
  4. Jan 19, 2023
  5. Jul 13, 2021
  6. Jul 12, 2021
  7. Jun 23, 2021
  8. Mar 15, 2021
  9. Dec 09, 2020
  10. Dec 03, 2020
  11. Oct 22, 2020
  12. Jul 24, 2020
  13. May 29, 2020
  14. May 28, 2020
  15. May 27, 2020
  16. Apr 24, 2020
  17. Mar 13, 2020
  18. Jan 30, 2020
  19. Jan 27, 2020
  20. May 16, 2019
  21. Apr 29, 2019
  22. Feb 14, 2019
  23. Nov 19, 2018
    • vargheseg's avatar
      register_tests now takes working directory. · 13568613
      vargheseg authored
      usage:
      register_tests(SOURCES
                       ${list_of_source_files}
                       "test_src.cc"
                       ${concatenated_string_of_source_files}
                     NAMESPACE
                       "test_namespace"
                     LINK_LIBRARIES
                       ${list_of_targets}
                     INCLUDE_DIRECTORIES
                       ${list_of_include_directories}
                     COMPILE_OPTIONS
                       ${list_of_compile_options}
                     WORKING_DIRECTORY
                       ${ctest_working_directory})
      13568613
  24. Nov 08, 2018
    • vargheseg's avatar
      revised option names: · af46ca24
      vargheseg authored
      new scheme:
      register_tests(SOURCES
                       ${list_of_source_files}
                       "test_src.cc"
                       ${concatenated_string_of_source_files}
                     NAMESPACE
                       "test_namespace"
                     LINK_LIBRARIES
                       ${list_of_targets}
                     INCLUDE_DIRECTORIES
                       ${list_of_include_directories}
                     COMPILE_OPTIONS
                       ${list_of_compile_options})
      af46ca24
    • vargheseg's avatar
      Introduced cmake module registerTests: · c50b5abb
      vargheseg authored
      usage:
      register_tests(SOURCES
                       ${list_of_source_files}
                       "test_src.cc"
                       ${concatenated_string_of_source_files}
                     NAMESPACE
                       "test_namespace"
                     DEPENDS
                       ${list_of_targets}
                     INCLUDES
                       ${list_of_include_directories}
                     COMPILE_OPTIONS
                       ${list_of_compile_options})
      
      Function registers tests defined as a list of souce files.  Test defined
      by file source_name.cc in the SOURCES list is registered under the name
        test_namespace.source_name
      
      Provided list of dependent targets and include directories are used for
      test executables as PRIVATE dependencies during compilation.
      
      Function implicitly adds a dependency on the boost unit test framework
      to each generated test executable.
      c50b5abb
  25. Aug 08, 2018
  26. Mar 13, 2018
  27. Feb 19, 2018
  28. Dec 12, 2016
  29. Nov 24, 2016
Loading