File tree 4 files changed +9
-5
lines changed
4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change
1
+ [submodule "deps/googletest "]
2
+ path = deps/googletest
3
+ url = https://github.com/google/googletest.git
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ add_subdirectory(src)
56
56
# Testing
57
57
if (CMAKE_PROJECT_NAME STREQUAL "Uri" OR CPP-NETLIB_BUILD_TESTS)
58
58
enable_testing ()
59
- find_package (GTest REQUIRED )
59
+ add_subdirectory (deps/googletest )
60
60
add_subdirectory (test )
61
61
endif ()
62
62
Original file line number Diff line number Diff line change 1
- # Copyright (c) Glyn Matthews 2012, 2013 .
1
+ # Copyright (c) Glyn Matthews 2012-2016 .
2
2
# Distributed under the Boost Software License, Version 1.0.
3
3
# (See accompanying file LICENSE_1_0.txt or copy at
4
4
# http://www.boost.org/LICENSE_1_0.txt)
5
5
6
6
7
- include_directories (${GTEST_INCLUDE_DIRS} )
7
+ include_directories ( ${gtest_SOURCE_DIR} / include )
8
8
9
9
set (
10
10
TESTS
20
20
21
21
foreach (test ${TESTS} )
22
22
add_executable (${test} ${test} .cpp)
23
- add_dependencies (${test} network-uri)
24
- target_link_libraries (${test} ${GTEST_BOTH_LIBRARIES} ${ CMAKE_THREAD_LIBS_INIT} network-uri)
23
+ add_dependencies (${test} network-uri gtest_main )
24
+ target_link_libraries (${test} ${CMAKE_THREAD_LIBS_INIT} network-uri gtest_main )
25
25
if (OPENSSL_FOUND)
26
26
target_link_libraries (${test} ${OPENSSL_LIBRARIES} )
27
27
endif ()
You can’t perform that action at this time.
0 commit comments