Installation Guide
Welcome to the ATRC installation guide! Follow the steps below to install and integrate ATRC into your project.
Step 1: Download ATRC
You can download the latest release of ATRC from the official GitHub repository:
Once downloaded, extract the contents of the archive to a directory of your choice.
Step 2: Set Up Your Project with CMake
Use the following example to configure your project with CMake to include the ATRC library:
cmake_minimum_required(VERSION 3.15)
project(MyProject)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/ATRC_2.2.0/cmake")
# Include the ATRCConfig.cmake script
include(ATRCConfig.cmake)
add_executable(${PROJECT_NAME}
src/main.cpp
)
# Link the ATRC library
target_link_libraries(${PROJECT_NAME} PRIVATE ${ATRC})
# Include ATRC headers
target_include_directories(${PROJECT_NAME} PRIVATE "${CMAKE_SOURCE_DIR}/ATRC_2.2.0/include")
Replace ATRC_2.2.0
with the version number of the ATRC release you downloaded if it's different.
Step 3: Build and Run
After configuring your project with CMake, build the project using your preferred build system:
- Run
cmake
to generate the build files: - Build the project:
- Run the executable from the
build
directory:
cmake -S . -B build
cmake --build build
./build/MyProject
Additional Notes
- Ensure that your compiler and environment support C++17 or later.
- Refer to the API Reference for details on how to use ATRC's features in your application.
- If you encounter any issues, visit the GitHub Issues page to report bugs or ask for help.