Added more status messages to configuration and a switch to control system file installing
This commit is contained in:
parent
bc49b6a901
commit
155efe0dc5
@ -72,21 +72,21 @@ add_subdirectory(server)
|
||||
add_subdirectory(client)
|
||||
|
||||
if(BUILD_RABBITMQ)
|
||||
message(STATUS "Building RabbitMQ components")
|
||||
add_subdirectory(rabbitmq_consumer)
|
||||
endif(BUILD_RABBITMQ)
|
||||
|
||||
file(GLOB DOCS Documentation/*.pdf)
|
||||
|
||||
|
||||
if(NOT (${CMAKE_BUILD_TYPE} MATCHES "Debug"))
|
||||
message(STATUS "Will install system files")
|
||||
install(FILES server/test/MaxScale_test.cnf RENAME MaxScale.cnf DESTINATION /etc)
|
||||
if( NOT ( (DEFINED INSTALL_SYSTEM_FILES) AND ( ${INSTALL_SYSTEM_FILES} MATCHES "N" ) ) )
|
||||
install(FILES maxscale.conf DESTINATION /etc/ld.so.conf.d)
|
||||
install(FILES etc/init.d/maxscale DESTINATION /etc/init.d)
|
||||
else()
|
||||
install(FILES server/test/MaxScale_test.cnf RENAME MaxScale.cnf DESTINATION etc)
|
||||
message(STATUS "Installing maxscale.conf to: /etc/ld.so.conf.d")
|
||||
message(STATUS "Installing startup scripts to: /etc/init.d")
|
||||
endif()
|
||||
|
||||
message(STATUS "Installing MaxScale to: ${CMAKE_INSTALL_PREFIX}/")
|
||||
install(FILES server/test/MaxScale_test.cnf RENAME MaxScale.cnf DESTINATION etc)
|
||||
install(FILES ${ERRMSG} DESTINATION mysql)
|
||||
install(FILES ${EMBEDDED_LIB} DESTINATION lib)
|
||||
install(FILES ${DOCS} DESTINATION Documentation)
|
||||
|
1
README
1
README
@ -178,6 +178,7 @@ Variables controlling the CMake build process:
|
||||
|
||||
CMAKE_INSTALL_PREFIX=<path> Install destination prefix, same as DEST
|
||||
CMAKE_BUILD_TYPE=[Debug|Release] Type of the build
|
||||
INSTALL_SYSTEM_FILES=[Y|N] Install startup scripts and ld configuration files
|
||||
EMBEDDED_LIB=<path> Path to the embedded library, filename included
|
||||
MYSQL_DIR=<path> Path to MySQL headers
|
||||
STATIC_EMBEDDED=[Y|N] Link the static or the dynamic verson of the library
|
||||
|
Loading…
x
Reference in New Issue
Block a user