diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2024-01-08 15:15:42 -0500 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2024-01-08 15:15:42 -0500 |
| commit | 8e70544b340c8987daca3eb9053f026d4d96c616 (patch) | |
| tree | 6dd223a6237f31d8b0e76e6ef46964826db6b459 /src/cmake | |
| parent | 3aa95ba29a779d695c2a16905c651be768231212 (diff) | |
cmake install commands for pke - first pass
Diffstat (limited to 'src/cmake')
| -rw-r--r-- | src/cmake/Usepke.cmake | 8 | ||||
| -rw-r--r-- | src/cmake/pke.pc.cmake | 11 | ||||
| -rw-r--r-- | src/cmake/pkeConfig.cmake.in | 24 |
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@" ) |
