Re: [CMake] External projects and imported targets

2010-05-16 Thread Timothy M. Shead
On 05/16/2010 01:01 PM, Marcus D. Hanwell wrote: > OK, may be others on the list may have other experiences they will > share. After having spent quite a bit of time working on packaging for a > Linux distro, and using CMake's external projects I see many parallels. > > The external project allow

Re: [CMake] External projects and imported targets

2010-05-16 Thread Timothy M. Shead
On 05/16/2010 12:36 PM, Marcus D. Hanwell wrote: > On Sun, May 16, 2010 at 2:26 PM, Timothy M. Shead <mailto:tsh...@k-3d.com>> wrote: > > On 05/16/2010 12:11 PM, Marcus D. Hanwell wrote: > > On Sun, May 16, 2010 at 12:48 PM, Timothy M. Shead >

Re: [CMake] External projects and imported targets

2010-05-16 Thread Timothy M. Shead
On 05/16/2010 12:11 PM, Marcus D. Hanwell wrote: > On Sun, May 16, 2010 at 12:48 PM, Timothy M. Shead <mailto:tsh...@k-3d.com>> wrote: > > I'd like to do the following: > > # Build external project A > ExternalProject_Add(A ...) > > # I

[CMake] External projects and imported targets

2010-05-16 Thread Timothy M. Shead
I'd like to do the following: # Build external project A ExternalProject_Add(A ...) # Import target B, which is exported by A in AConfig.cmake ExternalProject_Get_Property(A, BINARY_DIR) set(A_DIR ${BINARY_DIR}) find_package(A) # Link with B add_library(C ...) target_link_libra

Re: [CMake] Possible to clean files of one target library only?

2009-08-19 Thread Timothy M. Shead
Jörg Förstner wrote: Hi, if I execute 'make clean', then all object files of the whole project are removed. Now I would like to clean only object files belonging to one target/library, to force rebuilding this library. How can I do this? Best Regards, Joerg If you are using CMake to gen

Re: [CMake] Shared libraries cannot be found after deploying a CPack package

2009-07-16 Thread Timothy M. Shead
Timothy M. Shead wrote: Michael Wild wrote: On 16. Jul, 2009, at 16:17, Bill Hoffman wrote: Michael Wild wrote: Actually, I'm planning on doing this with the .def files. But then, maintaining them might also become a nightmare. You can generate them if you use dumpbin and some scri

Re: [CMake] Shared libraries cannot be found after deploying a CPack package

2009-07-16 Thread Timothy M. Shead
ur project uses for this purpose: http://k3d.hg.sourceforge.net/hgweb/k3d/file/079fa1503f31/gendef Cheers, Tim -- Timothy M. Shead Data Analysis & Visualization (1424) Sandia National Laboratories 505-284-0139 ___ Powered by www.kitware.com Visit

Re: [CMake] Using relative paths with INSTALL

2009-06-08 Thread Timothy M. Shead
for this case. On the other hand, I can think of some cases where you will have file/dir create/write access under the CMAKE_INSTALL_PREFIX directly, but not in some of its subdirectories. In that case, it would not work even now... Understood. Thanks for clarifying these issues. Cheers,

Re: [CMake] Using relative paths with INSTALL

2009-06-08 Thread Timothy M. Shead
-drop generator install files within the bundle? Cheers, Tim -- Timothy M. Shead Data Analysis & Visualization (1424) Sandia National Laboratories 505-284-0139 ___ Powered by www.kitware.com Visit other Kitware open-source projects at htt

Re: [CMake] Using relative paths with INSTALL

2009-06-08 Thread Timothy M. Shead
l use-case. Many thanks, Tim -- Timothy M. Shead Data Analysis & Visualization (1424) Sandia National Laboratories 505-284-0139 ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensourc

Re: [CMake] Using relative paths with INSTALL

2009-06-08 Thread Timothy M. Shead
Brad King wrote: Timothy M. Shead wrote: Folks: On a couple of occasions now I've recommended the use of relative paths with the OSX bundle installer - this to install files within the bundle in "nonstandard" locations. It would be good to hear from the CMake gurus on w

