mirror of
https://github.com/progsource/maddy.git
synced 2026-03-26 00:10:37 +01:00
build: move gtest into cmake and up cmake min version
cmake minimum required version is now 3.25. Instead of loading gtest via git submodule, it is now loaded in the cmake files. gtest version upped to v1.13.0.
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
# This project is licensed under the MIT license. For more information see the
|
||||
# LICENSE file.
|
||||
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
include(FetchContent)
|
||||
|
||||
set(LIBS_INCLUDE_DIRS
|
||||
# -- googletest / -mock --------------------------------------------------------
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/gtest/googletest/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/gtest/googlemock/include
|
||||
# ------------------------------------------------------------------------------
|
||||
PARENT_SCOPE)
|
||||
|
||||
set(LIBS_SRC_FILES
|
||||
PARENT_SCOPE)
|
||||
FetchContent_Declare(
|
||||
googletest
|
||||
GIT_REPOSITORY https://github.com/google/googletest.git
|
||||
GIT_TAG b796f7d44681514f58a683a3a71ff17c94edb0c1 # v1.13.0
|
||||
)
|
||||
FetchContent_MakeAvailable(googletest)
|
||||
|
||||
Submodule libs/gtest deleted from 703bd9caab
Reference in New Issue
Block a user