| 
									
										
										
										
											2025-06-22 21:05:09 +02:00
										 |  |  | cmake_minimum_required(VERSION 3.22)
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-14 20:37:55 +02:00
										 |  |  | project(pd-lithium LANGUAGES CXX VERSION 0.5.1)
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | option(PD_LI_INCLUDE_FONTS "Include Fonts" OFF)
 | 
					
						
							| 
									
										
										
										
											2025-06-22 21:05:09 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | set(SRC | 
					
						
							|  |  |  |     source/drawlist.cpp
 | 
					
						
							|  |  |  |     source/font.cpp
 | 
					
						
							| 
									
										
										
										
											2025-08-14 20:37:55 +02:00
										 |  |  |     source/fonts.cpp
 | 
					
						
							| 
									
										
										
										
											2025-06-22 21:05:09 +02:00
										 |  |  |     source/renderer.cpp
 | 
					
						
							|  |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if(PD_BUILD_SHARED)
 | 
					
						
							|  |  |  |     pd_add_lib(pd-lithium BUILD_SHARED TRUE SRC_FILES ${SRC})
 | 
					
						
							|  |  |  | else()
 | 
					
						
							|  |  |  |     pd_add_lib(pd-lithium SRC_FILES ${SRC})
 | 
					
						
							|  |  |  | endif()
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-14 20:37:55 +02:00
										 |  |  | if(${PD_LI_INCLUDE_FONTS})
 | 
					
						
							|  |  |  |     target_compile_definitions(pd-lithium PUBLIC | 
					
						
							|  |  |  |         -DPD_LI_INCLUDE_FONTS=1
 | 
					
						
							|  |  |  |     )
 | 
					
						
							|  |  |  | endif()
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-06-22 21:05:09 +02:00
										 |  |  | target_link_libraries(pd-lithium PUBLIC pd-core)
 |