Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements to make SPARTA easier to use as a dependency #24

Closed
wants to merge 4 commits into from

Commits on Dec 16, 2023

  1. Generate CMake config that can be used by 3rd party projects

    This introduces causes a CMake package config file named
    sparta-config.cmake to be generated in sparta's build directory. The
    config file will be installed to $LIBDIR/cmake/sparta so that it can be
    located with find_package().
    
    As a breaking change, sparta_target.cmake is now also installed to
    $LIBDIR/cmake/sparta for compatibility with *nix systems [1].
    
    [1]: https://cmake.org/cmake/help/latest/command/find_package.html#config-mode-search-procedure
    Technius committed Dec 16, 2023
    Configuration menu
    Copy the full SHA
    3170879 View commit details
    Browse the repository at this point in the history
  2. Namespace the exported CMake targets with sparta::

    This changes the exported targets to be namespaced with sparta::, so
    that CMake will raise an error if the imported target is referenced but
    not found.
    Technius committed Dec 16, 2023
    Configuration menu
    Copy the full SHA
    811995f View commit details
    Browse the repository at this point in the history
  3. Fix bugs preventing use as a subproject

    This commit fixes seveal bugs preventing the project from being used as
    a CMake subproject:
    
    * The Commons module cannot be found because the path to the
    cmake_modules folder is constructed relative to the CMAKE_SOURCE_DIR
    rather than the CMAKE_CURRENT_SOURCE_DIR.
    
    * googletest is downloaded to the CMAKE_BINARY_DIR rather than the
    CMAKE_CURRENT_BINARY_DIR.
    Technius committed Dec 16, 2023
    Configuration menu
    Copy the full SHA
    2ed7831 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a4bf94d View commit details
    Browse the repository at this point in the history