CMakeLists.txt 591 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
project("AMDiS_test")
cmake_minimum_required(VERSION 2.6)

ENABLE_TESTING()
#try_compile(Check_compile ${CMAKE_BINARY_DIR}/../demo ${CMAKE_BINARY_DIR}/../demo "amdis_demo" OUTPUT_VARIABLE out_var)

SET(AMDIS_DIR ../../)
SET(BASIS_LIBS amdis boost_system)

link_directories(${AMDIS_DIR}/lib)
include_directories(${AMDIS_DIR}/src ${AMDIS_DIR}/lib/mtl4)

add_executable(ellipt_test src/ellipt_test.cc)
target_link_libraries(ellipt_test ${BASIS_LIBS})

add_test(ellipt ellipt_test init/ellipt.dat.2d)
set_tests_properties(ellipt PROPERTIES FAIL_REGULAR_EXPRESSION "'error code = 2'" TIMEOUT 30)