From e903e29fd315efc09f6456998e68399c0156ee13 Mon Sep 17 00:00:00 2001 From: Martchus Date: Thu, 8 Feb 2018 22:56:16 +0100 Subject: [PATCH] Allow enabling JSON export of tageditor --- tageditor/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tageditor/CMakeLists.txt b/tageditor/CMakeLists.txt index a21a80c..8182597 100644 --- a/tageditor/CMakeLists.txt +++ b/tageditor/CMakeLists.txt @@ -16,6 +16,13 @@ if(WIDGETS_GUI OR QUICK_GUI) link_directories(${QT_UTILITIES_BINARY_DIR}) endif() +option(ENABLE_JSON_EXPORT "enable JSON export" OFF) +if(ENABLE_JSON_EXPORT) + add_subdirectory(${SUBDIRS_PREFIX}/reflective-rapidjson reflective-rapidjson) + list(APPEND CMAKE_MODULE_PATH ${REFLECTIVE_RAPIDJSON_SOURCE_DIR}/cmake/modules) + link_directories(${REFLECTIVE_RAPIDJSON_BINARY_DIR}) +endif() + add_subdirectory(${SUBDIRS_PREFIX}/tagparser tagparser) link_directories(${TAG_PARSER_BINARY_DIR})