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

Add CMake install commands for Au #265

Merged
merged 6 commits into from
Jul 16, 2024
Merged

Commits on Jul 12, 2024

  1. Add CMake install instructions for Au

    To test, create a new project with two files:
    
    `main.cc`:
    
    ```cpp
    
    int main(int argc, char **argv) { return 0; }
    ```
    
    `CMakeLists.txt`:
    
    ```cmake
    cmake_minimum_required(VERSION 3.29)
    
    project(CppUnitsCompare)
    
    include(FetchContent)
    FetchContent_Declare(
      Au
      GIT_REPOSITORY file:///home/chogg/au
      GIT_TAG "chiphogg/cmake-install#215"
    )
    FetchContent_MakeAvailable(Au)
    
    add_executable(CppUnitsCompare main.cpp)
    target_link_libraries(CppUnitsCompare PUBLIC Au::au)
    ```
    
    And execute:
    
    ```sh
    cmake -S . -B build
    cmake --build build
    ```
    
    This PR is done when the above successfully compiles.
    chiphogg committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    0fe7747 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2024

  1. Use symbolic link

    This appears to work, although I'm not yet sure whether it's a good
    approach.
    chiphogg committed Jul 14, 2024
    Configuration menu
    Copy the full SHA
    cf9b8a7 View commit details
    Browse the repository at this point in the history
  2. Try fixing build failures

    chiphogg committed Jul 14, 2024
    Configuration menu
    Copy the full SHA
    e0c2b0c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ccda937 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2024

  1. Try moving to another location

    Not sure if the INCLUDEDIR needs to be updated too...
    chiphogg committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    5af6d56 View commit details
    Browse the repository at this point in the history
  2. Explain phony local repo

    chiphogg committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    3e25704 View commit details
    Browse the repository at this point in the history