Re: [CMake] Having difficulty with find_library()

2009-01-15 Thread Robert Dailey
On Thu, Jan 15, 2009 at 4:03 AM, Hendrik Sattler wrote: > It is kind of odd to test for the generator when the choice in fact depends > on > the compiler! What about e.g. Nmake? Well the TBB libraries are set up in such a way that they depend on specific versions of Visual Studio. How can I chec

Re: [CMake] Having difficulty with find_library()

2009-01-14 Thread Robert Dailey
On Wed, Jan 14, 2009 at 11:23 PM, Michael Jackson < mike.jack...@bluequartz.net> wrote: > I would try the following just to make sure it will find the library: > > find_library(TBB_LIBRARY >NAMES tbb >PATHS /ai32/vc9/lib ) > > Substitute the proper full path for in the pat

[CMake] Having difficulty with find_library()

2009-01-14 Thread Robert Dailey
Hi, I'm creating a Find module for Intel's TBB library and I can't get find_library to work properly. It's just not finding the library. The path to the library in question is */ai32/vc9/lib/tbb.lib* for the MSVC9 32-bit compiler. Am I doing something wrong? I've set the root path to the TBB libra

Re: [CMake] Confusion on how find_package works.

2009-01-14 Thread Robert Dailey
On Wed, Jan 14, 2009 at 9:51 PM, Robert Dailey wrote: > > > On Wed, Jan 14, 2009 at 4:20 PM, Miguel A. Figueroa-Villanueva < > migu...@ieee.org> wrote: > >> On Wed, Jan 14, 2009 at 5:54 PM, Andreas Pakulat wrote: >> > On 14.01.09 15:45:53, Robert Dailey wrote

Re: [CMake] Confusion on how find_package works.

2009-01-14 Thread Robert Dailey
On Wed, Jan 14, 2009 at 4:20 PM, Miguel A. Figueroa-Villanueva < migu...@ieee.org> wrote: > On Wed, Jan 14, 2009 at 5:54 PM, Andreas Pakulat wrote: > > On 14.01.09 15:45:53, Robert Dailey wrote: > >> On Wed, Jan 14, 2009 at 1:20 PM, Andreas Pakulat wrote: > >> >

Re: [CMake] Confusion on how find_package works.

2009-01-14 Thread Robert Dailey
On Wed, Jan 14, 2009 at 1:20 PM, Andreas Pakulat wrote: > If you look at the cmake docs, then you'll find out that nothing in there > states that wildcards are allowed. Hence I'd assume that wildcards are not > supported. > > Also you only need to set one of the two for find_path to use the > dir

Re: [CMake] Confusion on how find_package works.

2009-01-14 Thread Robert Dailey
On Wed, Jan 14, 2009 at 6:22 AM, Andreas Pakulat wrote: > On 13.01.09 19:06:13, Robert Dailey wrote: > > Trust me, I've read this already. It makes no sense to me. How am I > supposed > > to know that any of the variables it is checking have been set? > > Not sure wh

Re: [CMake] Confusion on how find_package works.

2009-01-13 Thread Robert Dailey
find_path( NAMES name PATHS paths... NO_DEFAULT_PATH) > find_path( NAMES name) > Once one of the calls succeeds the result variable will be set and stored > in the cache so that no call will search again. > > When searching for frameworks, if the file is specified as A/b.h, then

[CMake] Confusion on how find_package works.

2009-01-13 Thread Robert Dailey
Hi, I'm currently looking at FindZLIB.cmake trying to understand how it works and I just can't seem to make sense of it. I have a few questions: 1. How does find_path() know where to look? Where is it looking? Where is it told where to look? 2. Question #1 with find_library() as well. I

[CMake] Strip a prefix from a string

2009-01-09 Thread Robert Dailey
Hi, Suppose I have a string called "foobar". I want to be able to strip a specific prefix from that string and have the suffix returned to me. So if I wanted to strip "foo", I would get "bar" back. What's the easiest way of doing this in CMake? ___ CMake

Re: [CMake] Add configuration support to include_directories()

2008-12-23 Thread Robert Dailey
On Tue, Dec 23, 2008 at 2:40 PM, Michael Jackson < mike.jack...@bluequartz.net> wrote: > > > On Dec 23, 2008, at 1:05 PM, Robert Dailey wrote: > > Mike Jackson wrote >>> >> > I am just thinking out loud here so if I am totally off the mark just >>

Re: [CMake] Add configuration support to include_directories()

2008-12-23 Thread Robert Dailey
On Tue, Dec 23, 2008 at 11:10 AM, Michael Jackson < mike.jack...@bluequartz.net> wrote: > n Dec 23, 2008, at 11:56 AM, Bill Hoffman wrote: > > Robert Dailey wrote: >> >> For debug: C:\foo\bar-d >>> For release: C:\foo\bar >>> Note that the text &q

