Skip to content
aggsol edited this page Aug 1, 2019 · 55 revisions

More Snippets

More examples on how to include other projects with CPM.

CPMAddPackage(
  NAME rang
  GITHUB_REPOSITORY agauniyal/rang
  GIT_TAG v3.1.0
)
if(rang_ADDED)
  add_library(rang INTERFACE IMPORTED)
  target_include_directories(rang INTERFACE "${rang_SOURCE_DIR}/include")
endif()
Clone this wiki locally