Re: [CMake] include directories not found for object library

2018-05-16 Thread Robert Maynard
That is exactly how it will look. On Wed, May 16, 2018 at 4:19 AM Miklos Espak wrote: > That's awesome, thanks a lot! > > So, it would look like this in my case then: > > target_link_libraries(baseapp PUBLIC dcmjpeg mylib1 mylib2) > > And the object library has to be added to

Re: [CMake] include directories not found for object library

2018-05-16 Thread Miklos Espak
That's awesome, thanks a lot! So, it would look like this in my case then: target_link_libraries(baseapp PUBLIC dcmjpeg mylib1 mylib2) And the object library has to be added to the sources of the app1 and app2, like now. With other words, object libraries would be allowed on the left hand side

Re: [CMake] include directories not found for object library

2018-05-15 Thread Robert Maynard
This is scheduled to be fixed in the next release by allowing OBJECT libraries to be used in target_link_libraries. On Tue, May 8, 2018 at 7:46 PM Miklos Espak wrote: > Hi, > > I have an abstract class that I want to compile into many applications. > Something like this: > >

[CMake] include directories not found for object library

2018-05-08 Thread Miklos Espak
Hi, I have an abstract class that I want to compile into many applications. Something like this: baseapp.h baseapp.cpp app1.h app1.cpp app2.h app2.cpp ... I thought of making an object library from baseapp because I want to compile it only once and it is used only internally. However, baseapp

[CMake] Include directories of IMPORTED libraries not propagating

2017-12-22 Thread Saad Khattak
Hi, I have the following setup: ImportedLib (sets location of library files and public include directories) LibA (publicly includes ImporteLib with target_link_libraries(...)) Exe (finds LibA and links against it) Where ImportedLib uses

Re: [CMake] Include directories problem when cross compiling with MinGW

2016-09-19 Thread David Demelier
2016-09-12 23:22 GMT+02:00 Maciej Mrozowski : > On piątek, 2 września 2016 13:12:27 CEST David Demelier wrote: > >> Do you have any clue? > > It seems your toolchain does not have include/library path built-in or they > are different that those it was built with. After some

Re: [CMake] Include directories problem when cross compiling with MinGW

2016-09-12 Thread Maciej Mrozowski
On piątek, 2 września 2016 13:12:27 CEST David Demelier wrote: > Do you have any clue? It seems your toolchain does not have include/library path built-in or they are different that those it was built with. You can inspect them by passing one of below parameters to mingw-*-gcc:

[CMake] Include directories problem when cross compiling with MinGW

2016-09-02 Thread David Demelier
Hello, I'm trying to cross compile a project on Arch Linux using MinGW for Windows. I've installed a lot of libraries from their AUR into /usr/x86_64-w64- mingw32. This seems okay as CMake finds every library needed. My example project consists of: cmake_minimum_required(VERSION 3.5)

[CMake] include directories

2011-12-28 Thread Tom Deblauwe
Hello, I have the following project structure: framework1/inc/lib1 - public headers framework1/inc/lib2 - public headers framework1/libs/lib1/ - CMakeLists.txt framework1/libs/lib1/src - implementation source+headers framework1/libs/lib2/ - CMakeLists.txt framework1/libs/lib2/src -

Re: [CMake] include directories,

2011-08-11 Thread Łukasz Tasz
Hi Michael, All Thanks a lot for your explanation, Now it's obvious for me why it behaves like that, include directories is inherited from directory properties, and this will be stable after processing cmakelists. What I want to do is a little bit different, I would like to reset value of

Re: [CMake] include directories,

2011-08-10 Thread Łukasz Tasz
Hi All, Can somebody please advise me with this topic, if it is expected behaviour or a bug? thanks in advance Lukasz 2011/8/4 Łukasz Tasz luk...@tasz.eu: Hi All, I have a question according include_directories() function and INCLUDE_DIRECTORIES directory property. Is it possible that I

Re: [CMake] include directories,

2011-08-10 Thread Michael Wild
On Wed 10 Aug 2011 04:51:36 PM CEST, Łukasz Tasz wrote: Hi All, Can somebody please advise me with this topic, if it is expected behaviour or a bug? thanks in advance Lukasz 2011/8/4 Łukasz Tasz luk...@tasz.eu: Hi All, I have a question according include_directories() function and

