build: add simdjson
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
[submodule "vendor/nerutils"]
|
[submodule "vendor/nerutils"]
|
||||||
path = vendor/nerutils
|
path = vendor/nerutils
|
||||||
url = https://git.neru.rip/neru/nerutils
|
url = https://git.neru.rip/neru/nerutils
|
||||||
|
[submodule "vendor/simdjson"]
|
||||||
|
path = vendor/simdjson
|
||||||
|
url = https://github.com/simdjson/simdjson
|
||||||
|
|||||||
+14
-2
@@ -53,13 +53,25 @@ else()
|
|||||||
target_compile_options(dbd-unlocker-warnings INTERFACE -Wall -Wextra -Werror)
|
target_compile_options(dbd-unlocker-warnings INTERFACE -Wall -Wextra -Werror)
|
||||||
endif()
|
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
|
# unlocker
|
||||||
# ------------------------------
|
# ------------------------------
|
||||||
file(GLOB_RECURSE UNLOCKER_SOURCES CONFIGURE_DEPENDS "src/unlocker/*.cpp" "src/unlocker/*.h")
|
file(GLOB_RECURSE UNLOCKER_SOURCES CONFIGURE_DEPENDS "src/unlocker/*.cpp" "src/unlocker/*.h")
|
||||||
add_executable(dbd-unlocker ${UNLOCKER_SOURCES})
|
add_executable(dbd-unlocker ${UNLOCKER_SOURCES})
|
||||||
target_link_libraries(dbd-unlocker PRIVATE dbd-unlocker-warnings ${OPENSSL_LIBRARIES} nerutils wsock32 ws2_32 wininet)
|
target_link_libraries(dbd-unlocker PRIVATE dbd-unlocker-warnings OpenSSL::SSL OpenSSL::Crypto nerutils wsock32 ws2_32 wininet simdjson-wrapped)
|
||||||
target_include_directories(dbd-unlocker PRIVATE ${OPENSSL_INCLUDE__DIR})
|
|
||||||
|
|
||||||
set_property(TARGET dbd-unlocker PROPERTY USE_FOLDERS ON)
|
set_property(TARGET dbd-unlocker PROPERTY USE_FOLDERS ON)
|
||||||
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT dbd-unlocker)
|
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT dbd-unlocker)
|
||||||
|
|||||||
+1
Submodule vendor/simdjson added at 5395aacb8b
Reference in New Issue
Block a user