summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-12-11 01:36:20 +0100
committerSlávek Banko <slavek.banko@axis.cz>2015-12-17 03:39:18 +0100
commitcef06c78ca474f1755ded90c0f5af25249486a12 (patch)
treefc8556524252fe26432cb7a734cd2c5272ad3308
parente75325e927b7c7fae18d875c54bcc42358a0f4f2 (diff)
downloadtqtinterface-cef06c78ca474f1755ded90c0f5af25249486a12.tar.gz
tqtinterface-cef06c78ca474f1755ded90c0f5af25249486a12.zip
Do not build tqassistantclient for native tqt build
Embed static qassistantclient library for qt3 build (cherry picked from commit b67c2e559a69620288450b2140152cd231d2dcfd)
-rw-r--r--qtinterface/CMakeLists.txt35
1 files changed, 28 insertions, 7 deletions
diff --git a/qtinterface/CMakeLists.txt b/qtinterface/CMakeLists.txt
index 64fbb38..e2eb32b 100644
--- a/qtinterface/CMakeLists.txt
+++ b/qtinterface/CMakeLists.txt
@@ -199,10 +199,31 @@ tde_add_library( tqt SHARED
##### tqassistantclient (shared) ##############################
-tde_add_library( tqassistantclient SHARED
- SOURCES
- tqassistantclient.cpp
- VERSION 4.2.0
- LINK ${QT_LIBRARIES} -lqassistantclient
- DESTINATION ${LIB_INSTALL_DIR}
-)
+ find_library( QASSISTANTCLIENT_STATIC libqassistantclient.a )
+
+ if ( QASSISTANTCLIENT_STATIC )
+
+ add_library(qassistantclient STATIC IMPORTED)
+ set_property(TARGET qassistantclient PROPERTY
+ IMPORTED_LOCATION ${QASSISTANTCLIENT_STATIC})
+
+ tde_add_library( tqassistantclient SHARED
+ SOURCES
+ tqassistantclient.cpp
+ VERSION 4.2.0
+ LINK ${QT_LIBRARIES}
+ EMBED qassistantclient
+ DESTINATION ${LIB_INSTALL_DIR}
+ )
+
+ else ( QASSISTANTCLIENT_STATIC )
+
+ tde_add_library( tqassistantclient SHARED
+ SOURCES
+ tqassistantclient.cpp
+ VERSION 4.2.0
+ LINK ${QT_LIBRARIES} -lqassistantclient
+ DESTINATION ${LIB_INSTALL_DIR}
+ )
+
+ endif ( QASSISTANTCLIENT_STATIC )