Skip to content

Commit bb0179b

Browse files
committed
gtest as an external dependency
1 parent 8a6507f commit bb0179b

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

external/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
44
message(FATAL_ERROR "In-source build is not supported!")
55
endif()
66

7+
if (${REPO_OPTION_PREFIX}_ENABLE_TESTS AND (NOT TARGET gtest))
8+
add_subdirectory(gtest)
9+
endif()
10+
711
add_subdirectory(boost)
812
add_subdirectory(paho_mqtt_c)
913
add_subdirectory(rapidjson)

external/gtest/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
opendaq_set_cmake_folder_context(TARGET_FOLDER_NAME)
2+
opendaq_module_setup_gtest("1.12.1")

0 commit comments

Comments
 (0)