2013-08-07 10:07:13 +08:00
|
|
|
cmake_minimum_required(VERSION 2.6.0)
|
|
|
|
cmake_policy(SET CMP0011 NEW)
|
|
|
|
|
|
|
|
include_directories(${CHECK_INCLUDE_DIRS})
|
|
|
|
|
2013-08-08 05:16:02 +08:00
|
|
|
find_package(Check REQUIRED)
|
2013-08-07 10:07:13 +08:00
|
|
|
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/messenger_test.cmake)
|
2013-08-11 00:41:32 +08:00
|
|
|
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/crypto_test.cmake)
|
2013-08-07 10:07:13 +08:00
|
|
|
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/friends_test.cmake)
|
2013-08-08 19:03:20 +08:00
|
|
|
|
|
|
|
include( CTest )
|
|
|
|
enable_testing()
|
|
|
|
|
|
|
|
add_test(messenger messenger_test)
|
2013-08-11 00:41:32 +08:00
|
|
|
add_test(crypto crypto_test)
|
2013-08-08 19:03:20 +08:00
|
|
|
# TODO enable once test is fixed
|
|
|
|
#add_test(friends friends_test)
|
|
|
|
|
|
|
|
add_custom_target(
|
|
|
|
test COMMAND ${CMAKE_CTEST_COMMAND} -V
|
2013-08-11 00:41:32 +08:00
|
|
|
DEPENDS messenger_test crypto_test
|
2013-08-08 19:03:20 +08:00
|
|
|
)
|