Re: [CMake] Add configuration support to include_directories()

2008-12-23 Thread Robert Dailey
On Tue, Dec 23, 2008 at 10:23 AM, Bill Hoffman wrote: > Robert Dailey wrote: > >> Why I need this feature is irrelevant, the important thing is that I need >> the feature. I know a couple of other people who've posted on various other >> mailing lists tha

Re: [CMake] Add configuration support to include_directories()

2008-12-23 Thread Robert Dailey
is problem other than using include directories, but this is the most trivial and simplified way. On Tue, Dec 23, 2008 at 5:00 AM, cyril_wobow wrote: > Philip Lowman a écrit : > >> On Mon, Dec 22, 2008 at 11:27 PM, Robert Dailey > rcdai...@gmail.com>> wrote: >> >&g

Re: [CMake] Add configuration support to include_directories()

2008-12-22 Thread Robert Dailey
On Mon, Dec 22, 2008 at 9:23 PM, Bill Hoffman wrote: > > Investigate CMAKE_CFG_INTDIR. >> >> >> I believe for Visual Studio output, this will be $(OutDir), right? If this >> is the case, this is a visual studio environment variable that will have no >> meaning when used in CMake scripts. >> >>

Re: [CMake] Add configuration support to include_directories()

2008-12-22 Thread Robert Dailey
On Mon, Dec 22, 2008 at 5:58 PM, Tyler Roscoe wrote: > On Mon, Dec 22, 2008 at 05:55:10PM -0600, Robert Dailey wrote: > > I apologize, but I don't see how this could possibly work for visual > studio > > output. It seems like you'd have 1 set of visual studio projects

Re: [CMake] Add configuration support to include_directories()

2008-12-22 Thread Robert Dailey
set (CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of the build, > options are: None Debug Release") > > endif (NOT CMAKE_BUILD_TYPE) > > On Mon, Dec 22, 2008 at 3:45 AM, Robert Dailey wrote: > >> Will this work in Visual Studio? How does CMake know to place the

Re: [CMake] Add configuration support to include_directories()

2008-12-21 Thread Robert Dailey
UAL "Release") > > include_directories (C:\includes\foo\release) > > endif (CMAKE_BUILD_STATUS STREQUAL "Debug") > > On Thu, Dec 18, 2008 at 11:13 PM, Robert Dailey wrote: > >> Would it be possible to add configuration support to >> include_director

[CMake] Add configuration support to include_directories()

