CMakeLists.txt 1.88 KB
Newer Older
1 2 3 4 5 6 7 8
add_library(MoReFEMTestOperatorMass_lib ${LIBRARY_TYPE} "")

target_sources(MoReFEMTestOperatorMass_lib
    PRIVATE
                ${CMAKE_CURRENT_LIST_DIR}/ExpectedResults.hpp
                ${CMAKE_CURRENT_LIST_DIR}/ExpectedResults_P1P1.cpp
                ${CMAKE_CURRENT_LIST_DIR}/ExpectedResults_P2P1.cpp
                ${CMAKE_CURRENT_LIST_DIR}/ExpectedResults_P2P2.cpp
9
                ${CMAKE_CURRENT_LIST_DIR}/InputData.hpp
10 11 12 13 14 15 16 17 18
                ${CMAKE_CURRENT_LIST_DIR}/Model.cpp
                ${CMAKE_CURRENT_LIST_DIR}/Model.hpp
                ${CMAKE_CURRENT_LIST_DIR}/Model.hxx
                ${CMAKE_CURRENT_LIST_DIR}/SameUnknown.cpp
                ${CMAKE_CURRENT_LIST_DIR}/UnknownP1TestP1.cpp
                ${CMAKE_CURRENT_LIST_DIR}/UnknownP2TestP1.cpp
)

target_link_libraries(MoReFEMTestOperatorMass_lib
19
                      ${MOREFEM_TEST_TOOLS})
20 21 22 23 24 25 26 27 28


add_executable(MoReFEMTestOperatorMass3D ${CMAKE_CURRENT_LIST_DIR}/main_3D.cpp)
target_link_libraries(MoReFEMTestOperatorMass3D MoReFEMTestOperatorMass_lib)

add_executable(MoReFEMTestOperatorMass2D ${CMAKE_CURRENT_LIST_DIR}/main_2D.cpp)
target_link_libraries(MoReFEMTestOperatorMass2D MoReFEMTestOperatorMass_lib)

add_executable(MoReFEMTestOperatorMass1D ${CMAKE_CURRENT_LIST_DIR}/main_1D.cpp)
GILLES Sebastien's avatar
GILLES Sebastien committed
29
target_link_libraries(MoReFEMTestOperatorMass1D  MoReFEMTestOperatorMass_lib)
30

31 32
add_test(OperatorMass3D
         MoReFEMTestOperatorMass3D
33 34 35
         --
         ${MOREFEM_ROOT}
         ${MOREFEM_TEST_OUTPUT_DIR})
36

37
set_tests_properties(OperatorMass3D PROPERTIES TIMEOUT 5)
38

39 40
add_test(OperatorMass2D
         MoReFEMTestOperatorMass2D
41 42 43
         --
         ${MOREFEM_ROOT}
         ${MOREFEM_TEST_OUTPUT_DIR})
44

45
set_tests_properties(OperatorMass2D PROPERTIES TIMEOUT 5)
46

47 48
add_test(OperatorMass1D
         MoReFEMTestOperatorMass1D
49 50 51
         --
         ${MOREFEM_ROOT}
         ${MOREFEM_TEST_OUTPUT_DIR})
52

53
set_tests_properties(OperatorMass1D PROPERTIES TIMEOUT 5)