forked from wwivbbs/wwiv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
58 lines (47 loc) · 1.33 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
# CMake for WWIV
cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
project(wwiv)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
include(Common)
include(FindASan)
MACRO_ENSURE_OUT_OF_SOURCE_BUILD()
if (WWIV_BUILD_TESTS)
# Workaround gtest really wanting to compile with /Mtd vs /MD
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
# googlemock also includes googletest
add_subdirectory(deps/googletest/googlemock)
enable_testing()
find_package(GTest REQUIRED)
find_package(GMock REQUIRED)
message("Using GoogleTest from ${GTEST_INCLUDE_DIRS}")
endif (WWIV_BUILD_TESTS)
# Cryptlib
add_subdirectory(deps/cl342)
# FMT
add_subdirectory(deps/fmt)
if(WIN32)
add_subdirectory(deps/pdcurses)
endif()
add_subdirectory(core)
add_subdirectory(bbs)
add_subdirectory(local_io)
add_subdirectory(localui)
add_subdirectory(network)
add_subdirectory(network1)
add_subdirectory(network2)
add_subdirectory(network3)
add_subdirectory(networkb)
add_subdirectory(networkc)
add_subdirectory(networkf)
add_subdirectory(sdk)
add_subdirectory(wwivconfig)
add_subdirectory(wwivd)
add_subdirectory(wwivutil)
if (WWIV_BUILD_TESTS)
message (STATUS "WWIV_BUILD_TESTS is ON")
add_subdirectory(bbs_test)
add_subdirectory(core_test)
add_subdirectory(networkb_test)
add_subdirectory(sdk_test)
add_subdirectory(wwivd_test)
endif (WWIV_BUILD_TESTS)