catalyst-config.cmake
Go to the documentation of this file.
1 # Catalyst Package config file.
2 cmake_policy(PUSH)
3 cmake_policy(VERSION 3.13)
4 
5 set(CATALYST_VERSION "2.0")
7 set(CATALYST_BUILD_SHARED_LIBS "ON")
8 
9 
10 ####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
11 ####### Any changes to this file will be overwritten by the next CMake run ####
12 ####### The input file was catalyst-config.cmake.in ########
13 
14 get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../../" ABSOLUTE)
15 
16 macro(set_and_check _var _file)
17  set(${_var} "${_file}")
18  if(NOT EXISTS "${_file}")
19  message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !")
20  endif()
21 endmacro()
22 
24  foreach(comp ${${_NAME}_FIND_COMPONENTS})
25  if(NOT ${_NAME}_${comp}_FOUND)
26  if(${_NAME}_FIND_REQUIRED_${comp})
27  set(${_NAME}_FOUND FALSE)
28  endif()
29  endif()
30  endforeach()
31 endmacro()
32 
33 ####################################################################################
34 
35 include("${CMAKE_CURRENT_LIST_DIR}/catalyst-targets.cmake")
36 
37 if ("SDK" IN_LIST "${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS")
38  # if SDK was explicitly requested, include the macros.
39  include("${CMAKE_CURRENT_LIST_DIR}/catalyst-macros.cmake" OPTIONAL
40  RESULT_VARIABLE ${CMAKE_FIND_PACKAGE_NAME}_SDK_FOUND)
41 endif()
42 
44 cmake_policy(POP)
macro check_required_components(_NAME)
#define VERSION
Definition: jconfigint.h:17
#define CATALYST_VERSION
#define CATALYST_ABI_VERSION
macro set_and_check(_var, _file)