[CMake] Using ExternalProject with find_library and find_path

2018-08-24 Thread Alexander Dahl
Hei hei, for a standalone build without system libraries I was experimenting with the ExternalProject module today. My goal is to have some top level build project which includes several CMake projects and some external projects without relying on dev libraries installed on the system (reason are

Re: [CMake] KDevelop Projects

2014-12-13 Thread Alexander Dahl
Hei hei, On 13.12.2014 09:08, ambreen haleem wrote: > In my main repository where my project reside, I created a sub-directory > called build. When I do cmake -G "KDevelop3", I do get a kdevelop project > in the build but it has no src files and most of the files in there are > cmake related. I'm

Re: [CMake] CMake 2.8.11 Released!

2013-06-27 Thread Alexander Dahl
Hei hei, On Fri, May 17, 2013 at 11:09:11AM -0400, Robert Maynard wrote: > - target_link_libraries(myexe yourlib) can now build myexe sources > with requirements specified Does this mean transitive linking between separate projects is possible? Greets Alex -- »With the first link, the chain

Re: [CMake] Creating a common (= across several projects) CMake module/include-file/library

2013-06-27 Thread Alexander Dahl
Hei hei, On Mon, May 13, 2013 at 06:17:58PM -0400, Matthew Woehlke wrote: > Another option to consider is keeping the file in an external > repository and using your VCS's external-repo support to bring it > into your other projects. This way the file exists in your source > tree, but your VCS is

Re: [CMake] transitive linking with separate projects

2012-03-07 Thread Alexander Dahl
Hello Michael, Am 2012-03-06 16:46, schrieb Michael Hertling: > or possibly better: > > # libbar/bar-config.cmake.in: > FIND_PACKAGE(FOO PATHS @FOO_DIR@ NO_DEFAULT_PATH) I used FIND_PACKAGE(FOO 0.1.0 REQUIRED) in the package config file now, which works, too. > BTW, find modules / config fil

[CMake] transitive linking with separate projects

2012-03-06 Thread Alexander Dahl
Hei hei, we faced a build problem with transitive linking of separate projects where I can't find the right solution on my own. I hope someone can give me a hint. I prepared a test case with two libraries libfoo and libbar and an application baz. libfoo is on his own, libbar calls a function from

Re: [CMake] not found library with package configuration files and changed CMAKE_INSTALL_PREFIX

2011-10-10 Thread Alexander Dahl
Hei hei, On Wed, 21 Sep 2011 16:42:37 +0200, Alexander Dahl wrote: >> The foo-targets.cmake file contains "foo-shared" as imported target, >> and it is this name that must be supplied to TARGET_LINK_LIBRARIES(). >> Besides, the DESTINATION clause of INSTALL() should

Re: [CMake] not found library with package configuration files and changed CMAKE_INSTALL_PREFIX

2011-09-21 Thread Alexander Dahl
Hei hei, On Tue, 20 Sep 2011 16:38:06 +0200, Michael Hertling wrote: > This leaves the target named "foo-shared", not "foo"; the latter is > just the base name of the target's disk file, i.e. libfoo.so.0.1.0. It does. > The foo-targets.cmake file contains "foo-shared" as imported target, > and i

[CMake] not found library with package configuration files and changed CMAKE_INSTALL_PREFIX

2011-09-20 Thread Alexander Dahl
Hello there, after using FindFOO.cmake scripts for our own projects for a long time I'm trying to migrate this to the "real" CMake approach of package configuration files. Therefor I read chapter 5.7 of the book »Mastering CMake« and two HowTos [1] [2] on the web merging all of these in some file

[CMake] integrating separate packages in one "superbuild" eclipse project

2011-07-01 Thread Alexander Dahl
Hello, we use CMake to build several libraries and applications for an embedded Linux target with a cross compile toolchain. Recently we separated this from one huge source tree to one standalone project for each library and application, each in its own Git repository. The classical approach for