Re: [CMake] export() vs. install(export...)

2011-09-18 Thread Tim Gallagher
It does make sense and answered most of my questions. Maybe rather than asking more questions, I can make some suggestions based on what I'm trying to do and see what people think: 1. It would be nice to be able to register installation trees in the registry so the user does not have to provide

Re: [CMake] export() vs. install(export...)

2011-09-18 Thread Michael Wild
On 09/19/2011 01:14 AM, Tim Gallagher wrote: > Hi, > > I've been trying to figure out the exact differences between the > export() and install(export ...) functions and I have some questions > still. > > From the documentation, EXPORT() makes available the build tree for > a given target and pu

Re: [CMake] linker default library path /usr/local/lib on OSX

2011-09-18 Thread Cristobal Navarro
ok i get your point. mmm. In others words you need something equivalent to rpath command, im pretty sure cmake can handle this easily let me know if the following helps. have you tried adding more options to the find_library command ?? for example have you tried this (also, with the PATHS command

Re: [CMake] Getting the source file list for an executable fails

2011-09-18 Thread Michael Hertling
On 09/17/2011 03:01 PM, Campbell Barton wrote: > On Sat, Sep 17, 2011 at 10:36 AM, Michael Hertling > wrote: >> On 09/16/2011 03:24 AM, Campbell Barton wrote: >>> On Fri, Sep 16, 2011 at 11:11 AM, Michael Hertling >>> wrote: On 09/16/2011 02:59 AM, Campbell Barton wrote: > Hi, I would

[CMake] export() vs. install(export...)

2011-09-18 Thread Tim Gallagher
Hi, I've been trying to figure out the exact differences between the export() and install(export ...) functions and I have some questions still. >From the documentation, EXPORT() makes available the build tree for a given >target and puts the path to the build tree in the ~/.cmake/packages/ >d

Re: [CMake] Problem with option() when in subdirectory

2011-09-18 Thread Alexander Neundorf
On Sunday, September 18, 2011 02:42:49 PM Michael Wild wrote: > On 09/18/2011 02:32 PM, Alexander Neundorf wrote: > > On Sunday, September 18, 2011 02:15:54 PM David Demelier wrote: > >> Hello, > >> > >> I noticed that option() values are not checked when the option() command > >> is under a add_s

Re: [CMake] User generated header file

2011-09-18 Thread C. Meissa
On So, 18.09.2011 16:37:31, Perry Ismangil wrote: > On of our project, one of the header file included in the project is > deliberately missing, the user have to manually create it before > building for the first time. Do you want the user to manually add the header, or do you want cmake to create

Re: [CMake] User generated header file

2011-09-18 Thread Eric Noulard
2011/9/18 Perry Ismangil : > I'm converting Visual Studio project files to CMake. > > On of our project, one of the header file included in the project is > deliberately missing, the user have to manually create it before > building for the first time. > > When I tried this with cmake, it complaine

[CMake] User generated header file

2011-09-18 Thread Perry Ismangil
I'm converting Visual Studio project files to CMake. On of our project, one of the header file included in the project is deliberately missing, the user have to manually create it before building for the first time. When I tried this with cmake, it complained that it couldn't find the header file

Re: [CMake] linker default library path /usr/local/lib on OSX

2011-09-18 Thread amine bezzarga
The issue is not about finding the library at built time, event if my library is found in ${CMAKE_CURRENT_SOURCE_DIR}/Dependencies/IrrKLangAudioEngine/bin/macosx-gcc and after building is done, my app is still looking for the library in /usr/local/lib at runtime as you can see with the otools outpu

[CMake] Interface Builder xib to nib compilation for iOS

2011-09-18 Thread Daniel Dekkers
Hi, I'm targeting iOS (device and simulator) and setting up CMake to add the different resources needed in the bundle. The "xib" file is giving me some problems. If I take no further action, the iPhone/iPad simulator run fails with the error: Terminating app due to uncaught exception 'NSInternal

[CMake] linker default library path /usr/local/lib on OSX

2011-09-18 Thread amine bezzarga
Hello guys, I added a sound library to my project, So I first created a cmake module to find it MESSAGE(STATUS "Looking for IrrKlang...") find_library(IrrKlang_LIBRARIES irrKlang ${CMAKE_CURRENT_SOURCE_DIR}/Dependencies/IrrKLangAudioEngine/bin/macosx-gcc ) find_path(IrrKlang_INCLUDE_DIRS irrKl

Re: [CMake] Problem with option() when in subdirectory

2011-09-18 Thread Michael Wild
On 09/18/2011 02:32 PM, Alexander Neundorf wrote: > On Sunday, September 18, 2011 02:15:54 PM David Demelier wrote: >> Hello, >> >> I noticed that option() values are not checked when the option() command >> is under a add_subdirectory() target. >> >> Example: >> >> >> -- a's CMakeLists.txt -- >> p

Re: [CMake] Problem with option() when in subdirectory

2011-09-18 Thread Alexander Neundorf
On Sunday, September 18, 2011 02:15:54 PM David Demelier wrote: > Hello, > > I noticed that option() values are not checked when the option() command > is under a add_subdirectory() target. > > Example: > > > -- a's CMakeLists.txt -- > project(a C) > > set(BUILD_DEMOS OFF) > add_subdirectory(e

[CMake] Problem with option() when in subdirectory

2011-09-18 Thread David Demelier
Hello, I noticed that option() values are not checked when the option() command is under a add_subdirectory() target. Example: -- a's CMakeLists.txt -- project(a C) set(BUILD_DEMOS OFF) add_subdirectory(extern/b) -- extern/b's CMakeLists.txt -- project(b C) option(BUILD_DEMOS "Enable the

Re: [CMake] Rename unspecified component - how?

2011-09-18 Thread Eric Noulard
2011/9/18 Eric Noulard : > 2011/9/18 Kishore Jonnalagadda : >> On Sat, Sep 17, 2011 at 2:12 PM, Eric Noulard wrote: >>> 2011/9/17 Kishore Jonnalagadda : In my project I am using the default component for all binaries and a "dev" component for headers. But when I create packages

Re: [CMake] Rename unspecified component - how?

2011-09-18 Thread Eric Noulard
2011/9/18 Kishore Jonnalagadda : > On Sat, Sep 17, 2011 at 2:12 PM, Eric Noulard wrote: >> 2011/9/17 Kishore Jonnalagadda : >>> In my project I am using the default component for all binaries and a "dev" >>> component for headers. >>> >>> But when I create packages, it creates one called "Unspecif