Debian Codegraph @

build/cmake_package_files/CppUTestConfig.cmake

raw ◀ ▶
1 Debian patch touch this file
1
2 ####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
3 ####### Any changes to this file will be overwritten by the next CMake run ####
4 ####### The input file was CppUTestConfig.cmake.install.in ########
5
6 macro(set_and_check _var _file)
7 set(${_var} "${_file}")
8 if(NOT EXISTS "${_file}")
9 message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !")
10 endif()
11 endmacro()
12
13 macro(check_required_components _NAME)
14 foreach(comp ${${_NAME}_FIND_COMPONENTS})
15 if(NOT ${_NAME}_${comp}_FOUND)
16 if(${_NAME}_FIND_REQUIRED_${comp})
17 set(${_NAME}_FOUND FALSE)
18 endif()
19 endif()
20 endforeach()
21 endmacro()
22
23 ####################################################################################
24
•25 set_and_check(CppUTest_INCLUDE_DIRS "/usr/include")
26 include("${CMAKE_CURRENT_LIST_DIR}/CppUTestTargets.cmake")
27 set(CppUTest_LIBRARIES CppUTest CppUTestExt)
28 include("${CMAKE_CURRENT_LIST_DIR}/Modules/CppUTestBuildTimeDiscoverTests.cmake")
29
30 check_required_components(CppUTest)