Fix the CMake build.

This change was originally authored by @mpilman as part of #1005, but is
something that can instead be merged quickly and easily.
This commit is contained in:
Alex Miller 2019-01-10 14:31:11 -08:00
parent 113e894efc
commit 217fb4e6cb
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,9 @@
set(FDBMONITOR_SRCS ConvertUTF.h SimpleIni.h fdbmonitor.cpp)
add_executable(fdbmonitor ${FDBMONITOR_SRCS})
# FIXME: This include directory is an ugly hack. We probably want to fix this
# as soon as we get rid of the old build system
target_include_directories(fdbmonitor PRIVATE ${CMAKE_BINARY_DIR}/fdbclient)
target_link_libraries(fdbmonitor flow)
install(TARGETS fdbmonitor DESTINATION "${FDB_LIB_DIR}/foundationdb" COMPONENT server)