[CMake] Using GET_PREREQUISITES()

2009-06-08 Thread Timothy M. Shead
;") FOREACH(DEPENDENCY ${DEPENDENCIES}) GET_FILENAME_COMPONENT(DEPENDENCY_NAME "${DEPENDENCY}" NAME) GET_FILENAME_COMPONENT(DEPENDENCY_ACTUAL "${DEPENDENCY}" REALPATH) FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE EXECUTABLE RENAME "$

[CMake] Using relative paths with INSTALL

2009-05-29 Thread Timothy M. Shead
t. For example: INSTALL(FILES foo DESTINATION ../MacOS) ... note that this only makes sense within the context of an OSX bundle. Thoughts? Tim -- Timothy M. Shead Data Analysis & Visualization (1424) Sandia National Laboratories 505-284-0139 ___

Re: [CMake] OS X Bundle startup command

2009-05-29 Thread Timothy M. Shead
Michael Jackson wrote: On May 29, 2009, at 11:49 AM, Timothy M. Shead wrote: Tobias Sauerwein wrote: Hi Everyone In my attempt to get cmake/cpack to produce a propper OS X bundle, I hit a problem. We use a launcher script written in applescript which is compiled in the build process

Re: [CMake] OS X Bundle startup command

2009-05-29 Thread Timothy M. Shead
al touches? Tobias: My experience when I was writing the bundle generator was that the startup command only worked if it matched the bundle name. From your question there must be some way to control what gets executed when a user double-clicks the bundle. Info.plist? Cheers, Tim -- Timoth

Re: [CMake] Parallel builds and Eclipse CDT4 generator

2009-03-12 Thread Timothy M. Shead
o be disabled by default and enabled e.g. via an option like CMAKE_AUTOMATIC_PARALLEL_MAKE_INVOCATION or something like this. I believe that this must be configurable - using distcc, developers may want to build with -jx > the number of local cores. Che

Re: [CMake] cpack bundle generator qq

2009-01-26 Thread Timothy M. Shead
Mike Arthur wrote: I think it's worth look at the PackageKit generator which does this properly. I'm looking at an up-to-date CMake source tree, and I don't see this generator ... can you explain what it is? Cheers, Tim -- Timothy M. Shead Data Analysis & Visualiz

Re: [CMake] cpack bundle generator qq

2009-01-16 Thread Timothy M. Shead
David Cole wrote: > I have always been of the opinion that if you are building a Mac bundle > application, it should be complete as a bundle at the end of the build. > At the end of "make". Even before "make install". > > Now that may just be my ancient Mac-fanboy-forever bias showing through, > b

Re: [CMake] cpack bundle generator qq

2009-01-16 Thread Timothy M. Shead
ed in the build directory every time you specified WIN32_EXECUTABLE, we'd be having the same sort of confusion on Win32. Cheers, Tim -- Timothy M. Shead Data Analysis & Visualization (1424) Sandia National Laboratories 505-284-0139 ___ CMake mail

Re: [CMake] cpack bundle generator qq

2009-01-16 Thread Timothy M. Shead
file was built with the MACOSX_BUNDLE property set, so that it could adjust its behavior? Cheers, Tim -- Timothy M. Shead Data Analysis & Visualization (1424) Sandia National Laboratories 505-284-0139 ___ CMake mailing list CMake@cmake.org http://w

Re: [CMake] cpack bundle generator qq

2009-01-16 Thread Timothy M. Shead
it doesn't have any third-party dependencies. The goal with the bundle generator is to abstract away platform differences so that one set of INSTALL() paths works everywhere. Cheers, Tim -- Timothy M. Shead Data Analysis & Visualiz

Re: [CMake] cpack bundle generator qq

2009-01-16 Thread Timothy M. Shead
TALL() commands. Cheers, Tim -- Timothy M. Shead Data Analysis & Visualization (1424) Sandia National Laboratories 505-284-0139 ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] cpack bundle generator qq

