mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-17 06:37:43 -05:00
* add package lock creation * change target name * fix cpm_export_variables * add test * fix git repo detection addition * remove test package lock from git * add link to package lock wiki * add CPMGetPackage
21 lines
384 B
Plaintext
21 lines
384 B
Plaintext
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
|
|
|
|
project(CPMTest)
|
|
|
|
# ---- Options ----
|
|
|
|
option(ENABLE_TEST_COVERAGE "Enable test coverage" OFF)
|
|
|
|
# ---- Dependencies ----
|
|
|
|
include(@CPM_PATH@/CPM.cmake)
|
|
CPMUsePackageLock(package-lock.cmake)
|
|
|
|
@PREPARE_CODE@
|
|
|
|
CPMGetPackage(Dependency)
|
|
|
|
# ---- Call dependency method to validate correct addition of directory ----
|
|
|
|
dependency_function()
|