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-10-17 13:44:47 +08:00
|
|
|
set(FDBCONVERT_SRCS
|
|
|
|
FileConverter.actor.cpp
|
|
|
|
FileConverter.h)
|
|
|
|
add_flow_target(EXECUTABLE NAME fdbconvert SRCS ${FDBCONVERT_SRCS})
|
|
|
|
target_link_libraries(fdbconvert PRIVATE fdbclient)
|
|
|
|
|
2019-11-26 13:00:13 +08:00
|
|
|
set(FDBDECODE_SRCS
|
|
|
|
FileDecoder.actor.cpp
|
|
|
|
FileConverter.h)
|
|
|
|
add_flow_target(EXECUTABLE NAME fdbdecode SRCS ${FDBDECODE_SRCS})
|
|
|
|
target_link_libraries(fdbdecode PRIVATE fdbclient)
|
|
|
|
|
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-12-12 05:59:03 +08:00
|
|
|
symlink_files(
|
2019-12-11 03:35:18 +08:00
|
|
|
LOCATION packages/bin
|
|
|
|
SOURCE fdbbackup
|
2020-04-23 22:55:44 +08:00
|
|
|
TARGETS fdbdr dr_agent backup_agent fdbrestore fastrestore_agent)
|
2019-12-12 05:59:03 +08:00
|
|
|
symlink_files(
|
2019-12-11 03:35:18 +08:00
|
|
|
LOCATION bin
|
|
|
|
SOURCE fdbbackup
|
2020-04-23 22:55:44 +08:00
|
|
|
TARGETS fdbdr dr_agent backup_agent fdbrestore fastrestore_agent)
|
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()
|