2022-02-24 00:00:53 +08:00
|
|
|
add_executable(save-generator save-generator.c)
|
|
|
|
target_link_modules(save-generator toxcore misc_tools)
|
|
|
|
|
|
|
|
add_executable(strkey strkey.c)
|
|
|
|
target_link_modules(strkey toxcore ${LIBSODIUM_LIBRARIES})
|
|
|
|
|
|
|
|
add_executable(create_bootstrap_keys create_bootstrap_keys.c)
|
|
|
|
target_link_modules(create_bootstrap_keys ${LIBSODIUM_LIBRARIES})
|
|
|
|
|
|
|
|
add_executable(create_minimal_savedata create_minimal_savedata.c)
|
|
|
|
target_link_modules(create_minimal_savedata ${LIBSODIUM_LIBRARIES})
|
|
|
|
|
|
|
|
add_executable(create_savedata create_savedata.c)
|
|
|
|
target_link_modules(create_savedata toxcore ${LIBSODIUM_LIBRARIES})
|
|
|
|
|
|
|
|
add_executable(sign sign.c)
|
|
|
|
target_link_modules(sign ${LIBSODIUM_LIBRARIES} misc_tools)
|
|
|
|
|
|
|
|
add_executable(cracker_simple cracker_simple.c)
|
|
|
|
target_link_modules(cracker_simple ${LIBSODIUM_LIBRARIES} misc_tools)
|
|
|
|
|
|
|
|
# MSVC doesn't support OpenMP
|
|
|
|
if(NOT MSVC)
|
|
|
|
find_package(OpenMP)
|
|
|
|
if(OpenMP_C_FOUND)
|
|
|
|
add_executable(cracker cracker.c)
|
|
|
|
target_link_modules(cracker ${LIBSODIUM_LIBRARIES})
|
2023-12-26 08:04:07 +08:00
|
|
|
target_link_libraries(cracker PRIVATE OpenMP::OpenMP_C)
|
2022-02-24 00:00:53 +08:00
|
|
|
endif()
|
|
|
|
endif()
|