2009-01-16 Thread Timothy M. Shead
e /Applications shortcut. As Mike points out, there is room for better defaults, but this is exactly how the bundle generator operates. I'd consider Clint's request to be an "advanced" capability, one that should be reasonable to add in a backwards-compatible way

Re: [CMake] cpack bundle generator qq

2009-01-16 Thread Timothy M. Shead
ed on components sounds like a good idea. I guess that in an ideal world you would like to set per-component properties (if there were such a thing) that could be used by the bundle generator to setup the bundles, but other workarounds should be possible. Cheers, Tim -- Timothy M. Shea

Re: [CMake] CPack Bundle Generator easily hits hdiutil MNAMELEN limit

2009-01-07 Thread Timothy M. Shead
ath, then CPack ensures that it gets cleaned-up automatically. Cheers, Tim -- Timothy M. Shead Data Analysis & Visualization (1424) Sandia National Laboratories 505-284-0139 ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Unable to find GTK with cmake on Ubuntu

2008-12-18 Thread Timothy M. Shead
Pierrick Grasland wrote: > I'm testing CMake with a little project, but I encounter a problem with GTK. > I was building with autotools and pkg_config before, so I know I have > GTK+-2.0 on my system. Since pkg-config is the "officially supported" way to obtain GTK dependencies and compiler flag

Re: [CMake] Does CMake/CPack not support creating a source-only tarball

2008-11-18 Thread Timothy M. Shead
e dir that you *don't* want to distribute, you can set CPACK_SOURCE_IGNORE_FILES to a list of regex expressions that will be ignored. Note that the default value for this variable is used to strip CVS/.svn cruft out when packaging the sources. Cheers, Tim -- Timothy M. Shead Dat

Re: [CMake] Does CMake/CPack not support creating a source-only tarball

2008-11-18 Thread Timothy M. Shead
ot "source_package" ... Truly Yours, Tim -- Timothy M. Shead Data Analysis & Visualization (1424) Sandia National Laboratories 505-284-0139 ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Does CMake/CPack not support creating a source-only tarball

2008-11-18 Thread Timothy M. Shead
bdirectory with a custom target, etc). There is no equivalent to "make distcheck", unless you roll your own (which certainly would be doable). Cheers, Tim -- Timothy M. Shead Data Analysis & Visualization (1424) Sandia National L

Re: [CMake] CMake install and CPack

2008-11-07 Thread Timothy M. Shead
uot;CMAKE_INSTALL_COMPONENT=Foo" -D "CMAKE_INSTALL_PREFIX=C:/Program Files/Foo-Debug" -P "${Foo_BINARY_DIR}/cmake_install.cmake" ) ADD_CUSTOM_TARGET(Install-Foo-Release ${CMAKE_COMMAND} -D "BUILD_TYPE=Release" -D "CMAKE_INSTALL_COMPONENT=Foo"

Re: [CMake] PATCH: Bundle Generator need not require CPACK_BUNDLE_STARTUP_COMMAND

2008-11-04 Thread Timothy M. Shead
go for it! Cheers, Tim -- Timothy M. Shead Data Analysis & Visualization (1424) Sandia National Laboratories 505-284-0139 ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Bundle Generator conflicts with MACOSX_BUNDLE

2008-11-04 Thread Timothy M. Shead
te timescale? These are all sensible behaviors, completely consistent with what I had in mind long-term, but very, very low priority for me. You should jump-in and submit patches for anything that matters to you. As long as I retain the (optional) flexibility that I need, I'm happy. Ch

Re: [CMake] Bundle Generator conflicts with MACOSX_BUNDLE

2008-11-01 Thread Timothy M. Shead
Mike Arthur wrote: > On Friday 31 October 2008 16:18:51 Timothy M. Shead wrote: >> Of course, you still have to provide a mechanism so the executable can >> be located when your user double-clicks your bundle. That's where >> CPACK_BUNDLE_STARTUP_COMMAND comes-in ... i

Re: [CMake] Bundle Generator conflicts with MACOSX_BUNDLE

