2018-05-04 07:06:30 +08:00
|
|
|
set(FDBBACKUP_SRCS
|
2021-04-06 03:21:32 +08:00
|
|
|
BackupTLSConfig.h
|
|
|
|
BackupTLSConfig.cpp
|
|
|
|
backup.actor.cpp)
|
2018-05-04 07:06:30 +08:00
|
|
|
|
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
|
2021-04-06 02:47:23 +08:00
|
|
|
BackupTLSConfig.h
|
|
|
|
BackupTLSConfig.cpp
|
2019-11-26 13:00:13 +08:00
|
|
|
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)
|
2020-05-22 04:39:55 +08:00
|
|
|
if(GENERATE_DEBUG_PACKAGES)
|
|
|
|
fdb_install(TARGETS fdbbackup DESTINATION bin COMPONENT clients)
|
2021-05-13 00:41:26 +08:00
|
|
|
fdb_install(PROGRAMS $<TARGET_FILE:fdbbackup> DESTINATION backupagent COMPONENT clients RENAME backup_agent/backup_agent)
|
2021-02-23 12:50:39 +08:00
|
|
|
fdb_install(PROGRAMS $<TARGET_FILE:fdbbackup> DESTINATION bin COMPONENT clients RENAME fdbrestore)
|
|
|
|
fdb_install(PROGRAMS $<TARGET_FILE:fdbbackup> DESTINATION bin COMPONENT clients RENAME dr_agent)
|
|
|
|
fdb_install(PROGRAMS $<TARGET_FILE:fdbbackup> DESTINATION bin COMPONENT clients RENAME fdbdr)
|
2020-05-22 04:39:55 +08:00
|
|
|
else()
|
2020-05-28 07:40:07 +08:00
|
|
|
add_custom_target(prepare_fdbbackup_install ALL DEPENDS strip_only_fdbbackup)
|
2020-05-29 01:33:09 +08:00
|
|
|
fdb_install(PROGRAMS ${CMAKE_BINARY_DIR}/packages/bin/fdbbackup DESTINATION bin COMPONENT clients)
|
2021-05-13 00:41:26 +08:00
|
|
|
fdb_install(PROGRAMS ${CMAKE_BINARY_DIR}/packages/bin/fdbbackup DESTINATION backupagent COMPONENT clients RENAME backup_agent/backup_agent)
|
2021-02-23 06:56:30 +08:00
|
|
|
fdb_install(PROGRAMS ${CMAKE_BINARY_DIR}/packages/bin/fdbbackup DESTINATION bin COMPONENT clients RENAME fdbrestore)
|
|
|
|
fdb_install(PROGRAMS ${CMAKE_BINARY_DIR}/packages/bin/fdbbackup DESTINATION bin COMPONENT clients RENAME dr_agent)
|
|
|
|
fdb_install(PROGRAMS ${CMAKE_BINARY_DIR}/packages/bin/fdbbackup DESTINATION bin COMPONENT clients RENAME fdbdr)
|
2020-05-22 04:39:55 +08:00
|
|
|
endif()
|
2019-12-12 05:59:03 +08:00
|
|
|
symlink_files(
|
2019-12-11 03:35:18 +08:00
|
|
|
LOCATION packages/bin
|
|
|
|
SOURCE fdbbackup
|
2020-07-02 23:16:39 +08:00
|
|
|
TARGETS fdbdr dr_agent backup_agent fdbrestore fastrestore_tool)
|
2019-12-12 05:59:03 +08:00
|
|
|
symlink_files(
|
2019-12-11 03:35:18 +08:00
|
|
|
LOCATION bin
|
|
|
|
SOURCE fdbbackup
|
2020-07-02 23:16:39 +08:00
|
|
|
TARGETS fdbdr dr_agent backup_agent fdbrestore fastrestore_tool)
|
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()
|