[57b403]: src / lib / simulator / CMakeLists.txt  Maximize  Restore  History

Download this file

183 lines (165 with data), 9.3 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
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/src
${CMAKE_CURRENT_SOURCE_DIR}/src/languages
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/simulation
${CMAKE_CURRENT_SOURCE_DIR}/src/flowparts
${CMAKE_CURRENT_SOURCE_DIR}/src/gui
${CMAKE_CURRENT_SOURCE_DIR}/src/math/
${CMAKE_CURRENT_SOURCE_DIR}/src/micro/
${CMAKE_CURRENT_SOURCE_DIR}/src/physics
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
# ${QT_INCLUDES}
# ${GLIB2_INCLUDE_DIRS}
# ${QT_QTTEST_INCLUDE_DIR}
)
# we need Qt3 support in some classes...
# TODO make the code compile without
# this flag turned on
ADD_DEFINITIONS(-DQT3_SUPPORT)
add_definitions(-fexceptions)
set( simulator_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/src/ktlconfig.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/simulator.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/simulation/logic.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/simulation/element.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/simulation/elementset.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/math/quickvector.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/math/quickmatrix.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/math/matrix.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/simulation/circuit.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/pin.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/wire.cpp
# support for elements
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/simulation/nonlinear.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/simulation/reactive.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/simulation/elementsignal.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/elementmap.cpp
# elements
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/simulation/bjt.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/simulation/capacitance.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/simulation/cccs.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/simulation/ccvs.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/simulation/currentsignal.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/simulation/currentsource.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/simulation/diode.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/simulation/inductance.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/simulation/jfet.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/simulation/mosfet.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/simulation/opamp.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/simulation/resistance.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/simulation/vccs.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/simulation/vcvs.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/simulation/voltagepoint.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/simulation/voltagesignal.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/simulation/voltagesource.cpp
# gpsim stuff
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/gpsimprocessor.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/debugmanager.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/languages/sourceline.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/languages/asmparser.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/languages/language.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/languages/processchain.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/languages/externallanguage.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/messageinfo.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/outputmethodinfo.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/micro/microlibrary.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/micro/micropackage.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/micro/microinfo.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/micro/asminfo.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/micro/picinfo.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/micro/picinfo12bit.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/micro/picinfo14bit.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/micro/picinfo16bit.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/languages/sdcc.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/languages/picprogrammer.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/languages/gplib.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/languages/gplink.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/languages/gpasm.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/languages/microbe.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/languages/gpdasm.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/languages/qprocesswitharguments.cpp
# ${CMAKE_CURRENT_SOURCE_DIR}/src/languages/flowcode.cpp
# support class for components
${CMAKE_CURRENT_SOURCE_DIR}/src/variant.cpp
# base class for components
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/component.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/node.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/ecnode.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/connector.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/electronicconnector.cpp
# components:
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/addac.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/bidirled.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/binarycounter.cpp
#${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/bussplitter.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/capacitor.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/demultiplexer.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/dependentsource.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/discretelogic.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/ec555.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/ecbcdto7segment.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/ecbjt.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/ecclockinput.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/eccurrentsignal.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/eccurrentsource.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/ecdiode.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/ecfixedvoltage.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/ecground.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/ecjfet.cpp
#${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/eckeypad.cpp # interactive..
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/ecmosfet.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/ecopamp.cpp
#${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/ecpotentiometer.cpp # interactive
#${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/ecsevensegment.cpp # interactive
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/ecsignallamp.cpp
#${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/ecsubcircuit.cpp # complicated
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/ecvoltagesignal.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/ecvoltagesource.cpp
#${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/externalconnection.cpp # complicated
#${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/flipflop.cpp
#${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/fulladder.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/inductor.cpp
#${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/ledbargraphdisplay.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/led.cpp
#${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/magnitudecomparator.cpp
#${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/matrixdisplay.cpp
#${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/matrixdisplaydriver.cpp
#${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/meter.cpp
#${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/multiinputgate.cpp
#${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/multiplexer.cpp
#${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/parallelportcomponent.cpp
# ${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/piccomponent.cpp # needs porting
# ${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/piccomponentpin.cpp # needs porting
#${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/probe.cpp
#${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/pushswitch.cpp
#${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/ram.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/resistor.cpp
#${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/resistordip.cpp
#${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/rotoswitch.cpp
#${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/serialportcomponent.cpp
#${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/toggleswitch.cpp
#${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/variablecapacitor.cpp
#${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/variableresistor.cpp
#${CMAKE_CURRENT_SOURCE_DIR}/src/electronics/components/voltageregulator.cpp
)
if(KDEVPLATFORM_ENABLED)
kde4_add_library( ktlsimulator SHARED ${simulator_SRCS} )
install(TARGETS ktlsimulator ${INSTALL_TARGETS_DEFAULT_ARGS})
else(KDEVPLATFORM_ENABLED)
add_library( ktlsimulator SHARED ${simulator_SRCS} )
qt4_automoc( ${simulator_SRCS} )
install(TARGETS ktlsimulator
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
endif(KDEVPLATFORM_ENABLED)
target_link_libraries( ktlsimulator
${QT_QTCORE_LIBRARY}
${QT_LIBRARIES}
${QT_QT3SUPPORT_LIBRARY}
${GPSIM_LIBRARY}
)

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks