Re: [CMake] restricting Qt include and library linking to 1 library/project

2009-12-31 Thread Hicham Mouline
>> -Original Message- <> From: Clinton Stimpson [mailto:clin...@elemtech.com] > >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 "C:\Progra~2\

Re: [CMake] restricting Qt include and library linking to 1 library/project

2009-12-31 Thread John Drescher
On Thu, Dec 31, 2009 at 5:06 PM, Hicham Mouline 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 l

Re: [CMake] restricting Qt include and library linking to 1 library/project

2009-12-31 Thread Hicham Mouline
> -Original Message- > From: Clinton Stimpson [mailto:clin...@elemtech.com] > Sent: 31 December 2009 20:29 > To: Hicham Mouline > Cc: cmake@cmake.org > Subject: Re: [CMake] restricting Qt include and library linking to 1 > library/project > > > On Dec 31, 20

Re: [CMake] restricting Qt include and library linking to 1 library/project

2009-12-31 Thread Clinton Stimpson
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

Re: [CMake] restricting Qt include and library linking to 1 library/project

2009-12-31 Thread John Drescher
> 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 ___ Pow

Re: [CMake] restricting Qt include and library linking to 1 library/project

2009-12-31 Thread John Drescher
On Thu, Dec 31, 2009 at 3: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

Re: [CMake] restricting Qt include and library linking to 1 library/project

2009-12-31 Thread Hicham Mouline
> -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

Re: [CMake] restricting Qt include and library linking to 1 library/project

2009-12-31 Thread Clinton Stimpson
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. C

Re: [CMake] restricting Qt include and library linking to 1 library/project

2009-12-31 Thread Pau Garcia i Quiles
On Thu, Dec 31, 2009 at 4:06 PM, Hicham Mouline 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 lib1_sour

Re: [CMake] restricting Qt include and library linking to 1 library/project

2009-12-31 Thread Hicham Mouline
> -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

Re: [CMake] restricting Qt include and library linking to 1 library/project

2009-12-31 Thread Pau Garcia i Quiles
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.

[CMake] restricting Qt include and library linking to 1 library/project

2009-12-31 Thread Hicham Mouline
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}") END