Re: [CMake] A simple website to get started on new CMake projects

2017-06-02 Thread Klaim - Joël Lamotte
Well it's interesting but clearly you are providing help in only one kind of organisation. For example: - if you are doing a library that have public and private headers, it helps A LOT to have the public headers in an "include" directory - you don;t support this option; - you do not support

Re: [CMake] Installing a list of components

2016-08-18 Thread Klaim - Joël Lamotte
On 18 August 2016 at 17:32, Klaim - Joël Lamotte wrote: > The discussion led to a ticket for a potential feature: https://gitlab. > kitware.com/cmake/cmake/issues/15450 > Discussion ended there: http://public.kitware.com/pipermail/cmake/2015- > March/060120.html > http://c

Re: [CMake] Installing a list of components

2016-08-18 Thread Klaim - Joël Lamotte
On 18 August 2016 at 17:26, wrote: > I’m working on an application which consists of many different components > surrounding a common core. We ship multiple products from the same source > tree by adding and/or removing components from the output application > directory. > > > > Using CMake’s ins

Re: [CMake] Cannot set FOLDER property to an interface (header-only) target

2016-01-03 Thread Klaim - Joël Lamotte
with one cpp which was generated by a leak detection tool, therefore without leak detection activated the libraries don't generate anything and can't be linked to. Adding a custom cpp for static header-only libraries is a bit sad but looks like a simple way to do it. > Sincerely, Jakob >

Re: [CMake] Cannot set FOLDER property to an interface (header-only) target

