File: CMakeLists.txt

package info (click to toggle)
simdjson 4.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 31,400 kB
  • sloc: cpp: 195,760; ansic: 20,954; sh: 1,126; python: 885; makefile: 47; ruby: 25; javascript: 13
file content (13 lines) | stat: -rw-r--r-- 580 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
if(TARGET cxxopts) # we only build the tools if cxxopts is available
  message(STATUS "We have cxxopts as a dependency and we are building the tools (e.g., json2json).")
  foreach(tool IN ITEMS json2json jsonstats jsonpointer minify)
    add_executable("${tool}" "${tool}.cpp")
    simdjson_apply_props("${tool}")
    target_link_libraries(
        "${tool}" PRIVATE
        simdjson simdjson-internal-flags simdjson-windows-headers cxxopts
    )
  endforeach()
else()
  message(STATUS "We are missing cxxopts as a dependency so the tools (e.g., json2json) are omitted.")
endif()