File tree Expand file tree Collapse file tree 3 files changed +375
-368
lines changed Expand file tree Collapse file tree 3 files changed +375
-368
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,9 @@ case "$OS" in
49
49
;;
50
50
esac
51
51
52
+
52
53
cd build
53
- " ${cmake_binary} " -G " $GENERATOR " " -DCMAKE_BUILD_TYPE=${BUILD_TYPE} " -DMONGOCXX_ENABLE_SLOW_TESTS=ON -DENABLE_UNINSTALL=ON " $@ " ..
54
+ " ${cmake_binary} " -G " $GENERATOR " " -DCMAKE_BUILD_TYPE=${BUILD_TYPE} " -DENABLE_TESTS=ON - DMONGOCXX_ENABLE_SLOW_TESTS=ON -DENABLE_UNINSTALL=ON " $@ " ..
54
55
" ${cmake_binary} " --build . --config $BUILD_TYPE -- $CMAKE_BUILD_OPTS
55
56
" ${cmake_binary} " --build . --config $BUILD_TYPE --target install -- $CMAKE_BUILD_OPTS
56
57
" ${cmake_binary} " --build . --config $BUILD_TYPE --target $CMAKE_EXAMPLES_TARGET -- $CMAKE_BUILD_OPTS
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- include_directories (
16
- ${MONGO_CXX_DRIVER_SOURCE_DIR} /src/third_party/catch/include
17
- )
15
+ if (${ENABLE_TESTS} )
18
16
19
- file (GLOB src_bsoncxx_test_DIST_cpps RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp )
17
+ include_directories (
18
+ ${MONGO_CXX_DRIVER_SOURCE_DIR} /src/third_party/catch/include
19
+ )
20
20
21
- add_executable (test_bson
22
- ${THIRD_PARTY_SOURCE_DIR} /catch/main.cpp
23
- ${src_bsoncxx_test_DIST_cpps}
24
- )
21
+ file (GLOB src_bsoncxx_test_DIST_cpps RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp )
25
22
26
- target_link_libraries (test_bson bsoncxx_testing ${libbson_target} )
27
- target_include_directories (test_bson PRIVATE ${libbson_include_directories} )
28
- target_compile_definitions (test_bson PRIVATE ${libbson_definitions} )
23
+ add_executable (test_bson
24
+ ${THIRD_PARTY_SOURCE_DIR} /catch/main.cpp
25
+ ${src_bsoncxx_test_DIST_cpps}
26
+ )
29
27
30
- add_test (bson test_bson )
28
+ target_link_libraries (test_bson bsoncxx_testing ${libbson_target} )
29
+ target_include_directories (test_bson PRIVATE ${libbson_include_directories} )
30
+ target_compile_definitions (test_bson PRIVATE ${libbson_definitions} )
31
31
32
- set_dist_list (src_bsoncxx_test_DIST
33
- CMakeLists.txt
34
- ${src_bsoncxx_test_DIST_cpps}
35
- )
32
+ add_test (bson test_bson )
33
+
34
+ set_dist_list (src_bsoncxx_test_DIST
35
+ CMakeLists.txt
36
+ ${src_bsoncxx_test_DIST_cpps}
37
+ )
38
+
39
+ endif ()
You can’t perform that action at this time.
0 commit comments