diff options
author | gregory guy <gregory-tde@laposte.net> | 2020-10-12 15:43:57 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-11-05 18:49:06 +0100 |
commit | f84a48543b2471121d36334e094e0f85f9b9c431 (patch) | |
tree | 82d605f1f611a679bce6848d71ddaaf783be9287 /src/electronics/components | |
parent | 33040db93b91f5ca502dcc682d944fcfe4cd331a (diff) | |
download | ktechlab-f84a48543b2471121d36334e094e0f85f9b9c431.tar.gz ktechlab-f84a48543b2471121d36334e094e0f85f9b9c431.zip |
Conversion to the cmake building system.
Added man pages taken from the Debian packaging system.
Move the ktechlab.desktop file into XDG_APPS_INSTALL_DIR directory,
see TDE/tde#26 and bug 2408.
Signed-off-by: gregory guy <gregory-tde@laposte.net>
(cherry picked from commit a9c86866c380e503dd75797b5c2d129bfb622a9e)
Diffstat (limited to 'src/electronics/components')
-rw-r--r-- | src/electronics/components/CMakeLists.txt | 49 | ||||
-rw-r--r-- | src/electronics/components/piccomponent.cpp | 2 | ||||
-rw-r--r-- | src/electronics/components/piccomponent.h | 2 | ||||
-rw-r--r-- | src/electronics/components/piccomponentpin.cpp | 2 | ||||
-rw-r--r-- | src/electronics/components/piccomponentpin.h | 2 |
5 files changed, 57 insertions, 0 deletions
diff --git a/src/electronics/components/CMakeLists.txt b/src/electronics/components/CMakeLists.txt new file mode 100644 index 0000000..7850d19 --- /dev/null +++ b/src/electronics/components/CMakeLists.txt @@ -0,0 +1,49 @@ +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${CMAKE_SOURCE_DIR}/src + ${CMAKE_SOURCE_DIR}/src/electronics + ${CMAKE_SOURCE_DIR}/src/electronics/components + ${CMAKE_SOURCE_DIR}/src/electronics/simulation + ${CMAKE_SOURCE_DIR}/src/gui + ${CMAKE_SOURCE_DIR}/src/languages + ${CMAKE_SOURCE_DIR}/src/micro + ${GLIB_INCLUDE_DIRS} + ${GPSIM_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### components (static) + +tde_add_library( components STATIC_PIC AUTOMOC + + SOURCES + ecresistor.cpp ecled.cpp ecdiode.cpp + ecsevensegment.cpp eckeypad.cpp + eccapacitor.cpp ec555.cpp eccurrentsource.cpp + ecfixedvoltage.cpp ecbcdto7segment.cpp + ecsignallamp.cpp ecclockinput.cpp + ecpotentiometer.cpp ecopamp.cpp ecvoltagesource.cpp + eccurrentsignal.cpp ecvoltagesignal.cpp + ecground.cpp multiinputgate.cpp fulladder.cpp + multiplexer.cpp demultiplexer.cpp externalconnection.cpp + ecsubcircuit.cpp meter.cpp probe.cpp resistordip.cpp + addac.cpp dependentsource.cpp flipflop.cpp + toggleswitch.cpp pushswitch.cpp ram.cpp + discretelogic.cpp piccomponent.cpp piccomponentpin.cpp + binarycounter.cpp bidirled.cpp matrixdisplay.cpp + bussplitter.cpp matrixdisplaydriver.cpp + magnitudecomparator.cpp serialportcomponent.cpp + parallelportcomponent.cpp inductor.cpp ecbjt.cpp + rotoswitch.cpp + LINK + elements-static +) diff --git a/src/electronics/components/piccomponent.cpp b/src/electronics/components/piccomponent.cpp index 83038c1..57ff164 100644 --- a/src/electronics/components/piccomponent.cpp +++ b/src/electronics/components/piccomponent.cpp @@ -8,7 +8,9 @@ * (at your option) any later version. * ***************************************************************************/ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #ifndef NO_GPSIM #include "canvasitemparts.h" diff --git a/src/electronics/components/piccomponent.h b/src/electronics/components/piccomponent.h index 330fbf9..5bf4ac8 100644 --- a/src/electronics/components/piccomponent.h +++ b/src/electronics/components/piccomponent.h @@ -11,7 +11,9 @@ #ifndef PICCOMPONENT_H #define PICCOMPONENT_H +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #ifndef NO_GPSIM #include "component.h" diff --git a/src/electronics/components/piccomponentpin.cpp b/src/electronics/components/piccomponentpin.cpp index 47ef6cb..59790f1 100644 --- a/src/electronics/components/piccomponentpin.cpp +++ b/src/electronics/components/piccomponentpin.cpp @@ -8,7 +8,9 @@ * (at your option) any later version. * ***************************************************************************/ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #ifndef NO_GPSIM #include "micropackage.h" diff --git a/src/electronics/components/piccomponentpin.h b/src/electronics/components/piccomponentpin.h index cd41db9..8681cab 100644 --- a/src/electronics/components/piccomponentpin.h +++ b/src/electronics/components/piccomponentpin.h @@ -11,7 +11,9 @@ #ifndef PICCOMPONENTPIN_H #define PICCOMPONENTPIN_H +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #ifndef NO_GPSIM #include "logic.h" |