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
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
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:
>
>
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
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
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
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:
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)
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 -
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
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
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
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
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
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
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
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
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
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
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
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:
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
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)
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
24 matches
Mail list logo