From 17c50dcb147e8b4dc5efdca9cd7fb59743f4c55f Mon Sep 17 00:00:00 2001 From: Petr Vanek Date: Fri, 1 Jul 2011 09:42:51 +0200 Subject: [PATCH] lib has to be built first in any case --- lib/CMakeLists.txt | 1 + src/CMakeLists.txt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 0d0aab0..d0dde6d 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -178,6 +178,7 @@ if (BUILD_DESIGNER_PLUGIN) ${DESIGNER_QRC} ${DESIGNER_SRC} ) + add_dependencies(qtermwidgetplugin qtermwidget) target_link_libraries( qtermwidgetplugin ${QT_QTCORE_LIBRARY} diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c990f6c..c921acc 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -32,6 +32,8 @@ endif(COMMAND cmake_policy) #| Create the Library add_executable ( test ${SRCS} ) +add_dependencies(test qtermwidget) + #| Set Build Type set ( CMAKE_BUILD_TYPE #"release"