# cmake-modules **Repository Path**: liu-dingdong/cmake-modules ## Basic Information - **Project Name**: cmake-modules - **Description**: 一个https://github.com/abs-tudelft/cmake-modules.git的gitee镜像,同时修改里面googletest的路径来避免github访问不了的问题。 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-05-15 - **Last Updated**: 2023-10-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # cmake-modules [![Build Status](https://dev.azure.com/abs-tudelft/cmake-modules/_apis/build/status/abs-tudelft.cmake-modules?branchName=master)](https://dev.azure.com/abs-tudelft/cmake-modules/_build/latest?definitionId=1&branchName=master) This is a collection of [CMake](https://cmake.org/) modules used and maintained by the [Accelerated Big Data Systems group](https://github.com/abs-tudelft). ## Modules Currently the following modules are available. | Module | Description | |-------------------|-----------------------------------------------------------------------------------------------| | [CompileUnits] | Opinionated and boilerplate free CMake for C++ projects by definition of compilation units | More information and examples are available inside the module directories. ## Usage Use the [FetchContent](https://cmake.org/cmake/help/latest/module/FetchContent.html) module to add the modules to your tree: ```cmake include(FetchContent) FetchContent_Declare(cmake-modules GIT_REPOSITORY https://github.com/abs-tudelft/cmake-modules.git GIT_TAG master ) FetchContent_MakeAvailable(cmake-modules) ``` Include the module of interest: ```cmake include() ``` You can also use any other method to add the CMake module of interest to your source tree and append the path of the CMake module to the [`CMAKE_MODULE_PATH`](https://cmake.org/cmake/help/latest/variable/CMAKE_MODULE_PATH.html) variable: ```cmake list(APPEND CMAKE_MODULE_PATH ) ``` Include the module: ```cmake include() ``` [CompileUnits]: https://github.com/abs-tudelft/cmake-modules/tree/master/CompileUnits