mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-03-10 12:21:16 +01:00

* Support for both in-source and out-of-source builds * Set library version to 0.12 to map Debian package * Add separate options to build tests, examples and documentation * Add pkgconfig lookup support (if installed with `make install`) * Add CMake lookup support (if isntalled with `make install`) * Add Google Test Source lookup * Add CTest support for running tests (use `make test` or `ctest -V`)
18 lines
441 B
CMake
18 lines
441 B
CMake
set(UNITTEST_SOURCES
|
|
documenttest.cpp
|
|
encodedstreamtest.cpp
|
|
encodingstest.cpp
|
|
filestreamtest.cpp
|
|
jsoncheckertest.cpp
|
|
readertest.cpp
|
|
unittest.cpp
|
|
unittest.h
|
|
valuetest.cpp
|
|
writertest.cpp)
|
|
|
|
add_executable(unittest ${UNITTEST_SOURCES})
|
|
target_link_libraries(unittest ${TEST_LIBRARIES})
|
|
add_test(NAME unittest
|
|
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/unittest
|
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
|