[3edb4c]: tests / simulator / CMakeLists.txt Maximize Restore History

Download this file

CMakeLists.txt    53 lines (45 with data), 1.6 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
include_directories(
${CMAKE_SOURCE_DIR}/src
${CMAKE_SOURCE_DIR}/src/lib
${KDEVPLATFORM_INCLUDE_DIR}
${CMAKE_CURRENT_BUILD_DIR}
)
kde4_add_unit_test( basictest
basictest.cpp
${CMAKE_SOURCE_DIR}/src/simulationmanager.cpp
${CMAKE_SOURCE_DIR}/src/interfaces/simulator/isimulationmanager.cpp
)
target_link_libraries( basictest
${QT_QTTEST_LIBRARY}
${KDEVPLATFORM_TESTS_LIBRARIES}
)
kde4_add_unit_test( addcomponents
addcomponents.cpp
${CMAKE_SOURCE_DIR}/src/interfaces/simulator/isimulationmanager.cpp
${CMAKE_SOURCE_DIR}/src/simulationmanager.cpp
)
target_link_libraries( addcomponents
ktlinterfaces
# ktlcircuit_lib
${QT_QTTEST_LIBRARY}
${KDEVPLATFORM_TESTS_LIBRARIES}
)
kde4_add_unit_test( directsimulatortest
directsimulatortest.cpp
${CMAKE_SOURCE_DIR}/src/interfaces/simulator/isimulator.cpp
${CMAKE_SOURCE_DIR}/src/simulationmanager.cpp
${CMAKE_SOURCE_DIR}/src/plugins/simulator/circuittransientsimulator.cpp
${CMAKE_SOURCE_DIR}/src/plugins/simulator/pingroup.cpp
${CMAKE_SOURCE_DIR}/src/plugins/simulator/elementset.cpp
${CMAKE_SOURCE_DIR}/src/plugins/basic_ec/elements/capacitance.cpp
${CMAKE_SOURCE_DIR}/src/plugins/basic_ec/elements/resistance.cpp
${CMAKE_SOURCE_DIR}/src/plugins/basic_ec/elements/voltagesource.cpp
)
target_link_libraries( directsimulatortest
ktlinterfaces
ktlmath
circuit
${QT_QTTEST_LIBRARY}
${KDEVPLATFORM_TESTS_LIBRARIES}
)
add_definitions( "-DPROJECTS_SOURCE_DIR=\\\"${CMAKE_SOURCE_DIR}/tests/data\\\"" )