25 lines
		
	
	
		
			1022 B
		
	
	
	
		
			CMake
		
	
	
		
		
			
		
	
	
			25 lines
		
	
	
		
			1022 B
		
	
	
	
		
			CMake
		
	
	
| 
								 | 
							
								# This config file modifies CMAKE_MODULE_PATH so that the wrap cmake files may
							 | 
						||
| 
								 | 
							
								# be included This file also allows the use of `find_package(gtwrap)` in CMake.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								@PACKAGE_INIT@
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								# Set the path to the Python package directory so we can add it to the PYTHONPATH.
							 | 
						||
| 
								 | 
							
								# Used in the *Wrap.cmake files.
							 | 
						||
| 
								 | 
							
								set_and_check(GTWRAP_PYTHON_PACKAGE_DIR @PACKAGE_INSTALL_LIB_DIR@)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								# Load all the CMake scripts from the standard location
							 | 
						||
| 
								 | 
							
								include(@PACKAGE_INSTALL_CMAKE_DIR@/PybindWrap.cmake)
							 | 
						||
| 
								 | 
							
								include(@PACKAGE_INSTALL_CMAKE_DIR@/MatlabWrap.cmake)
							 | 
						||
| 
								 | 
							
								include(@PACKAGE_INSTALL_CMAKE_DIR@/GtwrapUtils.cmake)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								# Set the variables for the wrapping scripts to be used in the build.
							 | 
						||
| 
								 | 
							
								set_and_check(PYBIND_WRAP_SCRIPT "@PACKAGE_INSTALL_BIN_DIR@/pybind_wrap.py")
							 | 
						||
| 
								 | 
							
								set_and_check(MATLAB_WRAP_SCRIPT "@PACKAGE_INSTALL_BIN_DIR@/matlab_wrap.py")
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								# Load the pybind11 code from the library installation path
							 | 
						||
| 
								 | 
							
								add_subdirectory(@PACKAGE_INSTALL_LIB_DIR@/pybind11 pybind11)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								check_required_components(gtwrap)
							 |