diff --git a/deps.cmake b/deps.cmake new file mode 100644 index 000000000..d366b1f89 --- /dev/null +++ b/deps.cmake @@ -0,0 +1,20 @@ +# Copyright 2022 The GPGMM Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Current revision of source-packages under third_party. +set(GPGMM_GOOGLETEST_REVISION 6b74da4757a549563d7c37c8fae3e704662a043b) +set(GPGMM_JSONCPP_REVISION 9059f5cad030ba11d37818847443a53918c327b1) +set(GPGMM_BENCHMARK_REVISION f730846b0a3c0dc0699978846fb14ffb2fad0bdc) +set(GPGMM_VULKAN_HEADERS_REVISION 9f73b931f402f23554a60015924e7e35c7047487) +set(GPGMM_VULKAN_LOADER_REVISION 9a45e5a4ab79b81e27e1417ca65d53ecfe57ba37) \ No newline at end of file diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt index 5adbd4694..29d320502 100644 --- a/third_party/CMakeLists.txt +++ b/third_party/CMakeLists.txt @@ -18,14 +18,9 @@ include(FetchContent) -set(FETCHCONTENT_BASE_DIR "${GPGMM_THIRD_PARTY_DIR}") +include("${CMAKE_CURRENT_LIST_DIR}/../deps.cmake") -# Current revision of source-package. -set(GPGMM_GOOGLETEST_REVISION 6b74da4757a549563d7c37c8fae3e704662a043b) -set(GPGMM_JSONCPP_REVISION 9059f5cad030ba11d37818847443a53918c327b1) -set(GPGMM_BENCHMARK_REVISION f730846b0a3c0dc0699978846fb14ffb2fad0bdc) -set(GPGMM_VULKAN_HEADERS_REVISION 9f73b931f402f23554a60015924e7e35c7047487) -set(GPGMM_VULKAN_LOADER_REVISION 9a45e5a4ab79b81e27e1417ca65d53ecfe57ba37) +set(FETCHCONTENT_BASE_DIR "${GPGMM_THIRD_PARTY_DIR}") if (GPGMM_ENABLE_TESTS) FetchContent_Declare(