2008-12-18 Thread Robert Dailey
Would it be possible to add configuration support to include_directories()? For example, some include directories I only want to show up in debug, some in release, and some in all configurations. I imagine this would look a lot like target_link_libraries(): include_directories( C:\includes\foo

Re: [CMake] Shared Libraries & dependencies

2008-12-11 Thread Robert Dailey
On Thu, Dec 11, 2008 at 3:05 PM, Andreas Pakulat wrote: > On 11.12.08 14:50:45, Robert Dailey wrote: > > To elaborate, I'm specifically getting this error message: > > > > CMake Error at vfx/CMakeLists.txt:74 (install): > > install TARGETS given target "me

Re: [CMake] Shared Libraries & dependencies

2008-12-11 Thread Robert Dailey
On Thu, Dec 11, 2008 at 2:44 PM, Robert Dailey wrote: > On Thu, Dec 11, 2008 at 12:19 PM, Andreas Pakulat wrote: > >> On 11.12.08 10:55:42, Robert Dailey wrote: >> > If I have a project in CMake that builds a shared library, what will >> happen >> > if I

Re: [CMake] Shared Libraries & dependencies

2008-12-11 Thread Robert Dailey
On Thu, Dec 11, 2008 at 12:19 PM, Andreas Pakulat wrote: > On 11.12.08 10:55:42, Robert Dailey wrote: > > If I have a project in CMake that builds a shared library, what will > happen > > if I set this shared library project as a parameter in > > target_link_libraries() f

[CMake] Shared Libraries & dependencies

2008-12-11 Thread Robert Dailey
Hi, If I have a project in CMake that builds a shared library, what will happen if I set this shared library project as a parameter in target_link_libraries() for an executable project? What will happen to the DLL file? Will CMake copy it to the executable output directory automatically, or must I

Re: [CMake] Question about install()

2008-12-10 Thread Robert Dailey
I did a little more research into CMAKE_CFG_INTDIR and it's a little bit weird. First of all, it uses $(OutDir) in visual studio instead of $(IntDir) as the documentation says it will use. Secondly, the linker output file in Visual Studio is set as an absolute path instead of using $(OutDir). If

Re: [CMake] Question about install()

2008-12-10 Thread Robert Dailey
On Wed, Dec 10, 2008 at 8:23 AM, David Cole <[EMAIL PROTECTED]> wrote: > On Tue, Dec 9, 2008 at 9:18 PM, Bill Hoffman <[EMAIL PROTECTED]>wrote: > >> ... If you did not want to use python, you could use cmake >> -DCONFIG=${CMAKE_CFG_INTDIR} -E myscript.cmake... >> > > Make that: > cmake

Re: [CMake] Question about install()

2008-12-09 Thread Robert Dailey
On Tue, Dec 9, 2008 at 4:33 PM, Robert Dailey <[EMAIL PROTECTED]> wrote: > On Tue, Dec 9, 2008 at 4:25 PM, Bill Hoffman <[EMAIL PROTECTED]>wrote: > >> Robert Dailey wrote: >> >> >>> After much research, I've found out that CMake cannot provide a c

Re: [CMake] Question about install()

2008-12-09 Thread Robert Dailey
On Tue, Dec 9, 2008 at 4:25 PM, Bill Hoffman <[EMAIL PROTECTED]>wrote: > Robert Dailey wrote: > > >> After much research, I've found out that CMake cannot provide a custom >> command (Post build event) to a specific configuration in the case where >

Re: [CMake] Question about install()

2008-12-09 Thread Robert Dailey
On Tue, Dec 9, 2008 at 11:05 AM, Robert Dailey <[EMAIL PROTECTED]> wrote: > Michael, > > Is there a way to call add_custom_command() on a specific configuration for > a specific target? If I can do this then I can use CMAKE to copy the files > appropriately and your method

Re: [CMake] file(GLOB) for directories?

2008-12-09 Thread Robert Dailey
On Tue, Dec 9, 2008 at 12:30 PM, David Cole <[EMAIL PROTECTED]> wrote: > "file(GLOB" with globbing expression of "*" and then iterate the results > and ask "if(IS_DIRECTORY" on each result... Thanks, this works perfectly! ___ CMake mailing list CMake@c

[CMake] file(GLOB) for directories?

2008-12-09 Thread Robert Dailey
How would I use file( GLOB ) to get a list of directories instead of files? ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Question about install()

2008-12-09 Thread Robert Dailey
Michael, Is there a way to call add_custom_command() on a specific configuration for a specific target? If I can do this then I can use CMAKE to copy the files appropriately and your method would work perfectly. Thanks for your tme. ___ CMake mailing li

Re: [CMake] Question about install()

2008-12-08 Thread Robert Dailey
On Mon, Dec 8, 2008 at 11:09 AM, Michael Jackson < [EMAIL PROTECTED]> wrote: > Someone created some cmake code to do just this exact thing earlier this > year. I have been trying to hunt it down in the archives but just keep > coming up empty. I have some code for an "install" rule. You could put

Re: [CMake] Question about install()

2008-12-08 Thread Robert Dailey
On Mon, Dec 8, 2008 at 10:49 AM, Hendrik Sattler <[EMAIL PROTECTED]>wrote: > How do you link against them if you do not know the name? Do you use > that special auto-linking feature of MSVC? You specify them as library dependencies on the command line. For the import libraries, I simply use targ

Re: [CMake] Question about install()

2008-12-08 Thread Robert Dailey
On Mon, Dec 8, 2008 at 4:13 AM, Hendrik Sattler <[EMAIL PROTECTED]>wrote: > Robert Dailey schrieb: > > Thanks for clarifying. Everything works now, however this doesn't really > > solve my problem. See, I need to copy shared library files over > differently > >

Re: [CMake] Question about install()

2008-12-07 Thread Robert Dailey
On Sun, Dec 7, 2008 at 3:39 PM, Michael Jackson <[EMAIL PROTECTED] > wrote: > Mine was run on OS X using a Makefile. If I use Xcode I would probably get > something else. I use that exact same call on windows and VS 7,8,9 will all > still use the "Debug" or "Release" directories based on the confi

Re: [CMake] Question about install()

2008-12-07 Thread Robert Dailey
On Sun, Dec 7, 2008 at 1:05 PM, Michael Jackson <[EMAIL PROTECTED] > wrote: > # > project(test) > SET (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/Bin > CACHE PATH > "Single Directory for all executables" > ) > message(STATUS "CMAKE_RUNTIME_OUTPUT_DIRECTORY: > ${CMAKE_RUNTI

Re: [CMake] Question about install()

2008-12-07 Thread Robert Dailey
On Sun, Dec 7, 2008 at 7:01 AM, Michael Jackson <[EMAIL PROTECTED] > wrote: > There are a few variables that control where the final executables, > libraries and archives are created. > > CMAKE_RUNTIME_OUTPUT_DIRECTORY > CMAKE_LIBRARY_OUTPUT_DIRECTORY > CMAKE_ARCHIVE_OUTPUT_DIRECTORY > >•

[CMake] Question about install()

2008-12-06 Thread Robert Dailey
Hi, I have a couple of DLL files I want to copy to my executable's directory as a post-build event in the CMake-generated visual studio project files. I know I have to use install() for this, however I'm not sure how I can tell install() to copy these DLL files to the directory containing the comp

Re: [CMake] Building out of source

2008-12-05 Thread Robert Dailey
On Fri, Dec 5, 2008 at 2:37 PM, David Cole <[EMAIL PROTECTED]> wrote: > What is the output? That should definitely work. I do it all the time with > Visual Studio... > Is this Vista? (I use XP and Vista, Vista has more seemingly random "file > can't be created/deleted" problems) > Are you running

Re: [CMake] Building out of source

2008-12-05 Thread Robert Dailey
On Fri, Dec 5, 2008 at 12:44 PM, David Cole <[EMAIL PROTECTED]> wrote: > They are placed in the current directory. Run it from another directory and > then give the path to the source tree, as in: > checkout source tree to "source" directory > mkdir build > cd build > cmake -G "Unix Makefiles" ../

[CMake] Building out of source

2008-12-05 Thread Robert Dailey
Hi, Instead of using the GUI frontend for CMake on windows, I'm choosing to use the command line directly (Don't ask why). How can I specify the directory for which the target files are placed when I run "cmake -G"? Right now all of the vcproj files and cache are being placed in the same directori

