1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-02 17:22:27 +03:00

Add CMake build tree files

This commit is contained in:
Ben Thompson
2016-07-13 18:12:37 -05:00
parent 3bee340d5f
commit 424628349b
116 changed files with 4183 additions and 155 deletions

View File

@ -0,0 +1,57 @@
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_library(loggingcpp SHARED ${loggingcpp_LIB_SRCS})
set_target_properties(loggingcpp PROPERTIES VERSION 1.0.0 SOVERSION 1)
install(TARGETS loggingcpp DESTINATION ${ENGINE_LIBDIR})
install(FILES MessageFile.txt ErrorMessage.txt DESTINATION ${ENGINE_ETCDIR})
#
#
# TODO BEN FIX ME
#
#
execute_process(
COMMAND ./genMsgId.pl > messageids-temp.h
COMMAND diff -abBq messageids-temp.h messageids.h >/dev/null 2>&1;
if [ $$? -ne 0 ]; then
mv -f messageids-temp.h messageids.h;
else
touch messageids.h;
fi;
rm -f messageids-temp.h
)
execute_process(
COMMAND ./genErrId.pl > errorids-temp.h
COMMAND diff -abBq errorids-temp.h errorids.h >/dev/null 2>&1;
if [ $$? -ne 0 ]; then
mv -f errorids-temp.h errorids.h;
else
touch errorids.h;
fi;
rm -f errorids-temp.h
)
########### install files ###############
#install(FILES loggingid.h messageobj.h messagelog.h messageids.h logger.h errorcodes.h exceptclasses.h sqllogger.h stopwatch.h idberrorinfo.h errorids.h DESTINATION include)
#install(FILES MessageFile.txt ErrorMessage.txt DESTINATION )