
Conflicts: CMakeLists.txt Documentation/Tutorials/Administration-Tutorial.md log_manager/CMakeLists.txt server/core/CMakeLists.txt server/core/gateway.c server/core/maxkeys.c server/core/maxpasswd.c server/modules/filter/test/CMakeLists.txt server/modules/routing/CMakeLists.txt
37 lines
1.8 KiB
CMake
37 lines
1.8 KiB
CMake
if(BUILD_TESTS OR BUILD_TOOLS)
|
|
add_library(fullcore STATIC adminusers.c atomic.c config.c buffer.c dbusers.c dcb.c filter.c gwbitmask.c gw_utils.c hashtable.c hint.c housekeeper.c load_utils.c memlog.c modutil.c monitor.c poll.c resultset.c secrets.c server.c service.c session.c spinlock.c thread.c users.c utils.c gwdirs.c externcmd.c)
|
|
if(WITH_JEMALLOC)
|
|
target_link_libraries(fullcore ${JEMALLOC_LIBRARIES})
|
|
elseif(WITH_TCMALLOC)
|
|
target_link_libraries(fullcore ${TCMALLOC_LIBRARIES})
|
|
endif()
|
|
target_link_libraries(fullcore ${CURL_LIBRARIES} utils log_manager pthread ${EMBEDDED_LIB} ${PCRE_LINK_FLAGS} ssl aio rt crypt dl crypto inih z m stdc++)
|
|
endif()
|
|
|
|
add_executable(maxscale atomic.c buffer.c spinlock.c gateway.c
|
|
gw_utils.c utils.c dcb.c load_utils.c session.c service.c server.c
|
|
poll.c config.c users.c hashtable.c dbusers.c thread.c gwbitmask.c
|
|
monitor.c adminusers.c secrets.c filter.c modutil.c hint.c
|
|
housekeeper.c memlog.c resultset.c gwdirs.c externcmd.c)
|
|
|
|
if(WITH_JEMALLOC)
|
|
target_link_libraries(maxscale ${JEMALLOC_LIBRARIES})
|
|
elseif(WITH_TCMALLOC)
|
|
target_link_libraries(maxscale ${TCMALLOC_LIBRARIES})
|
|
endif()
|
|
|
|
target_link_libraries(maxscale ${EMBEDDED_LIB} ${PCRE_LINK_FLAGS} ${CURL_LIBRARIES} log_manager utils ssl aio pthread crypt dl crypto inih z rt m stdc++)
|
|
install(TARGETS maxscale DESTINATION ${MAXSCALE_BINDIR})
|
|
|
|
add_executable(maxkeys maxkeys.c secrets.c utils.c gwdirs.c)
|
|
target_link_libraries(maxkeys log_manager utils pthread crypt crypto)
|
|
install(TARGETS maxkeys DESTINATION ${MAXSCALE_BINDIR})
|
|
|
|
add_executable(maxpasswd maxpasswd.c secrets.c utils.c gwdirs.c)
|
|
target_link_libraries(maxpasswd log_manager utils pthread crypt crypto)
|
|
install(TARGETS maxpasswd DESTINATION ${MAXSCALE_BINDIR})
|
|
|
|
if(BUILD_TESTS)
|
|
add_subdirectory(test)
|
|
endif()
|