| 
									
										
										
										
											2019-07-01 12:40:51 +02:00
										 |  |  | # - Try to find DataPipes include dirs and libraries
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | # Usage of this module as follows:
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | #     find_package(DataPipes)
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | # Variables used by this module, they can change the default behaviour and need
 | 
					
						
							|  |  |  | # to be set before calling find_package:
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | #  DataPipes_ROOT_DIR          Set this variable to the root installation of
 | 
					
						
							|  |  |  | #                            DataPipes if the module has problems finding the
 | 
					
						
							|  |  |  | #                            proper installation path.
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | # Variables defined by this module:
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | #  DataPipes_FOUND             System has DataPipes, include and library dirs found
 | 
					
						
							|  |  |  | #  DataPipes_INCLUDE_DIR       The DataPipes include directories.
 | 
					
						
							|  |  |  | #  DataPipes_LIBRARIES_STATIC  The DataPipes libraries.
 | 
					
						
							|  |  |  | #  DataPipes_LIBRARIES_SHARED  The DataPipes libraries.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-07-02 02:23:51 +02:00
										 |  |  | include(tearoot-helper)
 | 
					
						
							|  |  |  | include(FindPackageHandleStandardArgs)
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-07-01 12:40:51 +02:00
										 |  |  | find_path(DataPipes_ROOT_DIR | 
					
						
							|  |  |  |         NAMES include/buffer.h include/pipeline.h CMakeLists.txt
 | 
					
						
							| 
									
										
										
										
											2019-07-02 02:23:51 +02:00
										 |  |  |         HINTS ${DataPipes_ROOT_DIR} ${DataPipes_ROOT_DIR}/${BUILD_OUTPUT}
 | 
					
						
							| 
									
										
										
										
											2019-07-01 12:40:51 +02:00
										 |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | find_path(DataPipes_INCLUDE_DIR | 
					
						
							|  |  |  |         NAMES pipes/pipeline.h pipes/buffer.h
 | 
					
						
							| 
									
										
										
										
											2019-07-02 02:23:51 +02:00
										 |  |  |         HINTS ${DataPipes_ROOT_DIR}/include/
 | 
					
						
							| 
									
										
										
										
											2019-07-01 12:40:51 +02:00
										 |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | find_library(DataPipes_LIBRARIES_STATIC | 
					
						
							|  |  |  |         NAMES DataPipes.lib libDataPipes.a
 | 
					
						
							| 
									
										
										
										
											2019-07-02 02:23:51 +02:00
										 |  |  |         HINTS ${DataPipes_ROOT_DIR} ${DataPipes_ROOT_DIR}/lib
 | 
					
						
							| 
									
										
										
										
											2019-07-01 12:40:51 +02:00
										 |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | find_library(DataPipes_LIBRARIES_SHARED | 
					
						
							|  |  |  |         NAMES DataPipes.dll libDataPipes.so
 | 
					
						
							| 
									
										
										
										
											2019-07-02 02:23:51 +02:00
										 |  |  | 		HINTS ${DataPipes_ROOT_DIR} ${DataPipes_ROOT_DIR}/lib
 | 
					
						
							| 
									
										
										
										
											2019-07-01 12:40:51 +02:00
										 |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | find_package_handle_standard_args(DataPipes DEFAULT_MSG | 
					
						
							|  |  |  |         DataPipes_INCLUDE_DIR
 | 
					
						
							|  |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | mark_as_advanced( | 
					
						
							|  |  |  |         DataPipes_ROOT_DIR
 | 
					
						
							|  |  |  |         DataPipes_INCLUDE_DIR
 | 
					
						
							|  |  |  |         DataPipes_LIBRARIES_STATIC
 | 
					
						
							|  |  |  |         DataPipes_LIBRARIES_SHARED
 | 
					
						
							|  |  |  | )
 |