MaxScale/client/CMakeLists.txt
2015-10-19 09:01:58 +03:00

15 lines
411 B
CMake

add_executable(maxadmin maxadmin.c)
find_library(HIST edit)
if(HIST)
message(STATUS "Building MaxAdmin with editline: ${HIST}")
add_definitions(-DHISTORY)
target_link_libraries(maxadmin ${HIST})
else()
message(STATUS "Could not find editline library. MaxAdmin will be built without it.")
endif()
install(TARGETS maxadmin DESTINATION ${MAXSCALE_BINDIR})
if(BUILD_TESTS)
add_subdirectory(test)
endif()