summaryrefslogtreecommitdiff
path: root/vendor/rapidjson.cmake
blob: 40b5c3189520670040aef7574240228a23f3e419 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
add_library(rapidjson INTERFACE)

target_include_directories(rapidjson SYSTEM INTERFACE
    ${CMAKE_SOURCE_DIR}/vendor/rapidjson/include
)

target_compile_definitions(rapidjson INTERFACE
    RAPIDJSON_HAS_STDSTRING=1
)

if(WIN32)
    target_compile_definitions(rapidjson INTERFACE
        RAPIDJSON_HAS_CXX11_RVALUE_REFS
    )
endif()