Now, qc_mysqlembedded is linked against MySQL's embedded library, and MaxScale itself against Connector-C. So, in order to build MaxScale, Connector-C must be installed. This has been tested with Connector-C 2.2.1. The build variable MYSQLCLIENT_LIBRARIES is no longer used.
14 lines
552 B
CMake
14 lines
552 B
CMake
add_library(query_classifier SHARED query_classifier.cc)
|
|
|
|
target_link_libraries(query_classifier maxscale-common)
|
|
set_target_properties(query_classifier PROPERTIES VERSION "1.0.0")
|
|
set_target_properties(query_classifier PROPERTIES LINK_FLAGS -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/query_classifier.map)
|
|
set_target_properties(query_classifier PROPERTIES LINK_FLAGS -Wl,-z,defs)
|
|
install(TARGETS query_classifier COMPONENT lib DESTINATION ${MAXSCALE_LIBDIR})
|
|
|
|
add_subdirectory(qc_mysqlembedded)
|
|
|
|
if(BUILD_TESTS)
|
|
add_subdirectory(test)
|
|
endif()
|