MaxScale/client/CMakeLists.txt
Markus Mäkelä f09afa2967
Combine regression test suite and main CMake projects
Combining the projects makes it easier to use common components. This
fixes the build failure of maxutils due to missing jansson definitions.
2018-08-17 14:29:28 +03:00

13 lines
374 B
CMake

add_executable(maxadmin maxadmin.c)
add_dependencies(maxadmin maxbase)
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_executable(maxadmin core)