summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-19 22:51:00 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-19 22:51:00 +0000
commit3db80503fad5811532dc86c4d2d8cfe7d72da907 (patch)
tree19f74013cda675ef7ef199028e1be4dac1f194fe /CMakeLists.txt
parentdff75cd7363b315f503b122c3bc49315351329ff (diff)
downloadtqtinterface-3db80503fad5811532dc86c4d2d8cfe7d72da907.tar.gz
tqtinterface-3db80503fad5811532dc86c4d2d8cfe7d72da907.zip
[dependencies/tqtinterface] improved pkgconfig file generation
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface@1215866 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bfc8f05..f1fcddb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -749,6 +749,10 @@ endforeach( LIB ${PKGCONFIG_QT_LIBRARIES} )
##### write TQt.pc ##############################
+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( qtinterface/TQt.pc.cmake qtinterface/TQt.pc @ONLY )