2018-05-04 07:06:30 +08:00
|
|
|
set(FDBBACKUP_SRCS
|
|
|
|
backup.actor.cpp)
|
|
|
|
|
2019-02-09 08:51:13 +08:00
|
|
|
add_flow_target(EXECUTABLE NAME fdbbackup SRCS ${FDBBACKUP_SRCS})
|
2018-05-04 07:06:30 +08:00
|
|
|
target_link_libraries(fdbbackup PRIVATE fdbclient)
|
2018-05-06 00:43:50 +08:00
|
|
|
|
2019-02-18 09:54:54 +08:00
|
|
|
if(NOT OPEN_FOR_IDE)
|
2019-02-28 12:17:11 +08:00
|
|
|
fdb_install(TARGETS fdbbackup DESTINATION bin COMPONENT clients)
|
2019-02-18 09:54:54 +08:00
|
|
|
install_symlink(
|
2019-02-28 12:17:11 +08:00
|
|
|
COMPONENT clients
|
|
|
|
FILE_DIR bin
|
2019-03-03 06:05:05 +08:00
|
|
|
LINK_DIR fdbmonitor
|
2019-02-28 12:17:11 +08:00
|
|
|
FILE_NAME fdbbackup
|
2019-03-03 06:05:05 +08:00
|
|
|
LINK_NAME backup_agent/backup_agent)
|
2019-02-18 09:54:54 +08:00
|
|
|
install_symlink(
|
2019-02-28 12:17:11 +08:00
|
|
|
COMPONENT clients
|
|
|
|
FILE_DIR bin
|
|
|
|
LINK_DIR bin
|
|
|
|
FILE_NAME fdbbackup
|
|
|
|
LINK_NAME fdbrestore)
|
2019-02-18 09:54:54 +08:00
|
|
|
install_symlink(
|
2019-02-28 12:17:11 +08:00
|
|
|
COMPONENT clients
|
|
|
|
FILE_DIR bin
|
|
|
|
LINK_DIR bin
|
|
|
|
FILE_NAME fdbbackup
|
|
|
|
LINK_NAME dr_agent)
|
2019-02-18 09:54:54 +08:00
|
|
|
install_symlink(
|
2019-02-28 12:17:11 +08:00
|
|
|
COMPONENT clients
|
|
|
|
FILE_DIR bin
|
|
|
|
LINK_DIR bin
|
|
|
|
FILE_NAME fdbbackup
|
|
|
|
LINK_NAME fdbdr)
|
2019-02-18 09:54:54 +08:00
|
|
|
endif()
|
2019-04-03 08:34:29 +08:00
|
|
|
|
|
|
|
if (GPERFTOOLS_FOUND)
|
|
|
|
add_compile_definitions(USE_GPERFTOOLS)
|
|
|
|
target_link_libraries(fdbbackup PRIVATE gperftools)
|
|
|
|
endif()
|