From 7c8d217a676799ba34b405d9352a5bf2fa540802 Mon Sep 17 00:00:00 2001 From: Ray-V Date: Sat, 27 Jul 2024 21:29:02 +0100 Subject: Fix -ltqt and -ltqt-mt not found Signed-off-by: Ray-V --- reader/src/CMakeLists.txt | 5 ++++- zlibrary/core/CMakeLists.txt | 4 ++++ zlibrary/text/CMakeLists.txt | 4 ++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/reader/src/CMakeLists.txt b/reader/src/CMakeLists.txt index 1ffca05..8b42f39 100644 --- a/reader/src/CMakeLists.txt +++ b/reader/src/CMakeLists.txt @@ -8,8 +8,11 @@ include_directories( ${CMAKE_BINARY_DIR}/zlibrary/text/include ) +link_directories( + ${TQT_LIBRARY_DIRS} +) -##### libzlcore-tqt (shared) +##### tde-ebook-reader file( GLOB_RECURSE _src_cpp_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp) tde_add_executable( tde-ebook-reader AUTOMOC diff --git a/zlibrary/core/CMakeLists.txt b/zlibrary/core/CMakeLists.txt index 0f0be4f..f81eb83 100644 --- a/zlibrary/core/CMakeLists.txt +++ b/zlibrary/core/CMakeLists.txt @@ -5,6 +5,10 @@ include_directories( ${CMAKE_BINARY_DIR} ) +link_directories( + ${TQT_LIBRARY_DIRS} +) + configure_file( include/core_export.h.cmake include/core_export.h ) diff --git a/zlibrary/text/CMakeLists.txt b/zlibrary/text/CMakeLists.txt index ea2bbb8..9a55a2d 100644 --- a/zlibrary/text/CMakeLists.txt +++ b/zlibrary/text/CMakeLists.txt @@ -7,6 +7,10 @@ include_directories( ${CMAKE_BINARY_DIR}/zlibrary/text/include ) +link_directories( + ${TQT_LIBRARY_DIRS} +) + configure_file( include/text_export.h.cmake include/text_export.h ) -- cgit v1.2.1