mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
Add quickstart to cmake
This commit is contained in:
+1
-1
@@ -63,7 +63,7 @@ target_compile_definitions(test-data INTERFACE SIMDJSON_BENCHMARK_DATA_DIR="${CM
|
||||
add_subdirectory(dependencies)
|
||||
add_subdirectory(tools)
|
||||
add_subdirectory(tests)
|
||||
add_subdirectory(scripts)
|
||||
add_subdirectory(examples)
|
||||
add_subdirectory(benchmark)
|
||||
|
||||
# for fuzzing, read the comments in the fuzz/CMakeLists.txt file
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
add_subdirectory(quickstart)
|
||||
@@ -0,0 +1,2 @@
|
||||
add_executable(quickstart quickstart.cpp)
|
||||
target_link_libraries(quickstart PRIVATE simdjson)
|
||||
+10
-8
@@ -35,13 +35,15 @@ set_property(
|
||||
#
|
||||
# json2json test
|
||||
#
|
||||
add_test(
|
||||
NAME testjson2json
|
||||
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testjson2json.sh
|
||||
WORKING_DIRECTORY $<TARGET_FILE_DIR:minify>
|
||||
)
|
||||
set_property(TEST testjson2json APPEND PROPERTY DEPENDS minify json2json)
|
||||
set_property(TEST testjson2json APPEND PROPERTY LABELS slowtests)
|
||||
if (NOT MSVC) # Can't run .sh on windows
|
||||
add_test(
|
||||
NAME testjson2json
|
||||
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testjson2json.sh
|
||||
WORKING_DIRECTORY $<TARGET_FILE_DIR:minify>
|
||||
)
|
||||
set_property(TEST testjson2json APPEND PROPERTY DEPENDS minify json2json)
|
||||
set_property(TEST testjson2json APPEND PROPERTY LABELS slowtests)
|
||||
endif()
|
||||
|
||||
#
|
||||
# Competition parse test
|
||||
@@ -50,7 +52,7 @@ if (SIMDJSON_COMPETITION)
|
||||
add_executable(allparserscheckfile allparserscheckfile.cpp)
|
||||
target_link_libraries(allparserscheckfile competition-all)
|
||||
|
||||
add_test(issue150 issue150.sh)
|
||||
add_test(issue150 ${CMAKE_CURRENT_SOURCE_DIR}/issue150.sh)
|
||||
set_property(TEST issue150 APPEND PROPERTY DEPENDS allparserscheckfile)
|
||||
set_property(TEST issue150 APPEND PROPERTY LABELS slowtests)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user