-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
37 lines (27 loc) · 903 Bytes
/
CMakeLists.txt
File metadata and controls
37 lines (27 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
cmake_minimum_required(VERSION 3.21)
set(PROJECT_DESCRIPTION "\
An example project that imports another through find_package, \
which itself imports yet another through find_package.\
")
project(three
VERSION 0.1.0
DESCRIPTION "${PROJECT_DESCRIPTION}"
HOMEPAGE_URL https://github.com/thejohnfreeman/project-template-cpp
LANGUAGES CXX
)
find_package(cupcake.cmake REQUIRED)
cupcake_project()
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
set(CMAKE_CXX_EXTENSIONS OFF)
# To test transitive dependencies in package configuration files,
# we must depend on package one without directly depending on package zero.
# dependencies {
cupcake_find_package(one)
# }
cupcake_add_library(three)
target_link_libraries(${this} PUBLIC one::library)
cupcake_add_executable(aloha)
target_link_libraries(${this} PRIVATE one::library)
cupcake_enable_testing()
cupcake_install_project()