Bläddra i källkod

[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
tags/v3.5.13
samelian 9 år sedan
förälder
incheckning
06163f6ea7
2 ändrade filer med 11 tillägg och 8 borttagningar
  1. +11
    -5
      CMakeLists.txt
  2. +0
    -3
      ConfigureChecks.cmake

+ 11
- 5
CMakeLists.txt Visa fil

@@ -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 ###############################


+ 0
- 3
ConfigureChecks.cmake Visa fil

@@ -15,8 +15,5 @@ if( NOT DBUS_FOUND )
tde_message_fatal( "dbus-1 is required, but was not found on your system" )
endif( )

# qt3
find_package( Qt )

# tqt
find_package( TQt )

Laddar…
Avbryt
Spara