fixed adding file problem
[c11concurrency-benchmarks.git] / gdax-orderbook-hpp / demo / dependencies / rapidjson-1.1.0 / test / perftest / CMakeLists.txt
1 set(PERFTEST_SOURCES
2     misctest.cpp
3     perftest.cpp
4     platformtest.cpp
5     rapidjsontest.cpp
6     schematest.cpp)
7
8 add_executable(perftest ${PERFTEST_SOURCES})
9 target_link_libraries(perftest ${TEST_LIBRARIES})
10
11 add_dependencies(tests perftest)
12
13 find_program(CCACHE_FOUND ccache)
14 if(CCACHE_FOUND)
15     set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
16     set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
17     if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
18         set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Qunused-arguments -fcolor-diagnostics")
19     endif()
20 endif(CCACHE_FOUND)
21
22 IF(NOT (CMAKE_BUILD_TYPE STREQUAL "Debug"))
23 add_test(NAME perftest
24     COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/perftest
25     WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
26 ENDIF()