build: add simdjson

This commit is contained in:
2026-03-20 07:15:13 -03:00
parent 4a7957c1b6
commit 20c38cc74a
3 changed files with 18 additions and 2 deletions
+14 -2
View File
@@ -53,13 +53,25 @@ else()
target_compile_options(dbd-unlocker-warnings INTERFACE -Wall -Wextra -Werror)
endif()
# ------------------------------
# simdjson without errors
# ------------------------------
add_library(simdjson-wrapped INTERFACE)
target_link_libraries(simdjson-wrapped INTERFACE simdjson)
if(CMAKE_GENERATOR MATCHES "Visual Studio")
target_compile_options(simdjson-wrapped INTERFACE /W0)
else()
target_compile_options(simdjson-wrapped INTERFACE -w)
endif()
# ------------------------------
# unlocker
# ------------------------------
file(GLOB_RECURSE UNLOCKER_SOURCES CONFIGURE_DEPENDS "src/unlocker/*.cpp" "src/unlocker/*.h")
add_executable(dbd-unlocker ${UNLOCKER_SOURCES})
target_link_libraries(dbd-unlocker PRIVATE dbd-unlocker-warnings ${OPENSSL_LIBRARIES} nerutils wsock32 ws2_32 wininet)
target_include_directories(dbd-unlocker PRIVATE ${OPENSSL_INCLUDE__DIR})
target_link_libraries(dbd-unlocker PRIVATE dbd-unlocker-warnings OpenSSL::SSL OpenSSL::Crypto nerutils wsock32 ws2_32 wininet simdjson-wrapped)
set_property(TARGET dbd-unlocker PROPERTY USE_FOLDERS ON)
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT dbd-unlocker)