mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-03-10 03:29:59 +01:00
17 lines
407 B
CMake
17 lines
407 B
CMake
set(PERFTEST_SOURCES
|
|
misctest.cpp
|
|
perftest.cpp
|
|
platformtest.cpp
|
|
rapidjsontest.cpp)
|
|
|
|
add_executable(perftest ${PERFTEST_SOURCES})
|
|
target_link_libraries(perftest ${TEST_LIBRARIES})
|
|
|
|
add_dependencies(tests perftest)
|
|
|
|
IF(NOT (CMAKE_BUILD_TYPE STREQUAL "Debug"))
|
|
add_test(NAME perftest
|
|
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/perftest
|
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
|
|
ENDIF()
|