summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmake/Usepke.cmake8
-rw-r--r--src/cmake/pke.pc.cmake11
-rw-r--r--src/cmake/pkeConfig.cmake.in24
3 files changed, 43 insertions, 0 deletions
diff --git a/src/cmake/Usepke.cmake b/src/cmake/Usepke.cmake
new file mode 100644
index 0000000..b241a3c
--- /dev/null
+++ b/src/cmake/Usepke.cmake
@@ -0,0 +1,8 @@
+#
+# Usepke.cmake
+#
+
+add_definitions ( ${PKE_DEFINITIONS} )
+include_directories ( ${PKE_INCLUDE_DIRS} )
+link_directories ( ${PKE_LIBRARY_DIRS} )
+
diff --git a/src/cmake/pke.pc.cmake b/src/cmake/pke.pc.cmake
new file mode 100644
index 0000000..3fe11ae
--- /dev/null
+++ b/src/cmake/pke.pc.cmake
@@ -0,0 +1,11 @@
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=${prefix}
+libdir=${exec_prefix}/@LIB_DESTINATION@
+includedir=${prefix}/@INCLUDE_INSTALL_DIR@
+
+Name: pke
+Description: pke - Pikul Engine Core Library
+Version: @PKE_VERSION@
+Requires:
+Libs: -L${libdir}
+Cflags: -I${includedir} -I${prefix}/include
diff --git a/src/cmake/pkeConfig.cmake.in b/src/cmake/pkeConfig.cmake.in
new file mode 100644
index 0000000..250b6ab
--- /dev/null
+++ b/src/cmake/pkeConfig.cmake.in
@@ -0,0 +1,24 @@
+#
+# pkeConfig.cmake(.in)
+#
+
+# Use the following variables to compile and link against Bullet:
+# PKE_FOUND - True if pke was found on your system
+# PKE_USE_FILE - The file making pke usable
+# PKE_DEFINITIONS - Definitions needed to build with pke
+# PKE_INCLUDE_DIR - Directory where pke headers can be found
+# PKE_INCLUDE_DIRS - List of directories of pke and it's dependencies
+# PKE_LIBRARIES - List of libraries to link against the pke library
+# PKE_LIBRARY_DIRS - List of directories containing pke' libraries
+# PKE_ROOT_DIR - The base directory of pke
+# PKE_VERSION_STRING - A human-readable string containing the version
+
+set ( PKE_FOUND 1 )
+set ( PKE_USE_FILE "@PKE_USE_FILE@" )
+set ( PKE_DEFINITIONS "@PKE_DEFINITIONS@" )
+set ( PKE_INCLUDE_DIR "@INCLUDE_INSTALL_DIR@" )
+set ( PKE_INCLUDE_DIRS "@INCLUDE_INSTALL_DIR@" )
+set ( PKE_LIBRARIES "@PKE_LIBRARIES@" )
+set ( PKE_LIBRARY_DIRS "@LIB_DESTINATION@" )
+set ( PKE_ROOT_DIR "@CMAKE_INSTALL_PREFIX@" )
+set ( PKE_VERSION_STRING "@PKE_VERSION@" )