-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
80 lines (66 loc) · 1.62 KB
/
CMakeLists.txt
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
include_guard()
# Project ---------------------------------------------------------------------
cmake_minimum_required(VERSION 3.20...3.22)
project(
env
DESCRIPTION "Environment for all of my C++ projects."
VERSION 0.2.0
HOMEPAGE_URL "https://github.com/Hrle97/cpp_env17"
LANGUAGES C CXX)
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
include(EnvFunc)
env_project(COPYRIGHT "2021, Hrle97" AUTHOR "Hrle97")
# Fetch -----------------------------------------------------------------------
env_fetch(
macros
FROM
GIT_REPOSITORY
https://github.com/nemequ/hedley.git
GIT_TAG
v15
SCAFFOLD
INCLUDE_DIRS
"/")
env_fetch(
test
FROM
GIT_REPOSITORY
https://github.com/google/googletest.git
GIT_TAG
release-1.11.0
SCAFFOLD
OPTIONS
"INSTALL_GTEST OFF"
"gtest_force_shared_crt ON"
"gtest_build_tests OFF"
"gtest_build_examples OFF"
"gmock_build_tests OFF")
env_fetch(
benchmark
FROM
GIT_REPOSITORY
https://github.com/google/benchmark.git
GIT_TAG
v1.6.0
SCAFFOLD
OPTIONS
"BENCHMARK_ENABLE_TESTING OFF"
"BENCHMARK_ENABLE_INSTALL OFF"
"BENCHMARK_ENABLE_GTEST_TESTS OFF")
# Dependencies ----------------------------------------------------------------
env_add_dep(test gtest gmock)
env_add_dep(test_main gtest_main gmock)
env_add_dep(bench benchmark)
# Targets ---------------------------------------------------------------------
env_project_targets(
SHARE_PCH
DEPS
env::macros
TEST_DEPS
env::test
BENCH_DEPS
env::bench
DOC_AUTHOR
"Hrle97"
DOC_COPYRIGHT
"2021, Hrle97")