Re: [CMake] Forcing CMake to place targets in directories?

2008-12-05 Thread Robert Dailey
On Fri, Dec 5, 2008 at 10:48 AM, David Cole <[EMAIL PROTECTED]> wrote: > The target name is the name given as the first argument to ADD_LIBRARY, > ADD_EXECUTABLE or ADD_CUSTOM_TARGET. > CMake uses the target name to create the name of the vcproj files. > > By default, the name of the library or ex

Re: [CMake] Output directory

2008-12-05 Thread Robert Dailey
On Mon, Nov 24, 2008 at 10:34 AM, Ioan Calin Borcoman <[EMAIL PROTECTED]>wrote: > I dump all my apps in the CMAKE_BUILD_DIR with: > > set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}) Thanks for your response. I'm having a hard time understanding how this works. My project structure looks like

Re: [CMake] Forcing CMake to place targets in directories?

2008-12-05 Thread Robert Dailey
tudio 2008. Can someone help me understand the purpose of OUTPUT_NAME if I am mistaken? On Thu, Dec 4, 2008 at 10:32 PM, Mike Jackson <[EMAIL PROTECTED]>wrote: > Nope. Sorry. > > Sent from my iPod > > On Dec 4, 2008, at 22:55, "Robert Dailey" <[EMAIL PROTECTED

Re: [CMake] Forcing CMake to place targets in directories?

2008-12-04 Thread Robert Dailey
source tree instead of using a > dedicated build directory? > > To answer your code you are setting the output directory of where the > executable will be placed in a directory called "test_projects" at the > top level of your build tree. > > Mike Jackson > > > O

[CMake] Forcing CMake to place targets in directories?

2008-12-04 Thread Robert Dailey
Hi, I'm trying to use set_target_properties() to make CMake place generated vcproj files in a subdirectory of ${CMAKE_CURRENT_SOURCE_DIR}. This isn't working and I'm not sure what I'm doing wrong. Below is what I'm doing: set( test_project_name ${project_name}_test_${test_name} )

Re: [CMake] source_group() and solution directories

2008-12-04 Thread Robert Dailey
On Thu, Dec 4, 2008 at 4:48 PM, <[EMAIL PROTECTED]> wrote: > > Is it possible to have source_group() place files into > > a "solution directory"? This would be a folder directly > > under the solution instead of inside of a project. > > I'm confused, because I don't think of SOURCE_GROUP() as > pl

Re: [CMake] Question about transitive dependencies

2008-12-04 Thread Robert Dailey
On Thu, Dec 4, 2008 at 4:20 PM, Bill Hoffman <[EMAIL PROTECTED]>wrote: > Robert Dailey wrote: > > On Thu, Dec 4, 2008 at 4:06 PM, Alexander Neundorf < >> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: >> >>But, if you do in cmake: >

Re: [CMake] Question about transitive dependencies

2008-12-04 Thread Robert Dailey
On Thu, Dec 4, 2008 at 4:06 PM, Alexander Neundorf <[EMAIL PROTECTED]>wrote: > But, if you do in cmake: > target_link_libraries(staticLibB staticLibA) > this will not really link (as it would for a shared lib), but it will > nevertheless keep track of the dependencies. > So when liking > target_li

Re: [CMake] Question about transitive dependencies

2008-12-04 Thread Robert Dailey
On Thu, Dec 4, 2008 at 3:47 PM, David Cole <[EMAIL PROTECTED]> wrote: > I think you're looking at Visual Studio project dependencies and not link > dependencies. It should not build *without* target_link_libraries calls. > They are necessary to get correct linker command lines. add_dependencies >

Re: [CMake] Question about transitive dependencies

2008-12-04 Thread Robert Dailey
On Thu, Dec 4, 2008 at 3:38 PM, Bill Hoffman <[EMAIL PROTECTED]>wrote: > Robert Dailey wrote: > >> Hi, >> >> Currently I have 3 projects named A, B, and C. A and B are both static >> libraries, and C is an executable. B depends on A, and C depends on B via >

[CMake] Question about transitive dependencies

2008-12-04 Thread Robert Dailey
Hi, Currently I have 3 projects named A, B, and C. A and B are both static libraries, and C is an executable. B depends on A, and C depends on B via add_dependencies(). When I generate a visual studio 9 project from this setup, how will the libraries be linked? The way I want this to work is for C

[CMake] source_group() and solution directories

2008-12-04 Thread Robert Dailey
Hi, Is it possible to have source_group() place files into a "solution directory"? This would be a folder directly under the solution instead of inside of a project. ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Can't get include() to work!

2008-12-04 Thread Robert Dailey
On Thu, Dec 4, 2008 at 6:53 AM, Bill Hoffman <[EMAIL PROTECTED]>wrote: > Robert Dailey wrote: > > >> The problem isn't about MAC line endings not working. I could care less >> about line ending requirements, I'll go with whatever works. The main >> probl

Re: [CMake] Can't get include() to work!

2008-12-03 Thread Robert Dailey
On Wed, Dec 3, 2008 at 8:41 PM, Bill Hoffman <[EMAIL PROTECTED]>wrote: > http://en.wikipedia.org/wiki/End-of-line > > "* LF:Multics, Unix and Unix-like systems (GNU/Linux, AIX, Xenix, > Mac OS X, FreeBSD, etc.), BeOS, Amiga, RISC OS, and others >* CR+LF: DEC RT-11 and most other early

Re: [CMake] Can't get include() to work!

2008-12-03 Thread Robert Dailey
On Wed, Dec 3, 2008 at 2:53 PM, Bill Hoffman <[EMAIL PROTECTED]>wrote: > Found it... > > The file has mac format line endings. If I change it to unix or windows > line feeds it works fine. > > The mac file format must fool the parser into only reading one line of the > file and thinking that it i

Re: [CMake] Can't get include() to work!

2008-12-03 Thread Robert Dailey
On Wed, Dec 3, 2008 at 2:33 PM, Bill Hoffman <[EMAIL PROTECTED]>wrote: > Seems to be the only thing in the file. Maybe it would help if you posted > utility.cmake... It's attached. utility.cmake Description: Binary data ___ CMake mailing list CMake@

Re: [CMake] Can't get include() to work!

2008-12-03 Thread Robert Dailey
On Wed, Dec 3, 2008 at 2:19 PM, Bill Hoffman <[EMAIL PROTECTED]>wrote: > Robert Dailey wrote: > >> On Wed, Dec 3, 2008 at 1:55 PM, Bill Hoffman <[EMAIL PROTECTED]> [EMAIL PROTECTED]>> wrote: >> >>Did you try the --trace? Maybe a spelling error?

Re: [CMake] Can't get include() to work!

2008-12-03 Thread Robert Dailey
On Wed, Dec 3, 2008 at 1:55 PM, Bill Hoffman <[EMAIL PROTECTED]>wrote: > Did you try the --trace? Maybe a spelling error? Please post a complete > small example that shows the problem if none of that helps. Below is the relevant portion of the output from --trace. It's a bit hard to read, but

Re: [CMake] Can't get include() to work!

2008-12-03 Thread Robert Dailey
On Wed, Dec 3, 2008 at 1:18 PM, Bill Hoffman <[EMAIL PROTECTED]>wrote: > Maybe it finds the wrong utility.cmake file? > > Try adding some message("here") type stuff to make sure the correct files > are being loaded. With cmake 2.6.2 you can run cmake --trace to see all the > files and commands as

Re: [CMake] Can't get include() to work!

2008-12-03 Thread Robert Dailey
Well, good news and bad news on this subject. The good news is that I managed to get my includes working in my initial case. I had my includes.cmake file in the wrong directory [?] The bad news is now I'm having another issue with include(), and this time I DO have my cmake files in the correct d

Re: [CMake] More problems with list()...

2008-12-03 Thread Robert Dailey
On Wed, Dec 3, 2008 at 11:05 AM, Michael Jackson < [EMAIL PROTECTED]> wrote: > Working from some of the Boost CMake implementations if you are trying to > create macros that take any number of arguments with some of them being > optional then here is some code that you might be interested in. > >

Re: [CMake] More problems with list()...

2008-12-03 Thread Robert Dailey
On Wed, Dec 3, 2008 at 10:42 AM, Alexander Neundorf <[EMAIL PROTECTED] > wrote: > I think ARGN and ARGV are handled in a special way, so try if turning it > into > a normal variable works, something like > > set(tmp ${ARGN}) > list( GET tmp 0 component_dependencies ) Wow, that actually works. Th

[CMake] More problems with list()...

2008-12-03 Thread Robert Dailey
Hi, I have the following macro: macro( library_component project_name ) if( ${ARGC} EQUAL 2 ) list( GET ARGN 0 component_dependencies ) endif() endmacro() I call the macro like this: library_component( myProjectName item1 ) The conditional in the macro above checks to see if th

Re: [CMake] list( LENGTH ) problem

2008-12-03 Thread Robert Dailey
On Tue, Dec 2, 2008 at 3:00 PM, Alexander Neundorf <[EMAIL PROTECTED]>wrote: > It expects a variable which holds a list: > > set(myList foo bar) > list( LENGTH myList listlen ) > message( ${listlen} ) > > (didn't test or check docs, but I think that should be it) Why did you do: list( LENGTH my

[CMake] list( LENGTH ) problem

2008-12-02 Thread Robert Dailey
Hi, I execute the following CMake code: list( LENGTH "foo;bar" listlen ) message( ${listlen} ) However, this results in the value "0" to be printed. I expect this to print "2". What am I doing wrong? ___ CMake mailing list CMake@cmake.org http://www.cm

Re: [CMake] Can't get include() to work!

2008-12-01 Thread Robert Dailey
On Mon, Dec 1, 2008 at 9:53 PM, Philip Lowman <[EMAIL PROTECTED]> wrote: > include( ${CMAKE_CURRENT_SOURCE_DIR}/includes.cmake) > should also work. > CMAKE_MODULE_PATH may also help you if you have a lot of includes. > > http://www.vtk.org/Wiki/CMake_Useful_Variables > I definitely tried this (us

[CMake] Can't get include() to work!

2008-12-01 Thread Robert Dailey
For some reason I cannot get include() to work. In a CMakeLists.txt of mine (not the root CMakeLists.txt) I call the following: cmake_minimum_required( VERSION 2.6 ) include( includes.cmake ) project( vfx ) And I have a file called includes.cmake in the same directory containing the CMakeLists.t

Re: [CMake] source_group(): Which project is it added to?

2008-12-01 Thread Robert Dailey
On Mon, Dec 1, 2008 at 12:25 PM, cyril_wobow <[EMAIL PROTECTED]> wrote: > Robert Dailey a écrit : > >> That is indeed how I would expect it to work, but that's not what is >> happening. Below is the actual CMake code I'm using to generate projects: >> &g

Re: [CMake] source_group(): Which project is it added to?

2008-12-01 Thread Robert Dailey
On Mon, Dec 1, 2008 at 10:52 AM, cyril_wobow <[EMAIL PROTECTED]> wrote: > It's my understanding that you are trying to declare two "solutions" p1 and > p2 (using visual studio's terminology). > The source_group() calls affects the next "project" declaration (which is > done with add_executable() o

Re: [CMake] source_group(): Which project is it added to?

2008-12-01 Thread Robert Dailey
On Tue, Nov 25, 2008 at 1:39 PM, Robert Dailey <[EMAIL PROTECTED]> wrote: > I'm having an issue right now where I'm trying to setup 2 projects in 1 > CMakeLists.txt file. Basically what I do is: > > project( p1 ) > add_executable() > > project( p2 ) >

Re: [CMake] Invoking "make" with CMake scripts?

2008-12-01 Thread Robert Dailey
On Mon, Dec 1, 2008 at 10:21 AM, Hendrik Sattler <[EMAIL PROTECTED]>wrote: > Robert Dailey schrieb:> Well on Linux this would be trivial, but as I said > on Windows doing this > > could take hours, even if I do provide a simple package they can extract > to > > so

Re: [CMake] Invoking "make" with CMake scripts?

2008-12-01 Thread Robert Dailey
On Mon, Dec 1, 2008 at 9:54 AM, Hendrik Sattler <[EMAIL PROTECTED]>wrote: > I would keep this separate. You only need to setup the environment once. > This is a completely different task then the actual development. > Additionally: why not provide one package for your developers that they > only h

Re: [CMake] Invoking "make" with CMake scripts?

2008-11-30 Thread Robert Dailey
On Sat, Nov 29, 2008 at 3:52 PM, Mike Arthur <[EMAIL PROTECTED]> wrote: > > The typical way this is handled in both CMake and generally is that you > rely > on the builder of your sourcecode to have the dependencies already > installed > and then use Find* modules to determine if the libraries are

Re: [CMake] Invoking "make" with CMake scripts?

2008-11-28 Thread Robert Dailey
On Thu, Nov 27, 2008 at 2:26 PM, Alexander Neundorf <[EMAIL PROTECTED] > wrote: > Well, it depends on how complex the APR build process is, how good you know > it > and how good you are with cmake :-) > > You need to convert all necessary configure checks to cmake, which can take > some time. APR

Re: [CMake] How to make FILE() append to the list of files?

2008-11-27 Thread Robert Dailey
On Thu, Nov 27, 2008 at 2:31 PM, Alexander Neundorf <[EMAIL PROTECTED] > wrote: > On Thursday 27 November 2008, Eric Noulard wrote: > > 2008/11/27 Robert Dailey <[EMAIL PROTECTED]>: > > >> find . -name "*.c" > source_files.txt > > >> ed

Re: [CMake] How to make FILE() append to the list of files?

2008-11-26 Thread Robert Dailey
On Wed, Nov 26, 2008 at 7:27 PM, Bill Hoffman <[EMAIL PROTECTED]>wrote: > Robert Dailey wrote: > >> Hi, >> >> I have about 20 directories that contain source files. However, the FILE() >> call I make to each directory will have a different glob expression. I

[CMake] How to make FILE() append to the list of files?

2008-11-26 Thread Robert Dailey
Hi, I have about 20 directories that contain source files. However, the FILE() call I make to each directory will have a different glob expression. I need to be able to do FILE( GLOB . ) about 20 times and each time have it append to the existing variable I give it. Is this possible? What woul

Re: [CMake] Invoking "make" with CMake scripts?

2008-11-26 Thread Robert Dailey
On Wed, Nov 26, 2008 at 5:41 PM, Michael Jackson < [EMAIL PROTECTED]> wrote: > > On Nov 26, 2008, at 6:12 PM, Robert Dailey wrote: > > On Wed, Nov 26, 2008 at 1:15 PM, Javier Gonzalez <[EMAIL PROTECTED]> >> wrote: >> Robert Dailey wrote: >> >

Re: [CMake] Invoking "make" with CMake scripts?

2008-11-26 Thread Robert Dailey
On Wed, Nov 26, 2008 at 1:15 PM, Javier Gonzalez <[EMAIL PROTECTED]>wrote: > Robert Dailey wrote: > > Hi, > > > > My application currently has a dependency on the APR library, which > > uses linux make scripts to build it. Since I'm using CMake for my own >

[CMake] Invoking "make" with CMake scripts?

2008-11-26 Thread Robert Dailey
Hi, My application currently has a dependency on the APR library, which uses linux make scripts to build it. Since I'm using CMake for my own project, how can I setup APR to build using CMake? The APR libraries must be built before my application. I'm not sure how to handle this situation. It woul

Re: [CMake] Unicode in Visual Studio projects

2008-11-26 Thread Robert Dailey
On Wed, Nov 26, 2008 at 11:51 AM, KSpam <[EMAIL PROTECTED]> wrote: > On Wednesday 26 November 2008 10:25:28 Robert Dailey wrote: > > Well I could probably define _UNICODE on the command line, right? But if > I > > do this it doesn't exactly undefine _MBCS does

Re: [CMake] Unicode in Visual Studio projects

2008-11-26 Thread Robert Dailey
On Wed, Nov 26, 2008 at 11:15 AM, Mike Arthur <[EMAIL PROTECTED]> wrote: > On Wednesday 26 November 2008 16:54:13 Robert Dailey wrote: > > > I noticed when I run CMake for Visual Studio 9 2008 it sets my project > to > > > "Multibyte Character Set" ins

Re: [CMake] Unicode in Visual Studio projects

2008-11-26 Thread Robert Dailey
On Tue, Nov 25, 2008 at 4:46 PM, Robert Dailey <[EMAIL PROTECTED]> wrote: > Hi, > > I noticed when I run CMake for Visual Studio 9 2008 it sets my project to > "Multibyte Character Set" instead of Unicode. Is there a way to force CMake > to set the "Character S

[CMake] Unicode in Visual Studio projects

2008-11-25 Thread Robert Dailey
Hi, I noticed when I run CMake for Visual Studio 9 2008 it sets my project to "Multibyte Character Set" instead of Unicode. Is there a way to force CMake to set the "Character Set" option to "Use Unicode Character Set"? ___ CMake mailing list CMake@cmake

Re: [CMake] How to specify library dependencies?

2008-11-25 Thread Robert Dailey
On Tue, Nov 25, 2008 at 4:09 PM, Robert Dailey <[EMAIL PROTECTED]> wrote: > On Mon, Nov 24, 2008 at 4:39 PM, Michael Jackson < > [EMAIL PROTECTED]> wrote: > >> One of the better sources to look at is FindBoost.cmake: >> >> Here are some CMake Predefi

Re: [CMake] How to specify library dependencies?

2008-11-25 Thread Robert Dailey
On Mon, Nov 24, 2008 at 4:39 PM, Michael Jackson < [EMAIL PROTECTED]> wrote: > One of the better sources to look at is FindBoost.cmake: > > Here are some CMake Predefined variables that you will find useful: > APPLE > CYGWIN > MSVC > UNIX > WIN32 > > You can use the cmake --help-variable [variable

[CMake] source_group(): Which project is it added to?

2008-11-25 Thread Robert Dailey
I'm having an issue right now where I'm trying to setup 2 projects in 1 CMakeLists.txt file. Basically what I do is: project( p1 ) add_executable() project( p2 ) source_group() add_library() For project p1, the visual studio project that is output (p1.vcproj) contains filters created by the sour

[CMake] Default parameters in macros

2008-11-25 Thread Robert Dailey
Hi, Are all macro parameters optional by default? If not, how can I make them optional? I have a couple of required parameters and a few optional ones. Thanks. ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] How to specify library dependencies?

2008-11-24 Thread Robert Dailey
On Mon, Nov 24, 2008 at 4:02 PM, Michael Jackson < [EMAIL PROTECTED]> wrote: > > On Nov 24, 2008, at 4:29 PM, Robert Dailey wrote: > > On Mon, Nov 24, 2008 at 2:41 PM, Michael Jackson < >> [EMAIL PROTECTED]> wrote: >> typically you do:

[CMake] Unit testing in CMake

2008-11-24 Thread Robert Dailey
Hi, I'm reading this wiki articleon how to perform tests using CMake. However, the tests I'm wanting to run aren't already built. I need to be able to use CMake to first compile the test and then run it afterwards. How would I handle this behavio

Re: [CMake] How to specify library dependencies?

2008-11-24 Thread Robert Dailey
On Mon, Nov 24, 2008 at 2:41 PM, Michael Jackson < [EMAIL PROTECTED]> wrote: > typically you do: > > add_executable(main main.cpp) > target_link_libraries(main a) > > and CMake _usually_ picks the correct library for the given platform > (a.lib, a.so, a.dylib... ) > > Is that what you were asking

Re: [CMake] ALL_BUILD and ZERO_CHECK

2008-11-24 Thread Robert Dailey
On Mon, Nov 24, 2008 at 2:14 PM, Hendrik Sattler <[EMAIL PROTECTED]>wrote: > Am Monday 24 November 2008 17:36:10 schrieb Bill Hoffman: > > Robert Dailey wrote: > > > You guys have managed to steal my thread and get completely off topic. > > > > > > Can

[CMake] How to specify library dependencies?

2008-11-24 Thread Robert Dailey
Hi, I need to be able to specify directories that the linker will search to be able to find libraries it is to link against. For this, the solution I've found is LINK_DIRECTORIES(). Next, I need to be able to specify library files that the executable will link against. I have no idea how to do th

Re: [CMake] ALL_BUILD and ZERO_CHECK

2008-11-24 Thread Robert Dailey
On Mon, Nov 24, 2008 at 12:28 PM, Bill Hoffman <[EMAIL PROTECTED]>wrote: > Robert Dailey wrote: > > >> The only trouble these projects are causing me is clutter. There is no >> functional purpose for them as far as I know, which is another reason why I >> do not l

Re: [CMake] ALL_BUILD and ZERO_CHECK

2008-11-24 Thread Robert Dailey
On Mon, Nov 24, 2008 at 12:05 PM, Bill Hoffman <[EMAIL PROTECTED]>wrote: > Bill Hoffman wrote: > >> Robert Dailey wrote: >> >> >>> I'm pretty sure I can create a visual studio solution with a single >>> project that builds exactly what I&#x

Re: [CMake] ALL_BUILD and ZERO_CHECK

2008-11-24 Thread Robert Dailey
On Mon, Nov 24, 2008 at 10:36 AM, Bill Hoffman <[EMAIL PROTECTED]>wrote: > Robert Dailey wrote: > > You guys have managed to steal my thread and get completely off topic. >> >> Can anyone answer my original question please? >> >> > ZERO_CHECK is esse

[CMake] Output directory

2008-11-24 Thread Robert Dailey
Is there a way to change what directory object files and executables/libraries are placed in? Thanks. ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] ALL_BUILD and ZERO_CHECK

2008-11-24 Thread Robert Dailey
On Mon, Nov 24, 2008 at 8:44 AM, Armin Berres <[EMAIL PROTECTED]>wrote: > On Mon, 24 Nov 08 08:38, Philip Lowman wrote: > > Works for me. Puts files in the root of the "bar" project: > > > > PROJECT(foo) > > SOURCE_GROUP("" FILES bar.h bar.cc) > > ADD_EXECUTABLE(bar bar.h bar.cc) > > Ah, ok. What

Re: [CMake] Complaint about if..endif

2008-11-23 Thread Robert Dailey
On Sun, Nov 23, 2008 at 4:20 AM, cyril_wobow <[EMAIL PROTECTED]> wrote: > > Like a ... python front end ? > > Seriously, cmake is really, really, really verbose and terribly unreadable > as a scripting language... > I would agree with you in that CMake isn't perfect and it does have a lot of issue

<    3   4   5   6   7   8   9   >