2008-10-31 Thread Timothy M. Shead
Mike Arthur wrote: On Thursday 30 October 2008 18:43:04 you wrote: Basically what I mean is, if the CPACK_BUNDLE_STARTUP_COMMAND is simply copied, how can you do install_name_tool operations on it without disrupting the build tree? In my humble opinion the CPACK_BUNDLE_STARTUP_COMMAND and p

Re: [CMake] Bundle Generator conflicts with MACOSX_BUNDLE

2008-10-30 Thread Timothy M. Shead
Mike Arthur wrote: On Thursday 30 October 2008 17:25:45 you wrote: Yes, this is something I've been contemplating on a low-priority thread. I've added this and your other suggestions to the wiki, no particular guarantees on when I'll get to them. Obviously I realise this you aren't a Kitware e

Re: [CMake] Bundle Generator conflicts with MACOSX_BUNDLE

2008-10-30 Thread Timothy M. Shead
Mike Arthur wrote: Are you using it with BundleUtilities? If not you should think of how you could do, as manually having to run install_name_tool when BundleUtilities is available is a bit of a unpleasant proposition. Yes, this is something I've been contemplating on a low-priority thread. I

Re: [CMake] Bundle Generator conflicts with MACOSX_BUNDLE

2008-10-29 Thread Timothy M. Shead
Mike Arthur wrote: The subject says it all, the CPACK Bundle Generator conflicts with MACOSX_BUNDLE and produces two nested Bundles. This should probably be checked for and/or documented because I assumed the two were related and wasted a fair bit of time working out that they weren't. Mike: G

[CMake] CPack OSX Bundles

2008-03-22 Thread Timothy M. Shead
> Folks: > > I'm generating OSX bundles for a couple of projects with GTK and one > with Qt dependencies. Currently I handle everything with CMake, > custom > targets, and some custom shell scripts, but I'd like to get CPack to > do > the work. > > The OSXX11 generator is *almost* perfect, bu

[CMake] CPack OSX Bundles

2008-03-16 Thread Timothy M. Shead
Folks: I'm generating OSX bundles for a couple of projects with GTK and one with Qt dependencies. Currently I handle everything with CMake, custom targets, and some custom shell scripts, but I'd like to get CPack to do the work. The OSXX11 generator is *almost* perfect, but I need some additio

Re: [CMake] Re: CMake and Lua

2008-03-01 Thread Timothy M. Shead
On Sat, 2008-03-01 at 15:20 -0500, Brandon Van Every wrote: > > * no well defined syntax: > > > > - missing datatypes; all seems to be a string. Mastering ';' and > > spaces is trial-and-error game :( > > Totally agree on this point. It needs documentation. My suggestion > on the matter

Re: [CMake] Unexpected behavior testing boolean expressions

2008-02-01 Thread Timothy M. Shead
On Thu, 2008-01-31 at 04:17 -0500, Brandon Van Every wrote: > On Jan 30, 2008 9:53 PM, Alan W. Irwin <[EMAIL PROTECTED]> wrote: > > My guess is YES, etc., are being interpreted > > as (undefined) variable names > > Yep, that's exactly what's happening. The macro expands to things > like if(YES)

[CMake] Unexpected behavior testing boolean expressions

2008-01-30 Thread Timothy M. Shead
Folks: This seems like CMake 101, but I'm running into weird behavior testing boolean expressions within a macro. I've reproduced the problem using both 2.4.7 and CVS trunk on Gentoo Linux, presumably it is some subtlety that I just don't get :) If I run the following: set(var YES)

Re: [CMake] intltool and cmake?

2008-01-13 Thread Timothy M. Shead
_COMMAND(OUTPUT ${po_BINARY_DIR}/k3d.pot COMMAND ${K3D_XGETTEXT} --files-from ${po_SOURCE_DIR}/POTFILES.in --keyword=_ -o ${po_BINARY_DIR}/k3d.pot --copyright-holder="Timothy M. Shead" --msgid-bugs-address="[EMAIL PROTECTED]" --no-wrap --no-location