-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
79 lines (71 loc) · 1.75 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
cmake_minimum_required(VERSION 3.25.1)
include(cmake/vcpkg.cmake)
# 设定工程名
project(
Cpp-Examples
VERSION 0.0.1
DESCRIPTION "This is Cpp-Examples"
HOMEPAGE_URL "https://github.com/RealChuan/Cpp-Examples"
LANGUAGES C CXX)
include(cmake/common.cmake)
find_package(unofficial-breakpad CONFIG REQUIRED)
if(unofficial-breakpad_FOUND)
message(STATUS "found unofficial-breakpad")
endif()
find_package(benchmark CONFIG REQUIRED)
if(benchmark_FOUND)
message(STATUS "found benchmark")
endif()
find_package(crashpad CONFIG REQUIRED)
if(crashpad_FOUND)
message(STATUS "found crashpad")
endif()
find_package(CURL CONFIG REQUIRED)
if(CURL_FOUND)
message(STATUS "found CURL")
endif()
find_package(efsw CONFIG REQUIRED)
if(efsw_FOUND)
message(STATUS "found efsw")
endif()
find_package(glog CONFIG REQUIRED)
if(glog_FOUND)
message(STATUS "found glog")
endif()
find_package(GTest CONFIG REQUIRED)
if(GTest_FOUND)
message(STATUS "found GTest")
endif()
find_package(OpenSSL REQUIRED)
if(OpenSSL_FOUND)
message(STATUS "found OpenSSL")
endif()
find_package(Threads REQUIRED)
if(Threads_FOUND)
message(STATUS "found Threads")
endif()
include(CTest)
enable_testing()
add_subdirectory(Algorithm)
add_subdirectory(BinaryTree)
add_subdirectory(Breakpad)
add_subdirectory(ByteOrder)
add_subdirectory(CountDownLatch)
add_subdirectory(Crashpad)
add_subdirectory(Curl)
add_subdirectory(GlobMatch)
add_subdirectory(DesignPattern)
add_subdirectory(Glog)
add_subdirectory(LinkedList)
add_subdirectory(Memcpy)
add_subdirectory(MonitorDir)
add_subdirectory(MonitorDir_EFSW)
add_subdirectory(Mutex)
add_subdirectory(OpenSSL)
add_subdirectory(Thread)
if(CMAKE_HOST_LINUX)
add_subdirectory(Client)
add_subdirectory(Icmp)
add_subdirectory(Server)
endif()
include(cmake/build_info.cmake)