You've already forked mariadb-columnstore-engine
							
							
				mirror of
				https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
				synced 2025-11-03 17:13:17 +03:00 
			
		
		
		
	
		
			
				
	
	
	
		
			476 B
		
	
	
	
	
	
	
	
			
		
		
	
	
			476 B
		
	
	
	
	
	
	
	
CMakeLists.txt
For Columnstore 1.2, you compile your function by including it in the CMakeLists.txt file for the udfsdk.
You need only add the new .cpp files to the udfsdk_LIB_SRCS target list:
set(udfsdk_LIB_SRCS udfsdk.cpp mcsv1_udaf.cpp allnull.cpp ssq.cpp median.cpp avg_mode.cpp)
If you create a new file for your MariaDB Aggregate function, add it to the target list for udf_mysql_LIB_SRCS:
set(udf_mysql_LIB_SRCS udfmysql.cpp)