Warning, /system/dolphin/cmake/FindGem.cmake is written in an unsupported language. File is not indexed.
0001 #============================================================================= 0002 # SPDX-FileCopyrightText: 2019 Harald Sitter <sitter@kde.org> 0003 # 0004 # SPDX-License-Identifier: BSD-3-Clause 0005 #============================================================================= 0006 0007 # In this scope it's the dir we are in, in the function scope it will be the 0008 # caller's dir. So, keep our dir in a var. 0009 set(FINDGEM_MODULES_DIR ${CMAKE_CURRENT_LIST_DIR}) 0010 0011 function(find_gem GEM_NAME) 0012 set(GEM_PACKAGE "Gem_${GEM_NAME}") 0013 0014 configure_file(${FINDGEM_MODULES_DIR}/FindGem.cmake.in Find${GEM_PACKAGE}.cmake @ONLY) 0015 0016 set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_BINARY_DIR}" ${CMAKE_MODULE_PATH}) 0017 find_package(${GEM_PACKAGE} ${ARGN}) 0018 endfunction()