summaryrefslogtreecommitdiffstats
path: root/addon/doxmlparser/examples
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-05-12 17:00:00 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-05-12 17:00:00 (GMT)
commit0a2dfb54e727aded768486d9a101ce688b064a18 (patch)
treeb622669bd590f182f174ebe4ab8fba0087635d5b /addon/doxmlparser/examples
parentbcc8da62ab46c3dbbf08c2c16e6b4dfb6b64b2cb (diff)
downloadDoxygen-0a2dfb54e727aded768486d9a101ce688b064a18.zip
Doxygen-0a2dfb54e727aded768486d9a101ce688b064a18.tar.gz
Doxygen-0a2dfb54e727aded768486d9a101ce688b064a18.tar.bz2
Enable example doxmlparser possibilities for cmake build
The doxmlparser example program could be build by the build system before the use of cmake. In cmake it was available but "disabled" by means of an empty CMakeLists.txt in the doxmlparser main directory. (Windows is not fond of symbolic links, so removing link between src/doxmlintf.h and include/doxmlintf.h)
Diffstat (limited to 'addon/doxmlparser/examples')
-rw-r--r--addon/doxmlparser/examples/CMakeLists.txt2
-rw-r--r--addon/doxmlparser/examples/metrics/CMakeLists.txt14
-rw-r--r--addon/doxmlparser/examples/metrics/Makefile.in15
-rw-r--r--addon/doxmlparser/examples/metrics/metrics.pro.in20
4 files changed, 16 insertions, 35 deletions
diff --git a/addon/doxmlparser/examples/CMakeLists.txt b/addon/doxmlparser/examples/CMakeLists.txt
new file mode 100644
index 0000000..1e08d36
--- /dev/null
+++ b/addon/doxmlparser/examples/CMakeLists.txt
@@ -0,0 +1,2 @@
+
+add_subdirectory(metrics)
diff --git a/addon/doxmlparser/examples/metrics/CMakeLists.txt b/addon/doxmlparser/examples/metrics/CMakeLists.txt
new file mode 100644
index 0000000..8e03246
--- /dev/null
+++ b/addon/doxmlparser/examples/metrics/CMakeLists.txt
@@ -0,0 +1,14 @@
+
+include_directories(
+ ../../include
+)
+
+add_executable(doxmlparser_metrics
+main.cpp
+)
+
+
+target_link_libraries(doxmlparser_metrics
+ doxmlparser
+ qtools
+)
diff --git a/addon/doxmlparser/examples/metrics/Makefile.in b/addon/doxmlparser/examples/metrics/Makefile.in
deleted file mode 100644
index a3eb784..0000000
--- a/addon/doxmlparser/examples/metrics/Makefile.in
+++ /dev/null
@@ -1,15 +0,0 @@
-all clean depend: Makefile.metrics
- $(MAKE) -f Makefile.metrics $@
-
-distclean: clean
- $(RM) -rf Makefile.metrics metrics.pro Makefile obj
-
-realclean: distclean
-
-tmake:
- $(ENV) $(PERL) $(TMAKE) metrics.pro >Makefile.metrics
-
-Makefile.metrics: metrics.pro
- $(ENV) $(PERL) $(TMAKE) metrics.pro >Makefile.metrics
-
-install:
diff --git a/addon/doxmlparser/examples/metrics/metrics.pro.in b/addon/doxmlparser/examples/metrics/metrics.pro.in
deleted file mode 100644
index 3b2354d..0000000
--- a/addon/doxmlparser/examples/metrics/metrics.pro.in
+++ /dev/null
@@ -1,20 +0,0 @@
-TEMPLATE = app.t
-CONFIG = console warn_on $extraopts
-HEADERS =
-SOURCES = main.cpp
-unix:LIBS += -L../../../../lib -ldoxmlparser -lqtools
-win32:INCLUDEPATH += .
-win32-mingw:LIBS += -L../../../../lib -ldoxmlparser -lqtools
-win32-msvc:LIBS += doxmlparser.lib qtools.lib shell32.lib
-win32-msvc:TMAKE_LFLAGS += /LIBPATH:..\..\..\..\lib;
-win32-borland:LIBS += doxmlparser.lib qtools.lib shell32.lib
-win32-borland:TMAKE_LFLAGS += -L..\..\..\..\lib
-win32:TMAKE_CXXFLAGS += -DQT_NODLL
-DESTDIR = ../../../../bin
-OBJECTS_DIR = ../../../../objects/doxmlparer/metrics
-TARGET = metrics
-DEPENDPATH = ../../include
-INCLUDEPATH += ../../../../qtools ../../include
-unix:TARGETDEPS = ../../../../lib/libdoxmlparser.a
-win32:TARGETDEPS = ..\..\..\..\lib\doxmlparser.lib
-