[CMake] include directories,

2011-08-04 Thread Łukasz Tasz
Hi All, I have a question according include_directories() function and INCLUDE_DIRECTORIES directory property. Is it possible that I will know set of include directories that will be used by preprocessor when I'm calling add_executable function? I notticed, that order does not matter, for

Re: [CMake] Include directories for C compile command

2011-08-04 Thread Glenn Coombs
CMake deliberately works in a top-down manner for most things. So variable values and preprocessor definitions are inherited in subdirectories from the values they had in the parent. And any subsequent changes made to them in the subdirectory scope are not propogated up to the parent. This is a

[CMake] Include directories for C compile command

2011-08-03 Thread Andrei Buzgan
Hello everyone, I'm trying to set up an environment for building a pre-existing medium sized embedded software project, by using CMake 2.8 and MinGW. The compiler kit is specific for the target microcontroller and contains C compiler, assembler, linker, all different executables. I do have some

Re: [CMake] Include directories for C compile command

2011-08-03 Thread Glenn Coombs
Have you tried using the include_directories() command ? In your top level CMakeLists.txt add a line like this: include_directories(SWC1 SWC2 SWC3 Common) before you do any add_subdirectory() commands. Does that not add the appropriate -Ixxx flags to the compile command ? It does for me but

Re: [CMake] Include directories for C compile command

2011-08-03 Thread Andrei Buzgan
Hello Glenn and thanks, I found out yesterday the method you describe works. I was trying to use include_directories() before, but unfortunately the statement was after any add_directory() statement and it was a matter of scope (what other variable/property updates add_directory() does?). It

Re: [CMake] Include Directories Cleanup/Remove Prior Entries

2010-11-10 Thread Alexander Neundorf
On Wednesday 10 November 2010, Jeremy Torres wrote: I have a question regarding removing prior entries from include_directories. Specifically, in a CMakeLists.txt, I have several targets. For example: # target 1 include_directories(x y z) add_executable(my_exe ...) #target 2

[CMake] Include Directories Cleanup/Remove Prior Entries

2010-11-09 Thread Jeremy Torres
I have a question regarding removing prior entries from include_directories. Specifically, in a CMakeLists.txt, I have several targets. For example: # target 1 include_directories(x y z) add_executable(my_exe ...) #target 2 include_directories(a b c) add_executable(my_exe2 ...) #target 3

[CMake] include directories getting excaped.

2009-06-22 Thread chris
Hi, I've got this bit of cmake code: PKG_CHECK_MODULES(GTKMM gtkmm-2.4 REQUIRED) IF(NOT GTKMM_FOUND) MESSAGE(GTKMM is required to compile this project. FATAL_ERROR) ENDIF(NOT GTKMM_FOUND) MESSAGE(gtkmm headers: ${GTKMM_INCLUDE_DIRS}) and the message I get under windows is: C:/Program and

Re: [CMake] include directories getting excaped.

2009-06-22 Thread Tyler Roscoe
On Mon, Jun 22, 2009 at 02:25:17AM -0500, ch...@basementcode.com wrote: I've got this bit of cmake code: PKG_CHECK_MODULES(GTKMM gtkmm-2.4 REQUIRED) IF(NOT GTKMM_FOUND) MESSAGE(GTKMM is required to compile this project. FATAL_ERROR) ENDIF(NOT GTKMM_FOUND) MESSAGE(gtkmm headers:

Re: [CMake] include directories getting excaped.

2009-06-22 Thread Christopher Harvey
wowI typed that at 2:25am last night. so many typos I actually found out what's going on. It's not cmakes fault, pkg-config under windows is returning that exact same string, but I didn't notice because --cflags looked alright. when using --cflags-only-I I get the C:\Program thing. Maybe I'll

Re: [CMake] include directories variable?

2007-09-27 Thread Sylvain Benner
How do I get the INCLUDE_DIRECTORIES path? I need to feed into into the search path for the swig command line. Documentation taken from a man cmake command: GET_DIRECTORY_PROPERTY Get a property of the directory. GET_DIRECTORY_PROPERTY(VAR [DIRECTORY dir] property)

[CMake] include directories variable?

2007-09-26 Thread Juan Sanchez
How do I get the INCLUDE_DIRECTORIES path? I need to feed into into the search path for the swig command line. Thanks, Juan ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake