summaryrefslogtreecommitdiff
path: root/auto_tests/CMakeLists.txt
blob: c0b6aee4e9b54161d025bf084a1c24ac7aa01ae8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
cmake_minimum_required(VERSION 2.6.0)
cmake_policy(SET CMP0011 NEW)

include_directories(${CHECK_INCLUDE_DIRS})

find_package(Check REQUIRED)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/messenger_test.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/crypto_test.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/friends_test.cmake)

include( CTest )
enable_testing()

add_test(messenger messenger_test)
add_test(crypto crypto_test)
# TODO enable once test is fixed
#add_test(friends friends_test)

add_custom_target(
    test COMMAND ${CMAKE_CTEST_COMMAND} -V 
    DEPENDS messenger_test crypto_test
)