mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Convert DITLs to JSON
This commit is contained in:
46
rapidjson/example/CMakeLists.txt
Normal file
46
rapidjson/example/CMakeLists.txt
Normal file
@@ -0,0 +1,46 @@
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
if(POLICY CMP0054)
|
||||
cmake_policy(SET CMP0054 NEW)
|
||||
endif()
|
||||
|
||||
set(EXAMPLES
|
||||
capitalize
|
||||
condense
|
||||
filterkey
|
||||
filterkeydom
|
||||
jsonx
|
||||
lookaheadparser
|
||||
messagereader
|
||||
parsebyparts
|
||||
pretty
|
||||
prettyauto
|
||||
schemavalidator
|
||||
serialize
|
||||
simpledom
|
||||
simplereader
|
||||
simplepullreader
|
||||
simplewriter
|
||||
sortkeys
|
||||
tutorial)
|
||||
|
||||
include_directories("../include/")
|
||||
|
||||
add_definitions(-D__STDC_FORMAT_MACROS)
|
||||
set_property(DIRECTORY PROPERTY COMPILE_OPTIONS ${EXTRA_CXX_FLAGS})
|
||||
|
||||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
|
||||
endif()
|
||||
|
||||
add_executable(archivertest archiver/archiver.cpp archiver/archivertest.cpp)
|
||||
|
||||
foreach (example ${EXAMPLES})
|
||||
add_executable(${example} ${example}/${example}.cpp)
|
||||
endforeach()
|
||||
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_link_libraries(parsebyparts pthread)
|
||||
endif()
|
||||
|
||||
add_custom_target(examples ALL DEPENDS ${EXAMPLES})
|
Reference in New Issue
Block a user