summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-05-13 19:19:59 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-05-13 19:19:59 +0200
commit68cd3324a1decb39ff4ea4900792fd0dfda58123 (patch)
tree90dcdc88d57a29fd1f7cdb59839762e0e8ab08c6
parentfc457719cf1d468ee1b9ed856e2b092469824a32 (diff)
downloadtdepim-68cd3324.tar.gz
tdepim-68cd3324.zip
libtdepim: Use the pkg-config file to find the TQtQUI library
instead of specifying a library name based on the TQt library name. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--libtdepim/CMakeLists.txt2
-rw-r--r--libtdepim/ConfigureChecks.cmake10
2 files changed, 2 insertions, 10 deletions
diff --git a/libtdepim/CMakeLists.txt b/libtdepim/CMakeLists.txt
index f1de8d99..15394c1e 100644
--- a/libtdepim/CMakeLists.txt
+++ b/libtdepim/CMakeLists.txt
@@ -98,7 +98,7 @@ tde_add_library( tdepim SHARED AUTOMOC
csshelper.cpp distributionlist.cpp kpimurlrequesterdlg.cpp
sendsmsdialog.cpp kmailcompletion.cpp
VERSION 1.0.0
- LINK kcal-shared tdeimproxy-shared tdeparts-shared ${TQUI_LIBRARIES}
+ LINK kcal-shared tdeimproxy-shared tdeparts-shared ${TQTQUI_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}
)
diff --git a/libtdepim/ConfigureChecks.cmake b/libtdepim/ConfigureChecks.cmake
index d2a8f1ff..b91f0f8f 100644
--- a/libtdepim/ConfigureChecks.cmake
+++ b/libtdepim/ConfigureChecks.cmake
@@ -9,12 +9,4 @@
#
#################################################
-foreach( f ${TQT_LIBRARIES} )
- if( ${f} STREQUAL "tqt-mt" )
- set(TQUI_LIBRARIES "tqui" CACHE TYPE STRING FORCE)
- endif()
- if( ${f} STREQUAL "qt-mt" )
- set(TQUI_LIBRARIES "qui" CACHE TYPE STRING FORCE)
- endif()
-endforeach()
-
+find_package( TQtQUI )