2016-01-02 Thread Klaim - Joël Lamotte
ts you need to set the FOLDER property. > Sincerely, > Jakob > > > On 30 Dec 2015, at 20:52, Klaim - Joël Lamotte wrote: > > The following CMake script: > > cmake_minimum_required(VERSION 3.4) > > add_library( mylib INTERFACE ) > set_property( TARGE

Re: [CMake] Cannot set FOLDER property to an interface (header-only) target

2016-01-02 Thread Klaim - Joël Lamotte
On 31 December 2015 at 17:19, Nils Gladitz wrote: > On 31.12.2015 14:19, David Cole via CMake wrote: > >> I can't think of a reason why we would not whitelist the FOLDER >> property... Unless somebody else chimes in with one, perhaps you could >> submit a proposed patch to whitelist it? >> > > As

[CMake] Cannot set FOLDER property to an interface (header-only) target

2015-12-30 Thread Klaim - Joël Lamotte
The following CMake script: cmake_minimum_required(VERSION 3.4) add_library( mylib INTERFACE ) set_property( TARGET mylib PROPERTY FOLDER /some/dir ) Will trigger this error on configuration: CMake Error at CMakeLists.txt:4 (set_property): INTERFACE_LIBRARY targets may on

Re: [CMake] Protobuf Libraries not found on OS X

2015-09-05 Thread Klaim - Joël Lamotte
On 3 September 2015 at 19:48, Michael Jackson wrote: > I have compiled the Protocol Buffer library on OS X and I am using the > following CMake code to try and find the compiled libraries: > > find_package(Protobuf REQUIRED) > > > but when configuring I get the usual > > CMake Error: The followin

Re: [CMake] How to use lib from include_external_msproject

2015-08-20 Thread Klaim - Joël Lamotte
On 20 August 2015 at 17:33, Howard Rubin wrote: > I have a C++/CLI LIB (and DLL) that I generate with > include_external_msproject. I need to link to it from my C++ project, which > I’m trying to do with target_link_libraries. This gives the below error > message. Since I’m not creating it with a

Re: [CMake] Modern superbuild template including support for

2015-08-20 Thread Klaim - Joël Lamotte
On 21 August 2015 at 00:43, Klaim - Joël Lamotte wrote: > On 21 August 2015 at 00:35, Andrey Pokrovskiy > wrote: > >> And are you able to browse the source code of all your dependencies >> (that were downloaded)? >> > > I forgot to say that indeed if you use

Re: [CMake] Modern superbuild template including support for

2015-08-20 Thread Klaim - Joël Lamotte
On 21 August 2015 at 00:35, Andrey Pokrovskiy wrote: > And are you able to browse the source code of all your dependencies > (that were downloaded)? > I forgot to say that indeed if you use ExternalDependencies OR any non-source based way of linking your dependencies to your project, you don't g

Re: [CMake] Modern superbuild template including support for

2015-08-20 Thread Klaim - Joël Lamotte
rk on linux and I also have plans to change some dependencies and it's a major pain to update correctly. There were other issues but less important than that. So now I am trying to setup the something similar but with ExternalProject_Add() : https://bitbucket.org/klaim/netrush-dependencies-cma

Re: [CMake] Using ExternalProject_Add when CMakeFiles.txt is not in the root directory.

2015-07-17 Thread Klaim - Joël Lamotte
nother post :) > > Brad > > On Jul 14, 2015, at 5:14 PM, Klaim - Joël Lamotte > wrote: > > I am attempting to use ExternalDependencies_Add with the last Protobuf > version (v3.0.0) which is in alpha3 (I'm using the master branch > actually)[1]. > If you don&

Re: [CMake] ExternalProject_Add_StepDependencies parallel download/cloning

2015-07-17 Thread Klaim - Joël Lamotte
re the same download step with multiple downstream > configure/build/install commands (for example, ALL configurations for > ALL architectures, each combination of which is a separate EP_Add > call...) > > > HTH, > David C. > > Very interesting, I didn't think about th

[CMake] ExternalProject_Add_StepDependencies parallel download/cloning

2015-07-17 Thread Klaim - Joël Lamotte
I am setting up a bunch of dependencies using ExternalProject module. One of the dependencies, say A, needs another dependency B to be built before A can be built. ExternalProject_Add_StepDependencies solves the problem fine. However, I did it this way: ExternalProject_Add_StepDependencies( A con

[CMake] Using ExternalProject_Add when CMakeFiles.txt is not in the root directory.

2015-07-14 Thread Klaim - Joël Lamotte
I am attempting to use ExternalDependencies_Add with the last Protobuf version (v3.0.0) which is in alpha3 (I'm using the master branch actually)[1]. If you don't already know: contrary to previous Protobuf version, v3.x provides cmake scripts (and also makes CMake's FindProtobuf module unusuable i

Re: [CMake] How does :: actually works?

2015-06-19 Thread Klaim - Joël Lamotte
On 17 June 2015 at 22:58, Stephen Kelly wrote: > Klaim - Joël Lamotte wrote: > > > Thinking about boost, if package files works well with header-only > > libraries (which I > > suppose it should as long as the boost define header-only targets) > > then it would be

Re: [CMake] How does :: actually works?

2015-06-17 Thread Klaim - Joël Lamotte
On 17 June 2015 at 20:50, Stephen Kelly wrote: > Klaim - Joël Lamotte wrote: > > > I didn't realize at all that the FindPackage way is supposed to be > > obsolete now. > > It is not obsolete, but it is not a good approach (since CMake 2.6.0 > already) if the ups

Re: [CMake] How does :: actually works?

2015-06-17 Thread Klaim - Joël Lamotte
On 16 June 2015 at 11:49, Johannes Zarl-Zierl wrote: > On Monday 15 June 2015 22:43:41 you wrote: > > Just a last question: I assume that most find module scripts distributed > > with cmake are > > not using this feature at the moment, right? > > Sadly, no. > > > After reading your explaination I

Re: [CMake] How does :: actually works?

2015-06-15 Thread Klaim - Joël Lamotte
On 15 June 2015 at 18:20, Johannes Zarl-Zierl wrote: > On Monday 15 June 2015 16:40:10 Klaim - Joël Lamotte wrote: > > So far I didn't get what imported targets helps with, so I'm a bit lost > on > > the usefulness of "namespaces" > > but I am su

Re: [CMake] How does :: actually works?

2015-06-15 Thread Klaim - Joël Lamotte
On 13 June 2015 at 22:29, Alexander Neundorf wrote: > On Thursday, June 11, 2015 19:18:55 Klaim - Joël Lamotte wrote: > > On 11 June 2015 at 15:22, Johannes Zarl-Zierl < > johannes.zarl-zi...@jku.at> > > > > wrote: > > > Hi, > > > > > > &g

Re: [CMake] How does :: actually works?

2015-06-11 Thread Klaim - Joël Lamotte
On 11 June 2015 at 15:22, Johannes Zarl-Zierl wrote: > Hi, > > > I tried several times now to find documentation about how to define > > and use target names which seem to have namespaces, like Qt ones. > > > > For example: add_executable( MyProject::some_target ... ) > > AFAIK target namespaces

[CMake] How does :: actually works?

2015-06-10 Thread Klaim - Joël Lamotte
Hi, I tried several times now to find documentation about how to define and use target names which seem to have namespaces, like Qt ones. For example: add_executable( MyProject::some_target ... ) I can't find any documentation or even name for this. Is it considered a "namespace"? In any way I f

Re: [CMake] [cmake-developers] Virtual folders in Visual studio get expanded on reload

2015-06-02 Thread Klaim - Joël Lamotte
I did notice it quite a lot but I don't think CMake can do anything about it. I might be wrong though. On Tue, Jun 2, 2015 at 1:00 AM, Roman Wüger wrote: > Hi, > > I noticed that sometimes when a target is reloaded, that the virtual > folders and targets for the complete visual studio solution g

Re: [CMake] Using the FindBoost package

2015-05-09 Thread Klaim - Joël Lamotte
On Sat, May 9, 2015 at 12:22 PM, Klaim - Joël Lamotte wrote: > I might be wrong but maybe you mixed up BOOST_INCLUDEDIR > and Boost_INCLUDE_DIR? (note the additional underscore) > From the documentation the first one is read to deduce the second one. > To clarify: BOOST_INCLUDEDIR

Re: [CMake] Using the FindBoost package

2015-05-09 Thread Klaim - Joël Lamotte
I might be wrong but maybe you mixed up BOOST_INCLUDEDIR and Boost_INCLUDE_DIR? (note the additional underscore) >From the documentation the first one is read to deduce the second one. Their name is unfortunately very close. I never tried to use BOOST_INCLUDEDIR directly, I only set a BOOST_ROOT a

Re: [CMake] FindBoost.cmake issue while targeting 32-bit build on Linux 64-bit

2015-04-23 Thread Klaim - Joël Lamotte
I believe that this issue is with Boost not having a way to specify which target architecture is the build, which prevent any CMake script to be able to identify which build is installed. Assuming that the build arch is the same than the OS is not useful on Windows where most applications still nee

Re: [CMake] External Packages?

2015-04-12 Thread Klaim - Joël Lamotte
On Sun, Apr 12, 2015 at 3:48 PM, Ruslan Baratov via CMake wrote: > Take a look at this project: https://github.com/ruslo/hunter > > Interesting, it have some similarities with CPM: https://github.com/iauns/cpm -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ

Re: [CMake] Running custom executable

2015-04-06 Thread Klaim - Joël Lamotte
On Mon, Apr 6, 2015 at 8:47 PM, Daniel Dilts wrote: > I have a custom executable that does some codegen to produce an > enumeration and a couple of tables. I need this to be run against each > source file before actual compilation. It needs include directories and > macro definitions from the b

Re: [CMake] List all binaries associated with a target.

2015-03-24 Thread Klaim - Joël Lamotte
On Sun, Mar 22, 2015 at 1:22 PM, Roman Bolshakov wrote: > 2015-03-16 23:22 GMT+03:00 Klaim - Joël Lamotte : > >> Then you can invoke top-level cmake_install.cmake to install a subset >>> of your project: >>> DESTDIR=/destination/install/path cmake -DCOMPONEN

Re: [CMake] List all binaries associated with a target.

2015-03-24 Thread Klaim - Joël Lamotte
On Sun, Mar 22, 2015 at 12:49 PM, Roman Bolshakov wrote: > Unfortunately, if my understanding is correct, >> this code cannot work with external dependencies as they are not targets. > > > It should work with external dependencies which are imported targets. You > just need to check IMPORTED prop

Re: [CMake] List all binaries associated with a target.

2015-03-16 Thread Klaim - Joël Lamotte
On Sat, Mar 14, 2015 at 9:51 PM, Roman Bolshakov wrote: > Here's an example function which addresses 1. > It creates a string of generator expressions for direct and indirect > dependencies of a target recursively. > When all recursive invocations are done, it spits -deps > file in the CURRENT_BI

Re: [CMake] List all binaries associated with a target.

2015-03-16 Thread Klaim - Joël Lamotte
On Mon, Mar 16, 2015 at 7:48 PM, Stephen Kelly wrote: > Klaim - Joël Lamotte wrote: > > > I am looking for a (hopefully simple) way to do the following: > > 1. gather a list of paths of all the binaries associated with a target, > > that is all the linked dll/so a

Re: [CMake] List all binaries associated with a target.

2015-03-16 Thread Klaim - Joël Lamotte
On Mon, Mar 16, 2015 at 7:36 PM, Stephen Kelly wrote: > There might be space for a first class feature in cmake for 'make something > that looks like the install tree at build time'. Please file an issue to > track it. > > Thanks, > Done: http://public.kitware.com/Bug/view.php?id=15450 So there

Re: [CMake] List all binaries associated with a target.

2015-03-16 Thread Klaim - Joël Lamotte
On Mon, Mar 16, 2015 at 7:11 PM, Roman Bolshakov wrote: > > I'm not totally sure install() does exactly what I need. > > My use case is that I need to debug each executable in an installed-like > > context (with data), which imply that each time it is compiled it should > be installed too. > > Ac

Re: [CMake] List all binaries associated with a target.

2015-03-15 Thread Klaim - Joël Lamotte
hat it's always up to date while debugging. Now, I use post-build command (add_custom_command) to do this indeed but I didn't find a way yet to trigger install() a specific binary on post-build yet, but I suppose I just missed it so far. > Roman > > 2015-03-14 4:24 GMT+03:00 K

[CMake] List all binaries associated with a target.

2015-03-13 Thread Klaim - Joël Lamotte
I am looking for a (hopefully simple) way to do the following: 1. gather a list of paths of all the binaries associated with a target, that is all the linked dll/so and executable the target link or depend on. 2. copy these somewhere else. 3. take into account the build modes so that the right

Re: [CMake] Building for 64 bit with Visual Studio 2013

2015-02-05 Thread Klaim - Joël Lamotte
I think adding a simple check (fatal-error) on the value of CMAKE_SIZEOF_VOID_P in your cmake files would help the user realise that they are not using the right generator? -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FA

Re: [CMake] cmake-gui crash in Windows 8.1

2014-07-09 Thread Klaim - Joël Lamotte
On Fri, Jul 4, 2014 at 9:50 AM, Andrew Maclean wrote: > Hi All, > Has anyone noticed a problem with CMake 3.0 in Windows? > > I switched recently to CMake 3.0 for my project (uninstalled previous cmake, installed new cmake, changed cmake scripts version requirement to 3.0) I didn't not meet any s

Re: [CMake] What do Visual Studio users do so they can run/debug their programs when using 3rd party .dlls?

2014-05-26 Thread Klaim - Joël Lamotte
On Mon, May 26, 2014 at 5:08 PM, Dan Kegel wrote: > On Mon, May 26, 2014 at 8:04 AM, Klaim - Joël Lamotte > wrote: > > - Why can't I use the install command from CMake? My understanding is > that > > it's used to install the application in the system >

Re: [CMake] What do Visual Studio users do so they can run/debug their programs when using 3rd party .dlls?

2014-05-26 Thread Klaim - Joël Lamotte
My way of dealing with this problem is similar to other people here: 1. I have a separate Python post-build script designed to be driven through command line. This script read somewhere the list of direct binary dependencies of the target[1] and copy them in the output directory. The sc

Re: [CMake] CMake Tools for Visual Studio 1.1 RC1 Available

2014-01-29 Thread Klaim - Joël Lamotte
Looks like the right download page was http://cmaketools.codeplex.com/releases/view/117807 Installing now. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community.

Re: [CMake] CMake Tools for Visual Studio 1.1 RC1 Available

2014-01-29 Thread Klaim - Joël Lamotte
On Tue, Jan 28, 2014 at 2:32 AM, David Golub wrote: > I just put out the first release candidate of CMake Tools for Visual > Studio 1.1. This release will add support for CMake 2.8.12 and Visual > Studio 2013. It also contains a number of minor enhancements and bug > fixes. It is available for

Re: [CMake] The Visual Studio project file inclusion problems.

2013-07-15 Thread Klaim - Joël Lamotte
Hi, CMake 2.8.11 solves a lot of dependency tracking issues with normal CMake targets, which helps a lot! Unfortunately, the above issues I described months ago are still there. It wouldn't be a problem if I didn't need, for example, source versions of Protobuf and Intel TBB to work, which both d

Re: [CMake] Announcing CMake Tools for Visual Studio

2013-05-15 Thread Klaim - Joël Lamotte
On Wed, May 15, 2013 at 1:04 AM, David Golub wrote: > I’m pleased to announce the first release candidate of CMake Tools for > Visual Studio, an extension adding support for syntax highlighting and > IntelliSense in CMake code using Microsoft Visual Studio. The extension is > open source (distri

Re: [CMake] [boost][b2] Differenciate 32bit and 64 bit binaries when using CMake.

2013-04-16 Thread Klaim - Joël Lamotte
On Tue, Apr 16, 2013 at 3:16 PM, Andreas Haferburg wrote: > > I can't guarantee where the boost libraries are installed, that's why I > use FindBoost. > Just make the CMake error message clear, e.g. "Boost 1.50 expected to be > found in ". Most people know how to rename a directory. That's what

Re: [CMake] [Boost-users] [boost][b2] Differenciate 32bit and 64 bit binaries when using CMake.

2013-04-16 Thread Klaim - Joël Lamotte
On Tue, Apr 16, 2013 at 12:32 PM, Slava wrote: > > You build 64-bit stuff (including boost if you wish) in 64-bit > environment, 32-bit stuff (including boost if you wish) in a separate > 32-bit environment. The environment is native for build tools, so you need > no crosscompiling (-m32), no spec

Re: [CMake] [Boost-users] [boost][b2] Differenciate 32bit and 64 bit binaries when using CMake.

2013-04-16 Thread Klaim - Joël Lamotte
On Tue, Apr 16, 2013 at 9:15 AM, Slava wrote: > > In my experience finding/adapting packages for crosscompiling 64->32 is > much more troublesome than setting up 32-bit chroot and using it for 32-bit > builds. Sorry but I don't understand, certainly because I'm still a noob at linux stuffs. I do

Re: [CMake] Potential bug to set a working directory for test

2013-04-15 Thread Klaim - Joël Lamotte
On Thu, Apr 4, 2013 at 4:56 PM, Klaim - Joël Lamotte wrote: > I didn't file the ticket(s?) yet, I'm a bit pressed by time, but I'll do > it before tomorrow. Sorry for the delay, I did it today: http://www.cmake.org/Bug/view.php?id=14089 Joel Lamotte -- Powered by www.kit

Re: [CMake] [boost][b2] Differenciate 32bit and 64 bit binaries when using CMake.

2013-04-15 Thread Klaim - Joël Lamotte
On Thu, Oct 11, 2012 at 2:19 PM, Klaim - Joël Lamotte wrote: > My current understanding is that boost don't have a specific default lib > dir for different address models, which is the source of the problem as > FindBoost script can't rely on a protocol to find these lib file

Re: [CMake] Potential bug to set a working directory for test

2013-04-04 Thread Klaim - Joël Lamotte
On Thu, Apr 4, 2013 at 2:53 PM, Martin Weber wrote: > If your binary dir resides on a different drive than E:, the generated > command will not work. Remember, cd on windows does not change the drive. > The generated command should be > cd /D E:/projects... > No all the file manipulations happen

Re: [CMake] Potential bug to set a working directory for test

2013-04-01 Thread Klaim - Joël Lamotte
No feedback yet, so I suppose I should post a issue ticket. Joel Lamotte -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ F

[CMake] Potential bug to set a working directory for test

2013-03-27 Thread Klaim - Joël Lamotte
Hi, I'm using CMake 2.10.2 the VS2012(VC11) generator. I summed-up my problem in the last paragraph. I'm trying to do this: add_test( NAME ${TEST_PROJECT_NAME} WORKING_DIRECTORY ${TEST_WORKING_DIR} COMMAND ${TEST_PROJECT_NAME} ) In my current setup, I need ${TEST_WORKING_DIR} to be de

Re: [CMake] Static and DLL builds in single solution

2012-12-08 Thread Klaim - Joël Lamotte
For example: add_library( mylibStatic STATIC ${MYLIB_ALL_SOURCES} ) # generate the static version of the lib add_library( mylibDLL SHARED ${MYLIB_ALL_SOURCES} ) # generate the dll loaded at startup version of the same lib, same sources add_library( mylibExtension MODULE ${MYLIB_ALL_SOURCES} ) # g

Re: [CMake] The Visual Studio project file inclusion problems.

2012-10-25 Thread Klaim - Joël Lamotte
Sorry to bump this, but I would really like some feedback on either I'm being wrong or correct on these points? Thanks for your time. Joel Lamotte -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages o

Re: [CMake] cmake trouble

2012-10-22 Thread Klaim - Joël Lamotte
Hi, On Mon, Oct 22, 2012 at 5:35 PM, 张峰 wrote: > > 1.if i put "TARGET_LINK_LIBRARIES(fan test)" before ADD_EXECUTABLE > command,this does not work ,why?? > Because until yout call add_executable(), the target name doesn't exist. You have to use the target name as first parameter of target_link_

[CMake] The Visual Studio project file inclusion problems.

2012-10-20 Thread Klaim - Joël Lamotte
I'm use CMake 2.8.9. Here is a summary of my understanding of what problem occurs when you try to add a library that only have a visual studio project file, in your project that is based on CMake. I would like to have confirmations and also maybe some help about the global issues I didn't find a s

Re: [CMake] [boost][b2] Differenciate 32bit and 64 bit binaries when using CMake.

2012-10-11 Thread Klaim - Joël Lamotte
Júlio Hoffimann said: > > I don't know if i understood correctly, but you can set the library > directory by hand, please refer to > /usr/share/cmake-/Modules/FindBoost.cmake, in particular the > variable BOOST_LIBRARYDIR. On Thu, Oct 11, 2012 at 1:29 PM, Miller, Frank wrote: > A simple solut

Re: [CMake] [boost][b2] Differenciate 32bit and 64 bit binaries when using CMake.

2012-10-11 Thread Klaim - Joël Lamotte
Júlio Hoffimann said: > > I don't know if i understood correctly, but you can set the library > directory by hand, please refer to > /usr/share/cmake-/Modules/FindBoost.cmake, in particular the > variable BOOST_LIBRARYDIR. On Thu, Oct 11, 2012 at 1:29 PM, Miller, Frank wrote: > A simple solut

[CMake] [boost][b2] Differenciate 32bit and 64 bit binaries when using CMake.

2012-10-11 Thread Klaim - Joël Lamotte
I am having a problem with b2 on Windows using Visual Studio (2010 & 2012 but it is irrelevant): Until now I was building boost with b2 in a way that would first build 32 bit version in the default library directory, then the 64bit version in lib/64 . I wasn't using the 64bit version until this mor

Re: [CMake] Boost_DIR

2012-09-05 Thread Klaim - Joël Lamotte
I might be wrong but my understanding is that it's the other way arround: you provide Boost_DIR (root of your boost installation) and it finds the rest itself. I've been using it like that. I have a custom build of boost in a specific directory and an environnement variable Boost_DIR set to it. I

Re: [CMake] cmake + VS 2012

2012-09-04 Thread Klaim - Joël Lamotte
On Tue, Sep 4, 2012 at 1:16 PM, Biddiscombe, John A. wrote: > > Thanks. that’s good to know. > > (I suspect that because I do a lot of cmakelists.txt editing on large > projects that I get hit harder than most by the macro problem). > > > Maybe, also if you don't have very big RAM. Now, my

Re: [CMake] cmake + VS 2012

2012-09-04 Thread Klaim - Joël Lamotte
On Tue, Sep 4, 2012 at 11:20 AM, Biddiscombe, John A. wrote: > I had a lot of trouble with cmake and VS 2010 due to the IDE crashing when > projects were regenerated by cmake and having to click reload millions of > times. > > Can anyone tell me if things are better with visual studio 2012? I want

Re: [CMake] [Cmake] Retrieve all runtime dependencies

2012-09-03 Thread Klaim - Joël Lamotte
On Mon, Sep 3, 2012 at 6:45 PM, John Drescher wrote: > take a look at the GetPrerequisites cmake module. > Thanks, I didn't know about this. Joel Lamotte -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep m

[CMake] [Cmake] Retrieve all runtime dependencies

2012-09-03 Thread Klaim - Joël Lamotte
ld scripts to these binaries. The simpler alternative is to have such list hand-written outside of CMake scripts, making the information located at more than one locations. Joel Lamotte / Klaim -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/

Re: [CMake] Cmake 2.8.9 : finding boost library files

2012-08-15 Thread Klaim - Joël Lamotte
Okay I was intrigued and added Boost debug info in the CMake file of the project that is generating the initial error. I had this: find_package( Boost COMPONENTS system date_time filesystem chrono thread program_options log log_setup ) if( NOT Boost_FOUND ) message( "Boost was NOT foun

Re: [CMake] Cmake 2.8.9 : finding boost library files

2012-08-15 Thread Klaim - Joël Lamotte
I misread, it is in the version I use and don't fix the problem. I'm surprised nobody else have the problem. Here is the parts of the log related to Boost while generating the project: 1. There is a first find done in one CMakeLists.txt file: [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/M

Re: [CMake] Cmake 2.8.9 : finding boost library files

2012-08-15 Thread Klaim - Joël Lamotte
I forgot to add: I don't know if it is related to this last bugfix: http://public.kitware.com/Bug/view.php?id=13195 The problem is that i downloaded CMake 2.8.9 Win32 Installer about an hour ago, so I'm not sure if this bugfix is in or not - so I don't know if it fixes my problem. Joel Lamotte -

[CMake] Cmake 2.8.9 : finding boost library files

2012-08-15 Thread Klaim - Joël Lamotte
Hi, I just switch form CMake 2.8.8 to 2.8.9. The CMake files worked before. I'm using a (non-modified) build from source of Boost 1.50, finding it with FindBoost module. I'm using VS2011 RC on Win 7 64bit. (the project I generate isn't 64 bit though). Now I got this error: CMake Error: The follo

Re: [CMake] "UTILITY" library?

2012-08-08 Thread Klaim - Joël Lamotte
I apparently fixed the problem by using add_dependencies() instead of target_link_libraries() ... Klaim / Joel Lamotte -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake

[CMake] "UTILITY" library?

2012-08-07 Thread Klaim - Joël Lamotte
riginal project file, but I don't understand at all this error... Thanks for your attention. Klaim / Joël Lamotte. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the

Re: [CMake] CMake creates incompatible VS 2012 (VS 11) solution

2012-08-03 Thread Klaim - Joël Lamotte
I'm using CMake 2.8.8 to generate VS2012 RC projects in Win 7 (with last updates), I have no such problem. The only problems I have seems to have been fixed in the trunk for CMake 2.8.9 but I didn't try. I never seen the problem you present, but if you use the same version of CMake than me, then i

Re: [CMake] Visual Studio 2012 Beta: unable to compile individual files

2012-06-21 Thread Klaim - Joël Lamotte
Hi, I'm having the same problem with a project generated with CMake 2.8.8 to VS2010 open with VS2012 RC. On Wed, Jun 13, 2012 at 3:20 AM, Ben Medina wrote: > - Using the VS2010 generator, the project files have relative paths. > VS2012RC can load 2010 project files without modifying them. If I d

Re: [CMake] "Mastering CMake": which cmake version?

2012-06-15 Thread Klaim - Joël Lamotte
Thanks for the info. I just wanted to add that my interest in the book is not to understand the basics of CMake, but to get more info on how to manage big complex projects. I don't know for others but I tend to use CMake only on big projects only. Still I have a hard time sometime understanding ho

Re: [CMake] "Mastering CMake": which cmake version?

2012-06-05 Thread Klaim - Joël Lamotte
On Sun, May 6, 2012 at 4:58 PM, Rahul Garg wrote: > Hi. > > Just wondering, which version of CMake does "Mastering CMake 5th > edition" cover? > > I am greatly interested too by an answer to this question. Joel Lamotte -- Powered by www.kitware.com Visit other Kitware open-source projects at

[CMake] Visual Studio project groups not working after conversion

2012-04-30 Thread Klaim - Joël Lamotte
Hi, I used the following code to add protobuf project to my "solution": $-- script --$ if( MSVC ) include_external_msproject( libprotobuf ${CMAKE_CURRENT_SOURCE_DIR}/protobuf/vsprojects/libprotobuf.vcproj ) else() message( "No project file set for protobuf for thi

Re: [CMake] Add IDE-specific projects

2012-04-30 Thread Klaim - Joël Lamotte
On Mon, Apr 30, 2012 at 13:56, Michael Wild wrote: > You are looking for the MSVC [1] variable and the > include_external_msproject [2] command > > Thank you very much, I can't believe I missed this one! Joël Lamotte -- Powered by www.kitware.com Visit other Kitware open-source projects at ht

[CMake] Add IDE-specific projects

2012-04-29 Thread Klaim - Joël Lamotte
Hi, I'm having a hard time finding documentation about this: I have a library that provide IDE-specific project files, for example Visual Studio project files. Instead of writing CMake file for it, I just want to write in my CMakeFiles.txt that if the target compiler is MSVC, I want to include the

Re: [CMake] compiler flags visual studio

2012-01-24 Thread Klaim - Joël Lamotte
On Tue, Jan 24, 2012 at 14:33, Tom Deblauwe wrote: > Hello, > > What compiler flags do you need to enable if you want to use the > possibility to have something like this in your code: > > char Image[width(), height()]; > > This worked before with my compiler(visual studio 2005) but not with the >

Re: [CMake] Dependency on library in a separate branch

2011-06-26 Thread Klaim - Joël Lamotte
2011/6/27 Klaim - Joël Lamotte > > The full repostory is up to date now there: > http://code.google.com/p/art-of-sequence/source/browse/ > In tools directory, project A is aosdesigner, project B is aoslcpp, project > C is the test project under aoslcpp. > > In case it helps

Re: [CMake] Dependency on library in a separate branch

2011-06-26 Thread Klaim - Joël Lamotte
lcpp. I feel really dumb, I'm sure it's obvious but can't find why it don't work with aosdesigner project that now requires aoslcpp Klaim - Joël Lamotte ___ Powered by www.kitware.com Visit other Kitware open-source projects at

[CMake] Dependency on library in a separate branch

2011-06-26 Thread Klaim - Joël Lamotte
uld be the idiomatic CMake way of making A include+link B? The real code is open source so I can show you exactly what is my current setup if it helps (but I guess it's a noob question...) Klaim - Joël Lamotte ___ Powered by www.kitware.com Visi

Re: [CMake] Need some directions for non-trivial setup

2010-12-12 Thread Klaim
Didn't know about that, thanks for pointing it. I'll take a look at it. 2010/12/12 Alexander Neundorf > On Wednesday 08 December 2010, Klaim wrote: > > Thanks! I'll try this solution. > > > > By the way is there a way to list all projects found recursively in

Re: [CMake] Need some directions for non-trivial setup

2010-12-08 Thread Klaim
ly. You must explicitly say what CMakeLists.txt files in > sub-directories you want to read. > > > HTH, > David > > > On Wed, Dec 8, 2010 at 10:57 AM, Klaim wrote: > > Sorry, a part of my sentence got cut : > > I don't understand what makes, for example, the

Re: [CMake] Need some directions for non-trivial setup

2010-12-08 Thread Klaim
folders of folders where there is a CMakeLists.txt? On Wed, Dec 8, 2010 at 16:53, Klaim wrote: > I don't understand what makes, for example, the CLang project generate > different projects in the solution folder depending on the project folder > content in LLVM repo? Or maybe it's

Re: [CMake] Need some directions for non-trivial setup

2010-12-08 Thread Klaim
of folders where there is a CMakeLists.txt? On Wed, Dec 8, 2010 at 16:49, Marcel Loose wrote: > >>> On 8-12-2010 at 11:41, in message > >, > Klaim > wrote: > > Thanks! I'll try this solution. > > > > By the way is there a way to list all projects fo

Re: [CMake] Need some directions for non-trivial setup

2010-12-08 Thread Klaim
Thanks! I'll try this solution. By the way is there a way to list all projects found recursively in a folder? On Wed, Dec 8, 2010 at 10:20, Marcel Loose wrote: > information about XXX availabe to CMak ___ Powered by www.kitware.com Visit other Kitwar

Re: [CMake] Need some directions for non-trivial setup

2010-12-07 Thread Klaim
By the way, I'm using a set of test projects to play with CMake and understand clearly how it works, so I can experiment. On Tue, Dec 7, 2010 at 11:59, Klaim wrote: > > >> I would try to start with just one (base-)project, try to get >> everything in place and building

Re: [CMake] Need some directions for non-trivial setup

2010-12-07 Thread Klaim
> > I would try to start with just one (base-)project, try to get > everything in place and building the way you want it. If you're new to > CMake, that's really the way to go. Once you have this base-project > ready, you can think of starting a second project, using the > base-project as EXTERNAL_

Re: [CMake] Need some directions for non-trivial setup

2010-12-06 Thread Klaim
zle. I'm reading the other thread about how to make libraries works correctly with CMake and I think I don't know a lot about what's really required. Anyway, thanks for your help. >>> On 3-12-2010 at 13:13, in message > >, > Klaim > wrote: > > Thanks

Re: [CMake] Need some directions for non-trivial setup

2010-12-03 Thread Klaim
arcel Loose wrote: > >>> On 2-12-2010 at 16:12, in message > >, > Klaim > wrote: > > Hi! > > > > I'm currently trying to understand how to use CMake for a non-trivial > setup > > of multiple-projects-framework. I'm a beginner at CMake (as devel

[CMake] Need some directions for non-trivial setup

2010-12-02 Thread Klaim
be inspered of? Do you have some guidance to give me to setup all this? I tried to write this organisation but I'm clueless on how to gather and provide the paths of each projects... Once I understand how to do this I think I'll use this organisation for another big project too. Any