| 
									
										
										
										
											2019-07-01 12:40:51 +02:00
										 |  |  | # - Try to find ThreadPool include dirs and libraries
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | # Usage of this module as follows:
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | #     find_package(ThreadPool)
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | # Variables used by this module, they can change the default behaviour and need
 | 
					
						
							|  |  |  | # to be set before calling find_package:
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | #  ThreadPool_ROOT_DIR          Set this variable to the root installation of
 | 
					
						
							|  |  |  | #                            ThreadPool if the module has problems finding the
 | 
					
						
							|  |  |  | #                            proper installation path.
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | # Variables defined by this module:
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | #  ThreadPool_FOUND             System has ThreadPool, include and library dirs found
 | 
					
						
							|  |  |  | #  ThreadPool_INCLUDE_DIR       The ThreadPool include directories.
 | 
					
						
							|  |  |  | #  ThreadPool_LIBRARIES_STATIC  The ThreadPool libraries.
 | 
					
						
							|  |  |  | #  ThreadPool_LIBRARIES_SHARED  The ThreadPool libraries.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-07-02 02:23:51 +02:00
										 |  |  | include(tearoot-helper)
 | 
					
						
							|  |  |  | include(FindPackageHandleStandardArgs)
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-07-01 12:40:51 +02:00
										 |  |  | find_path(ThreadPool_ROOT_DIR | 
					
						
							|  |  |  |         NAMES include/ThreadPool.h CMakeLists.txt
 | 
					
						
							| 
									
										
										
										
											2019-07-02 02:23:51 +02:00
										 |  |  | 		HINTS ${ThreadPool_ROOT_DIR} ${ThreadPool_ROOT_DIR}/${BUILD_OUTPUT}
 | 
					
						
							| 
									
										
										
										
											2019-07-01 12:40:51 +02:00
										 |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #This NEEDS a fix!
 | 
					
						
							|  |  |  | find_path(ThreadPool_INCLUDE_DIR | 
					
						
							|  |  |  |         NAMES ThreadPool/ThreadPool.h
 | 
					
						
							| 
									
										
										
										
											2019-07-02 02:23:51 +02:00
										 |  |  | 		HINTS ${ThreadPool_ROOT_DIR} ${ThreadPool_ROOT_DIR}/include/
 | 
					
						
							| 
									
										
										
										
											2019-07-01 12:40:51 +02:00
										 |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | find_library(ThreadPool_LIBRARIES_STATIC | 
					
						
							| 
									
										
										
										
											2019-07-03 13:27:12 +02:00
										 |  |  |         NAMES ThreadPoolStatic.lib ThreadPoolStatic.a libThreadPoolStatic.a
 | 
					
						
							| 
									
										
										
										
											2019-07-02 02:23:51 +02:00
										 |  |  | 		HINTS ${ThreadPool_ROOT_DIR} ${ThreadPool_ROOT_DIR}/lib
 | 
					
						
							| 
									
										
										
										
											2019-07-01 12:40:51 +02:00
										 |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | find_library(ThreadPool_LIBRARIES_SHARED | 
					
						
							|  |  |  |         NAMES ThreadPool.dll ThreadPool.so
 | 
					
						
							| 
									
										
										
										
											2019-07-02 02:23:51 +02:00
										 |  |  | 		HINTS ${ThreadPool_ROOT_DIR} ${ThreadPool_ROOT_DIR}/lib
 | 
					
						
							| 
									
										
										
										
											2019-07-01 12:40:51 +02:00
										 |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | find_package_handle_standard_args(ThreadPool DEFAULT_MSG | 
					
						
							|  |  |  |         ThreadPool_INCLUDE_DIR
 | 
					
						
							|  |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | mark_as_advanced( | 
					
						
							|  |  |  |         ThreadPool_ROOT_DIR
 | 
					
						
							|  |  |  |         ThreadPool_INCLUDE_DIR
 | 
					
						
							|  |  |  |         ThreadPool_LIBRARIES_STATIC
 | 
					
						
							|  |  |  |         ThreadPool_LIBRARIES_SHARED
 | 
					
						
							|  |  |  | )
 |