Add a pkgconfig file for libtdegames.

Signed-off-by: gregory guy <gregory-tde@laposte.net>
pull/9/head
gregory guy 4 years ago
parent 5364a90fea
commit 83cbbc2593
No known key found for this signature in database
GPG Key ID: 3BCCA0F7AB4536F4

@ -54,3 +54,18 @@ install( FILES
##### install import cmake modules ############### ##### install import cmake modules ###############
tde_install_export( ) tde_install_export( )
##### other data
string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" PC_EXEC_PREFIX ${EXEC_INSTALL_PREFIX} )
string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" PC_INCLUDE_DIR ${INCLUDE_INSTALL_DIR} )
string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" PC_LIB_DIR ${LIB_INSTALL_DIR} )
configure_file( ${PROJECT_NAME}.pc.cmake ${PROJECT_NAME}.pc @ONLY )
install(
FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc
DESTINATION ${PKGCONFIG_INSTALL_DIR}
)

@ -0,0 +1,12 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=@PC_EXEC_PREFIX@
libdir=@PC_LIB_DIR@
includedir=@PC_INCLUDE_DIR@
Name: @PROJECT_NAME@
Description: @PROJECT_NAME@ is a collection of functions used by some games for the Trinity Desktop Environment.
URL: https://mirror.git.trinitydesktop.org/gitea/TDE/tdegames
Requires: tdelibs
Version: 1.2.0
Libs: -L${libdir} -ltdegames
Cflags: -I${includedir}
Loading…
Cancel
Save