summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-06-11 01:55:37 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-06-12 13:28:56 +0200
commitbe1fee9567b0feae736966468c8f1b480d01890c (patch)
tree37f2067ad083efcc9dfbb1306264fa7acb30383d /templates
parent5715cbbaba6c7ee53ef9e3d049a434d8af1593c0 (diff)
downloadtde-cmake-be1fee9567b0feae736966468c8f1b480d01890c.tar.gz
tde-cmake-be1fee9567b0feae736966468c8f1b480d01890c.zip
Move templates to a separate directory and rename to the tde_ prefix.
Create the TDE_CMAKE_ROOT and TDE_CMAKE_TEMPLATES variables. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 2a847be412bd1dc66e53ea4652cc42f24a412d0f)
Diffstat (limited to 'templates')
-rw-r--r--templates/tde_dummy_cpp.cmake5
-rw-r--r--templates/tde_export_library.cmake7
-rw-r--r--templates/tde_libtool_file.cmake35
-rw-r--r--templates/tde_tdeinit_executable.cmake2
-rw-r--r--templates/tde_tdeinit_module.cmake3
5 files changed, 52 insertions, 0 deletions
diff --git a/templates/tde_dummy_cpp.cmake b/templates/tde_dummy_cpp.cmake
new file mode 100644
index 0000000..8e1f5ff
--- /dev/null
+++ b/templates/tde_dummy_cpp.cmake
@@ -0,0 +1,5 @@
+#ifdef _AIX
+ namespace {
+ void *not_empty_file;
+ }
+#endif
diff --git a/templates/tde_export_library.cmake b/templates/tde_export_library.cmake
new file mode 100644
index 0000000..4d6cb3f
--- /dev/null
+++ b/templates/tde_export_library.cmake
@@ -0,0 +1,7 @@
+add_library( @_target@ @_type@ IMPORTED )
+
+set_target_properties( @_target@ PROPERTIES
+ IMPORTED_LINK_INTERFACE_LIBRARIES "@_shared_libs@"
+ IMPORTED_LOCATION "@_location@"
+ IMPORTED_SONAME "@_soname@" )
+
diff --git a/templates/tde_libtool_file.cmake b/templates/tde_libtool_file.cmake
new file mode 100644
index 0000000..fcd73d4
--- /dev/null
+++ b/templates/tde_libtool_file.cmake
@@ -0,0 +1,35 @@
+# @_laname@ - a libtool library file
+# Generated by CMake - GNU libtool
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# The name that we can dlopen(3).
+dlname='@_library_name_2@'
+
+# Names of this library.
+library_names='@_library_name_1@ @_library_name_2@ @_library_name_3@'
+
+# The name of the static archive.
+old_library=''
+
+# Libraries that this one depends upon.
+dependency_libs=''
+
+# Version information for @_name@.
+current=@_version_current@
+age=@_version_age@
+revision=@_version_revision@
+
+# Is this an already installed library?
+installed=yes
+
+# Should we warn about portability when linking against -modules?
+shouldnotlink=@_shouldnotlink@
+
+# Files to dlopen/dlpreopen
+dlopen=''
+dlpreopen=''
+
+# Directory that this library needs to be installed in:
+libdir='@_libdir@'
diff --git a/templates/tde_tdeinit_executable.cmake b/templates/tde_tdeinit_executable.cmake
new file mode 100644
index 0000000..3d480c4
--- /dev/null
+++ b/templates/tde_tdeinit_executable.cmake
@@ -0,0 +1,2 @@
+extern "C" int kdemain(int argc, char* argv[]);
+int main(int argc, char* argv[]) { return kdemain(argc,argv); }
diff --git a/templates/tde_tdeinit_module.cmake b/templates/tde_tdeinit_module.cmake
new file mode 100644
index 0000000..efd89d8
--- /dev/null
+++ b/templates/tde_tdeinit_module.cmake
@@ -0,0 +1,3 @@
+#include <kdemacros.h>
+extern "C" int kdemain(int argc, char* argv[]);
+extern "C" KDE_EXPORT int tdeinitmain(int argc, char* argv[]) { return kdemain(argc,argv); }