QtTestingConfig.cmake
Go to the documentation of this file.
1 #
2 # QtTestingConfig.cmake - QtTesting CMake configuration file for external projects.
3 #
4 
5 ####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
6 ####### Any changes to this file will be overwritten by the next CMake run ####
7 ####### The input file was QtTestingConfig-install.cmake.in ########
8 
9 get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)
10 
11 macro(set_and_check _var _file)
12  set(${_var} "${_file}")
13  if(NOT EXISTS "${_file}")
14  message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !")
15  endif()
16 endmacro()
17 
18 ####################################################################################
19 
20 if(IS_ABSOLUTE "include/paraview-5.13/vtkqttesting")
21  set(QtTesting_INCLUDE_DIRS "include/paraview-5.13/vtkqttesting")
22 else()
23  set(QtTesting_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/include/paraview-5.13/vtkqttesting")
24  get_filename_component(QtTesting_INCLUDE_DIRS "${QtTesting_INCLUDE_DIRS}" ABSOLUTE)
25 endif()
26 
27 if(IS_ABSOLUTE "lib64")
28  set(QtTesting_LIBRARY_DIR "lib64")
29 else()
30  set(QtTesting_LIBRARY_DIR "${PACKAGE_PREFIX_DIR}/lib64")
31  get_filename_component(QtTesting_LIBRARY_DIR "${QtTesting_LIBRARY_DIR}" ABSOLUTE)
32 endif()
33 
34 set(QtTesting_LIBRARIES QtTesting)
35 include("${CMAKE_CURRENT_LIST_DIR}/QtTestingTargets.cmake")
macro set_and_check(_var, _file)