| 
									
										
										
										
											2025-03-20 23:21:33 +01:00
										 |  |  | cmake_minimum_required(VERSION 3.25)
 | 
					
						
							| 
									
										
										
										
											2025-03-20 21:44:22 +01:00
										 |  |  | project(isspam)
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | set(CMAKE_CXX_STANDARD 26)
 | 
					
						
							|  |  |  | if (MSVC)
 | 
					
						
							|  |  |  |     add_compile_options(/W4)
 | 
					
						
							|  |  |  |     add_compile_options(/WX)
 | 
					
						
							|  |  |  |     add_compile_options(/external:anglebrackets)
 | 
					
						
							|  |  |  |     add_compile_options(/external:W0)
 | 
					
						
							|  |  |  |     add_compile_options(/wd4100)
 | 
					
						
							|  |  |  |     add_compile_options(/wd5050)
 | 
					
						
							|  |  |  |     add_definitions(-DWIN32_LEAN_AND_MEAN -DVC_EXTRALEAN)
 | 
					
						
							|  |  |  |     add_compile_definitions(WIN32_LEAN_AND_MEAN NOMINMAX)
 | 
					
						
							|  |  |  | else ()
 | 
					
						
							|  |  |  |     add_compile_options(-Wall)
 | 
					
						
							|  |  |  |     add_compile_options(-Wextra)
 | 
					
						
							|  |  |  |     add_compile_options(-Wpedantic)
 | 
					
						
							| 
									
										
										
										
											2025-03-23 22:06:48 +01:00
										 |  |  | #    add_compile_options(-Werror)
 | 
					
						
							| 
									
										
										
										
											2025-03-20 21:44:22 +01:00
										 |  |  | endif ()
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-23 22:06:48 +01:00
										 |  |  | add_executable(${PROJECT_NAME} src/main.cpp)
 | 
					
						
							|  |  |  | add_executable(${PROJECT_NAME}3 src/main3.cpp)
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if (LINUX)
 | 
					
						
							|  |  |  |     target_link_libraries(${PROJECT_NAME} tbb)
 | 
					
						
							|  |  |  |     target_link_libraries(${PROJECT_NAME}3 tbb)
 | 
					
						
							|  |  |  | endif ()
 |