Files
MaxScale/client/CMakeLists.txt
Markus Mäkelä 56d4e5a645 Fix target dependencies
Added missing dependencies to targets that were missing it.
2018-08-06 21:20:29 +03:00

13 lines
375 B
CMake

add_executable(maxadmin maxadmin.c)
add_dependencies(maxadmin maxutils)
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)