
* 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`)
12 lines
314 B
CMake
12 lines
314 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_test(NAME perftest
|
|
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/perftest
|
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
|