Sha256: ce736175d529918427a856a5c2617353569e61c41cd612ac4d2bfbaaa5820e0f

Contents?: true

Size: 1.04 KB

Versions: 22

Compression:

Stored size: 1.04 KB

Contents

# - MACRO_OPTIONAL_FIND_PACKAGE() combines FIND_PACKAGE() with an OPTION()
# MACRO_OPTIONAL_FIND_PACKAGE( <name> [QUIT] )
# This macro is a combination of OPTION() and FIND_PACKAGE(), it
# works like FIND_PACKAGE(), but additionally it automatically creates
# an option name WITH_<name>, which can be disabled via the cmake GUI.
# or via -DWITH_<name>=OFF
# The standard <name>_FOUND variables can be used in the same way
# as when using the normal FIND_PACKAGE()

# Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.


macro (MACRO_OPTIONAL_FIND_PACKAGE _name )
   option(WITH_${_name} "Search for ${_name} package" ON)
   if (WITH_${_name})
      find_package(${_name} ${ARGN})
   else (WITH_${_name})
      set(${_name}_FOUND)
      set(${_name}_INCLUDE_DIR)
      set(${_name}_INCLUDES)
      set(${_name}_LIBRARY)
      set(${_name}_LIBRARIES)
   endif (WITH_${_name})
endmacro (MACRO_OPTIONAL_FIND_PACKAGE)

Version data entries

22 entries across 11 versions & 2 rubygems

Version Path
rock-qtbindings-4.8.6.5 ext/generator/cmake/MacroOptionalFindPackage.cmake
rock-qtbindings-4.8.6.5 ext/cmake/modules/MacroOptionalFindPackage.cmake
qtbindings-4.8.6.5 ext/cmake/modules/MacroOptionalFindPackage.cmake
qtbindings-4.8.6.5 ext/generator/cmake/MacroOptionalFindPackage.cmake
qtbindings-4.8.6.4 ext/generator/cmake/MacroOptionalFindPackage.cmake
qtbindings-4.8.6.4 ext/cmake/modules/MacroOptionalFindPackage.cmake
qtbindings-4.8.6.2 ext/generator/cmake/MacroOptionalFindPackage.cmake
qtbindings-4.8.6.2 ext/cmake/modules/MacroOptionalFindPackage.cmake
qtbindings-4.8.6.1 ext/generator/cmake/MacroOptionalFindPackage.cmake
qtbindings-4.8.6.1 ext/cmake/modules/MacroOptionalFindPackage.cmake
qtbindings-4.8.6.0 ext/generator/cmake/MacroOptionalFindPackage.cmake
qtbindings-4.8.6.0 ext/cmake/modules/MacroOptionalFindPackage.cmake
qtbindings-4.8.5.2 ext/generator/cmake/MacroOptionalFindPackage.cmake
qtbindings-4.8.5.2 ext/cmake/modules/MacroOptionalFindPackage.cmake
qtbindings-4.8.5.1 ext/generator/cmake/MacroOptionalFindPackage.cmake
qtbindings-4.8.5.1 ext/cmake/modules/MacroOptionalFindPackage.cmake
qtbindings-4.8.5.0 ext/cmake/modules/MacroOptionalFindPackage.cmake
qtbindings-4.8.5.0 ext/generator/cmake/MacroOptionalFindPackage.cmake
qtbindings-4.8.3.0-x86-mingw32 ext/generator/cmake/MacroOptionalFindPackage.cmake
qtbindings-4.8.3.0-x86-mingw32 ext/cmake/modules/MacroOptionalFindPackage.cmake