diff options
author | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-03 23:52:55 +0000 |
---|---|---|
committer | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-03 23:52:55 +0000 |
commit | 06163f6ea7355f89e49fac5995f04601a198bc05 (patch) | |
tree | faa3f316908032b1201d78c717b43191adcc4d88 /CMakeLists.txt | |
parent | e2550740060da7ea3ad025524441f39787bab437 (diff) | |
download | dbus-tqt-06163f6ea7355f89e49fac5995f04601a198bc05.tar.gz dbus-tqt-06163f6ea7355f89e49fac5995f04601a198bc05.zip |
[dependencies/dbus-tqt] generate dbus-tqt.pc
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/dbus-tqt@1230318 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 17c76ea..00b2562 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,7 @@ ################################################# project( dbus-tqt-1 ) +set( VERSION "0.7" ) ##### cmake setup ############################### @@ -41,11 +42,16 @@ install( FILES ##### write pkgconfig file ###################### -# 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( dbus-tqt.pc.cmake dbus-tqt.pc @ONLY ) -# install( FILES ${CMAKE_CURRENT_BINARY_DIR}/dbus-tqt.pc DESTINATION ${PKGCONFIG_INSTALL_DIR} ) +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} ) + +foreach( _lib ${PROJECT_NAME} ${DBUS_LIBRARIES} ) + set( PC_LIBRARIES "${PC_LIBRARIES} -l${_lib}" ) +endforeach( ) + +configure_file( dbus-tqt.pc.cmake dbus-tqt.pc @ONLY ) +install( FILES ${CMAKE_CURRENT_BINARY_DIR}/dbus-tqt.pc DESTINATION ${PKGCONFIG_INSTALL_DIR} ) ##### build setup ############################### |