You've already forked mariadb-columnstore-engine
							
							
				mirror of
				https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
				synced 2025-10-30 07:25:34 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			35 lines
		
	
	
		
			954 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			954 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| 
 | |
| include_directories( ${ENGINE_COMMON_INCLUDES} )
 | |
| 
 | |
| 
 | |
| ########### next target ###############
 | |
| 
 | |
| set(loggingcpp_LIB_SRCS
 | |
|     message.cpp
 | |
|     messagelog.cpp
 | |
|     logger.cpp
 | |
|     errorcodes.cpp
 | |
|     sqllogger.cpp
 | |
|     stopwatch.cpp
 | |
|     idberrorinfo.cpp)
 | |
| 
 | |
| ADD_CUSTOM_COMMAND(
 | |
|     OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/messageids.h ${CMAKE_CURRENT_SOURCE_DIR}/errorids.h
 | |
|     COMMAND ./genMsgAndErrId.sh
 | |
|     WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
 | |
|     DEPENDS genMsgId.pl genErrId.pl
 | |
|     )
 | |
|     
 | |
| ADD_CUSTOM_TARGET(genMsgAndErrId DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/messageids.h ${CMAKE_CURRENT_SOURCE_DIR}/errorids.h)
 | |
|     
 | |
| add_library(loggingcpp SHARED ${loggingcpp_LIB_SRCS})
 | |
| 
 | |
| add_dependencies(loggingcpp genMsgAndErrId)
 | |
| 
 | |
| set_target_properties(loggingcpp PROPERTIES VERSION 1.0.0 SOVERSION 1)
 | |
| 
 | |
| install(TARGETS loggingcpp DESTINATION ${ENGINE_LIBDIR} COMPONENT libs)
 | |
| 
 | |
| install(FILES MessageFile.txt ErrorMessage.txt DESTINATION ${ENGINE_ETCDIR} COMPONENT platform)
 | |
| 
 |