File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ cmake_minimum_required(VERSION 2.8)
7
7
project (CPP-NETLIB)
8
8
9
9
option ( CPP-NETLIB_BUILD_SHARED_LIBS "Build cpp-netlib as shared libraries." OFF )
10
+ option ( CPP-NETLIB_BUILD_TESTS "Build the cpp-netlib project tests." ON )
11
+ option ( CPP-NETLIB_BUILD_EXAMPLES "Build the cpp-netlib project examples." ON )
10
12
11
13
include (GNUInstallDirs)
12
14
@@ -82,12 +84,16 @@ if (Boost_FOUND)
82
84
include_directories (${Boost_INCLUDE_DIRS} )
83
85
enable_testing ()
84
86
add_subdirectory (libs/network/src)
85
- add_subdirectory (libs/network/test )
87
+ if (CPP-NETLIB_BUILD_TESTS)
88
+ add_subdirectory (libs/network/test )
89
+ endif (CPP-NETLIB_BUILD_TESTS)
86
90
add_subdirectory (libs/network/experiment)
87
- if (NOT MSVC )
91
+ if (NOT MSVC AND CPP-NETLIB_BUILD_TESTS )
88
92
add_subdirectory (libs/mime/test )
89
- endif (NOT MSVC )
90
- add_subdirectory (libs/network/example)
93
+ endif (NOT MSVC AND CPP-NETLIB_BUILD_TESTS)
94
+ if (CPP-NETLIB_BUILD_EXAMPLES)
95
+ add_subdirectory (libs/network/example)
96
+ endif (CPP-NETLIB_BUILD_EXAMPLES)
91
97
endif (Boost_FOUND)
92
98
93
99
if (MSVC )
You can’t perform that action at this time.
0 commit comments