Warning, /libraries/kreport/cmake/modules/KReportAddExamples.cmake is written in an unsupported language. File is not indexed.
0001 # Additional CMake macros 0002 # 0003 # Copyright (C) 2015-2017 Jarosław Staniek <staniek@kde.org> 0004 # 0005 # Redistribution and use is allowed according to the terms of the BSD license. 0006 # For details see the accompanying COPYING-CMAKE-SCRIPTS file. 0007 0008 if(__kreport_add_examples) 0009 return() 0010 endif() 0011 set(__kreport_add_examples YES) 0012 0013 include(KReportAddSimpleOption) 0014 0015 # Adds BUILD_EXAMPLES option to enable examples. If enabled, build in examples/ subdirectory 0016 # is enabled. If optional argument ARG1 is ON, building examples will be ON by default. 0017 # Otherwise building examples will be OFF. ARG1 is OFF by default. 0018 macro(kreport_add_examples) 0019 set(_SET ${ARGV0}) 0020 if (NOT "${_SET}" STREQUAL ON) 0021 set(_SET OFF) 0022 endif() 0023 simple_option(BUILD_EXAMPLES "Build example applications" ${_SET}) 0024 endmacro()