| 
									
										
										
										
											2022-01-12 00:01:42 +08:00
										 |  |  | cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
 | 
					
						
							|  |  |  | project( | 
					
						
							| 
									
										
										
										
											2023-12-14 03:29:17 +08:00
										 |  |  |   CPUruntime
 | 
					
						
							|  |  |  |   DESCRIPTION "Implementation CUDA runtime API with CPUs"
 | 
					
						
							| 
									
										
										
										
											2022-01-12 00:01:42 +08:00
										 |  |  |   LANGUAGES CXX)
 | 
					
						
							| 
									
										
										
										
											2023-12-14 03:29:17 +08:00
										 |  |  | set(LIB_NAME CPUruntime)
 | 
					
						
							| 
									
										
										
										
											2022-01-12 00:01:42 +08:00
										 |  |  | set(CMAKE_VERBOSE_MAKEFILE ON)
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # compile threadPool implementation
 | 
					
						
							|  |  |  | add_subdirectory(threadPool)
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # compile x86 runtime library
 | 
					
						
							| 
									
										
										
										
											2022-09-16 06:43:14 +08:00
										 |  |  | include_directories(../common)
 | 
					
						
							| 
									
										
										
										
											2022-06-18 10:20:13 +08:00
										 |  |  | include_directories(./include/)
 | 
					
						
							| 
									
										
										
										
											2023-12-14 03:29:17 +08:00
										 |  |  | include_directories(./include/cpu)
 | 
					
						
							| 
									
										
										
										
											2022-06-18 10:20:13 +08:00
										 |  |  | include_directories(./threadPool/include/)
 | 
					
						
							| 
									
										
										
										
											2023-12-14 03:29:17 +08:00
										 |  |  | include_directories(./threadPool/include/cpu)
 | 
					
						
							| 
									
										
										
										
											2022-09-08 07:32:22 +08:00
										 |  |  | include_directories(../external/moodycamel/)
 | 
					
						
							| 
									
										
										
										
											2023-12-14 03:29:17 +08:00
										 |  |  | file(GLOB proj_SOURCES "src/cpu/*.cpp")
 | 
					
						
							| 
									
										
										
										
											2022-01-12 00:01:42 +08:00
										 |  |  | add_library(${LIB_NAME} SHARED ${proj_SOURCES})
 |