Hello,
My toplevel CMakeLists.txt looks like:
PROJECT(...)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
# Openmp
FIND_PACKAGE(OpenMP)
IF(OPENMP_FOUND)
SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS})
Hello,
Do find_package( Qt4 COMPONENTS ... ) from each subdir and use only
the components you need for each library.
Do not INCLUDE( ${QT_USE_FILE} ) in any case, just do an include_directories.
When linking, do not use the contain-all QT_LIBRARIES variable but the
individual library variables.
-Original Message-
From: Pau Garcia i Quiles [mailto:pgqui...@elpauer.org]
Sent: 31 December 2009 14:07
To: Hicham Mouline
Cc: cmake@cmake.org
Subject: Re: [CMake] restricting Qt include and library linking to 1
library/project
Hello,
Do find_package( Qt4 COMPONENTS
On Thu, Dec 31, 2009 at 4:06 PM, Hicham Mouline hic...@mouline.org wrote:
Assuming lib1 uses QtCore and QtNetwork:
find_package( Qt4 COMPONENTS QtCore QtNetwork REQUIRED )
include_directories( ${QT_QTCORE_INCLUDE_DIR} ${QT_QTNETWORK_INCLUDE_DIR}
)
add_library( lib1 SHARED lib1_source1.cpp
If you have multiple directories with different Qt dependencies, you can do:
find_package(Qt4 REQUIRED)
in the top directory,
then each sub directory can do something like
set(QT_USE_QTOPENGL 1)
include(${QT_USE_FILE})
But in your case, its only lib3, so just do it in that CMakeLists.txt file.
-Original Message-
From: Clinton Stimpson [mailto:clin...@elemtech.com]
Sent: 31 December 2009 16:08
To: Hicham Mouline
Cc: cmake@cmake.org
Subject: Re: [CMake] restricting Qt include and library linking to 1
library/project
If you have multiple directories with different Qt
On Thu, Dec 31, 2009 at 3:12 PM, Hicham Mouline hic...@mouline.org wrote:
-Original Message-
From: Clinton Stimpson [mailto:clin...@elemtech.com]
Sent: 31 December 2009 16:08
To: Hicham Mouline
Cc: cmake@cmake.org
Subject: Re: [CMake] restricting Qt include and library linking to 1
If you open cmake-gui does and look at the Qt tab in Grouped View are
the debug libraries properly set?
Hmm sorry for the bad wording..
If you open cmake-gui and look at the Qt tab in Grouped View are the
debug libraries properly set?
John
___
On Dec 31, 2009, at 1:12 PM, Hicham Mouline wrote:
-Original Message-
From: Clinton Stimpson [mailto:clin...@elemtech.com]
Sent: 31 December 2009 16:08
To: Hicham Mouline
Cc: cmake@cmake.org
Subject: Re: [CMake] restricting Qt include and library linking to 1
library/project
On Thu, Dec 31, 2009 at 5:06 PM, Hicham Mouline hic...@mouline.org wrote:
-Original Message-
From: John Drescher [mailto:dresche...@gmail.com]
Sent: 31 December 2009 20:25
To: Hicham Mouline; CMake mailing list
Subject: Re: [CMake] restricting Qt include and library linking to 1
-Original Message-
From: Clinton Stimpson [mailto:clin...@elemtech.com]
snip
ADD_LIBRARY(plot STATIC
...
...
...)
TARGET_LINK_LIBRARIES(plot C:/Progra~2/Qt/4.6.0/lib/QtCored4.lib)
1. from cmd dos: dir C:/Progra~2/Qt/4.6.0/lib/QtCored4.lib = nothing
But dir
11 matches
Mail list logo