Add flags for supporting externally defined dependencies. (#9355)
This commit is contained in:
7
third_party/benchmark/tnt/CMakeLists.txt
vendored
7
third_party/benchmark/tnt/CMakeLists.txt
vendored
@@ -1,3 +1,10 @@
|
||||
option(FILAMENT_USE_EXTERNAL_BENCHMARK "Use find_package to locate an external benchmark dependency" OFF)
|
||||
|
||||
if (FILAMENT_USE_EXTERNAL_BENCHMARK)
|
||||
find_package(benchmark CONFIG QUIET)
|
||||
return()
|
||||
endif()
|
||||
|
||||
cmake_minimum_required(VERSION 3.19)
|
||||
project(benchmark)
|
||||
|
||||
|
||||
7
third_party/libgtest/tnt/CMakeLists.txt
vendored
7
third_party/libgtest/tnt/CMakeLists.txt
vendored
@@ -1,3 +1,10 @@
|
||||
option(FILAMENT_USE_EXTERNAL_GTEST "Use find_package to locate an external gtest dependency" OFF)
|
||||
|
||||
if (FILAMENT_USE_EXTERNAL_GTEST)
|
||||
find_package(gtest CONFIG QUIET)
|
||||
return()
|
||||
endif()
|
||||
|
||||
cmake_minimum_required(VERSION 3.19)
|
||||
project(gtest)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user