CMakeLists.txt 1.41 KB
Newer Older
Kirill Terekhov's avatar
Kirill Terekhov committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
project(autodiff_test000)
set(SOURCE main.cpp)

add_executable(autodiff_test000 ${SOURCE})
target_link_libraries(autodiff_test000 inmost)

if(USE_MPI)
  message("linking autodiff_test000 with MPI")
  target_link_libraries(autodiff_test000 ${MPI_LIBRARIES}) 
  if(MPI_LINK_FLAGS)
    set_target_properties(autodiff_test000 PROPERTIES LINK_FLAGS "${MPI_LINK_FLAGS}")
  endif() 
endif(USE_MPI)



add_test(NAME autodiff_test000_hessian_sin                 COMMAND $<TARGET_FILE:autodiff_test000> 0)
Kirill Terekhov's avatar
Kirill Terekhov committed
18
19
add_test(NAME autodiff_test000_hessian_sin_of_poly           COMMAND $<TARGET_FILE:autodiff_test000> 1)
add_test(NAME autodiff_test000_hessian_cos_of_poly           COMMAND $<TARGET_FILE:autodiff_test000> 2)
Kirill Terekhov's avatar
Kirill Terekhov committed
20
21
22
add_test(NAME autodiff_test000_hessian_sin_mult           COMMAND $<TARGET_FILE:autodiff_test000> 3)
add_test(NAME autodiff_test000_hessian_cos_mult           COMMAND $<TARGET_FILE:autodiff_test000> 4)
add_test(NAME autodiff_test000_hessian_sqrt_mixed           COMMAND $<TARGET_FILE:autodiff_test000> 5)
23
24
add_test(NAME autodiff_test000_hessian_poly           COMMAND $<TARGET_FILE:autodiff_test000> 6)
add_test(NAME autodiff_test000_hessian_sin_poly           COMMAND $<TARGET_FILE:autodiff_test000> 7)
Kirill Terekhov's avatar
Kirill Terekhov committed
25
26
add_test(NAME autodiff_test000_hessian_const_minus_sin_of_poly           COMMAND $<TARGET_FILE:autodiff_test000> 8)
add_test(NAME autodiff_test000_hessian_const_minus_cos_of_poly           COMMAND $<TARGET_FILE:autodiff_test000> 9)