Re: [CMake] PROTECTED_AT: double encoding in CPack?

2014-03-03 Thread Ian Monroe
On Fri, Feb 28, 2014 at 5:27 PM, Ian Monroe wrote: > I'm getting errors like: > error: File not found: > /home/ian/atlassian/quipchat-installer/build64/quipchat-prefix/src/quipchat-build/_CPack_Packages/Linux/RPM/hipchat-2.1.60090-Linux/opt/HipChat/lib/QtQuick/Controls/Styles/Base/i

[CMake] PROTECTED_AT: double encoding in CPack?

2014-02-28 Thread Ian Monroe
I'm getting errors like: error: File not found: /home/ian/atlassian/quipchat-installer/build64/quipchat-prefix/src/quipchat-build/_CPack_Packages/Linux/RPM/hipchat-2.1.60090-Linux/opt/HipChat/lib/QtQuick/Controls/Styles/Base/images/arrow-up@PROTECTED_AT @2x.png When generating an RPM with CPack.

Re: [CMake] Save stripped debugging information

2013-05-15 Thread Ian Monroe
On Thu, Sep 22, 2011 at 12:25 AM, Lukas Anzinger wrote: > Hi, > > I'm aware of the option CMAKE_BUILD_TYPE with which I can tell if I > want to include debugging information or not. > > A very useful feature of the program objcopy is, to not strip > debugging information from a file but to split i

Re: [CMake] portable way of linking (external) libs statically/dynamically/for dlopen

2013-04-29 Thread Ian Monroe
On Mon, Apr 29, 2013 at 11:13 AM, Philippe Cerfon wrote: > Hi. > > I've always thought one of the main objectives of cmake was being > portable, right? > So I was looking for a way to let the user (i.e. the person building a > project) choose how he wan't to link each external library (i.e. not >

Re: [CMake] clear compile flags for a file

2013-04-10 Thread Ian Monroe
On Wed, Apr 10, 2013 at 1:37 PM, Ian Monroe wrote: > So I have the same problem as the person in this old thread: > http://www.cmake.org/pipermail/cmake/2009-August/031671.html > > I want to add some compile flags (currently using add_definitions) but > they mess up the rc.exe re

[CMake] clear compile flags for a file

2013-04-10 Thread Ian Monroe
So I have the same problem as the person in this old thread: http://www.cmake.org/pipermail/cmake/2009-August/031671.html I want to add some compile flags (currently using add_definitions) but they mess up the rc.exe resource compiler. Doing something like: set_source_files_properties(hipchat.rc

Re: [CMake] CPack source packaging

2013-03-07 Thread Ian Monroe
On Wednesday, March 06, 2013 01:01:07 Szőts Ákos wrote: > Dear list members, > > I made a project with CMake (2.8.10) on Linux and want to use CPack to > create its source .tar.bz2 file. > > The task is really simple: copy all of the *.cpp and *.h files into the > .tar.bz2 file preserving the dir

Re: [CMake] CPack: Installing applications in separate folders

2013-01-24 Thread Ian Monroe
On Mon, May 21, 2012 at 3:38 PM, Eric Noulard wrote: > 2012/5/21 David Cole : >> On Mon, May 21, 2012 at 2:05 PM, wrote: >>> >>> But what about other systems like linux. If I have an executable and >>> shared libraries for example. >>> Then it is possible to install it under /opt/myproject, but i

Re: [CMake] CPACK_STRIP_FILES not working for files not built by project

2013-01-22 Thread Ian Monroe
On Sun, Jan 20, 2013 at 11:46 PM, Eric Noulard wrote: > Right I forgot one important bit, CPack plays with CMAKE_INSTALL_PREFIX and > DESTDIR > > could you try that: > > execute_process(COMMAND ls $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX} > OUTPUT_VARIABLE lsresults) Yep thanks. That did it! Ian --

Re: [CMake] CPACK_STRIP_FILES not working for files not built by project

2013-01-20 Thread Ian Monroe
On Sun, Jan 20, 2013 at 3:44 PM, Ian Monroe wrote: > On Sun, Jan 20, 2013 at 1:03 PM, Eric Noulard wrote: >> >> "It will only affect the files that were make installed >> not the files used by CPack" ? >> >> CPack does call "cmake -P cmake_inst

Re: [CMake] CPACK_STRIP_FILES not working for files not built by project

2013-01-20 Thread Ian Monroe
On Sun, Jan 20, 2013 at 1:03 PM, Eric Noulard wrote: > > "It will only affect the files that were make installed > not the files used by CPack" ? > > CPack does call "cmake -P cmake_install.cmake" so > **all files** packaged by CPack are somehow **installed** previously. > > CMAKE_INSTALL_PREFIX

Re: [CMake] CPACK_STRIP_FILES not working for files not built by project

2013-01-20 Thread Ian Monroe
On Sun, Jan 20, 2013 at 1:03 PM, Eric Noulard wrote: > I'd rather create a script "strip-all-installed-file.cmake" > and do > install(SCRIPT strip-all-installed-files.cmake) > > then the content of "strip-all-installed-files.cmake" does not need > escaping. Thanks for the tip. I'll do this now.

Re: [CMake] CPACK_STRIP_FILES not working for files not built by project

2013-01-20 Thread Ian Monroe
On Sun, Jan 20, 2013 at 10:47 AM, Ian Monroe wrote: > Yea I guess I could do install(CODE...) and then a file(GLOB...) would > actually work. Actually not so sure how to do it, since if I write something like this: install( CODE "file(GLOB installedLibrares ${CMAKE_INSTALL_PREFI

Re: [CMake] CPACK_STRIP_FILES not working for files not built by project

2013-01-20 Thread Ian Monroe
On Sun, Jan 20, 2013 at 3:13 AM, Eric Noulard wrote: > 2013/1/20 Ian Monroe : >> My project is currently producing 100mb RPM/Deb's, but with stripped >> binaries it should clock in at about 20mb. >> >> I have CPACK_STRIP_FILES set to true. >> >> Notab

[CMake] CPACK_STRIP_FILES not working for files not built by project

2013-01-20 Thread Ian Monroe
the files built by the project, but not some of the external libraries I'm installing as well (so that they get picked up by CPack.) Any suggestions? Adding strip manually is doable, just a bit troublesome since I can't do cmake configuration time stuff like file(glob. Thanks, Ian M

Re: [CMake] using find_library with a ExternalProject

2012-10-22 Thread Ian Monroe
On Mon, Oct 22, 2012 at 6:07 AM, Bill Hoffman wrote: > On 10/21/2012 10:20 PM, Ian Monroe wrote: >> >> So I had code like: >> include(ExternalProject) >> ExternalProject_Add( >> mockcpp >> DOWNLOAD_COMMAND hg clonessh://h...@bitbucket.

[CMake] using find_library with a ExternalProject

2012-10-21 Thread Ian Monroe
t, but I didn't see a way to do it (ExternalProject_Get_Property doesn't seem to be intended for that). Thanks, Ian Monroe -- 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 chec

Re: [CMake] How to make a ProjectConfig.cmake

2010-12-30 Thread Ian Monroe
On Thu, Dec 30, 2010 at 09:42, Michael Wild wrote: > On 12/30/2010 03:34 PM, Ian Monroe wrote: >> On Thu, Dec 30, 2010 at 08:08, Michael Hertling wrote: >>> On 12/30/2010 11:33 AM, Ian Monroe wrote: >>>> To create my QyotoConfig.cmake I need to know the full path o

Re: [CMake] How to make a ProjectConfig.cmake

2010-12-30 Thread Ian Monroe
On Thu, Dec 30, 2010 at 08:08, Michael Hertling wrote: > On 12/30/2010 11:33 AM, Ian Monroe wrote: >> To create my QyotoConfig.cmake I need to know the full path of a >> library so that I can set a variable like QYOTO_LIBRARY. >> >> This is pretty standard requir

[CMake] How to make a ProjectConfig.cmake

2010-12-30 Thread Ian Monroe
To create my QyotoConfig.cmake I need to know the full path of a library so that I can set a variable like QYOTO_LIBRARY. This is pretty standard requirement right? Its what we're supposed to do in *Config.cmake's? So anyways, how do I that? The only target property that hasn't returned NOTFOUND

Re: [CMake] providing library information, what's the cmake way

2010-11-23 Thread Ian Monroe
On Mon, Nov 22, 2010 at 10:37 PM, Michael Hertling wrote: [snip] >> This seems like a common situation,  so I'm wondering what the common >> solution is. > > 'hope that helps. Thanks, yes that helps a lot. I figured there must be some method like this. @Johannes Zarl: hijack away, I'm also inter

[CMake] providing library information, what's the cmake way

2010-11-22 Thread Ian Monroe
So with a library, the correct thing to do is to install your FindLibrary.cmake into ${CMAKE_ROOT}/Modules and then dependent projects would just do find_package(Library REQUIRED) correct? I guess I'm thinking about how, in the situation where they don't have the library installed, they would then

Re: [CMake] CTest w/ Coverage

2009-04-12 Thread Ian Monroe
On Sun, Apr 12, 2009 at 10:06 PM, Daniel Stonier wrote: > Ian, are you using ccache? No I just really didn't know where to start. Its not obvious from the wiki that just setting the correct gcc flags triggers a coverage test. :) I'll try out what Alex says tomorrow and edit the wiki accordingly.

Re: [CMake] CTest w/ Coverage

2009-04-12 Thread Ian Monroe
On Sun, Apr 12, 2009 at 8:51 PM, Daniel Stonier wrote: > I'm having a few troubles understanding how to get CTest setup. The > wiki is a bit piecemeal and just need a pointer in the right > direction. > > Currently, the ctest results are passing for a simple hello world > project, but I can't get

Re: [CMake] Generating makefiles without installed CMake

2009-04-09 Thread Ian Monroe
2009/4/9 Ivan Chupahin : > Hi! > > How can i generate the makefiles on a different systems, where no CMake is > installed? It`s like a configure (autoconf utility). Install cmake? :) Ian ___ Powered by www.kitware.com Visit other Kitware open-source p

Re: [CMake] copying files

2009-04-08 Thread Ian Monroe
On Wed, Apr 8, 2009 at 5:01 PM, Randy Heiland wrote: > Is there a simple cmake procedure to copy files from a source dir to the > installation dir? INSTALL works fine for this as well. Just read its API doc. Ian ___ Powered by www.kitware.com Visit ot

Re: [CMake] load CMakeCache.txt settings into new build directory?

2009-04-07 Thread Ian Monroe
On Tue, Apr 7, 2009 at 10:04 AM, John Drescher wrote: >> But I don't really know what the users needs. Like for me I don't need >> to pass any options. Others might have had to tweak things to >> recognize a given library. >> >> I wonder if I could just run a find&replace regex on the >> CMakeCach

Re: [CMake] load CMakeCache.txt settings into new build directory?

2009-04-07 Thread Ian Monroe
On Mon, Apr 6, 2009 at 10:33 PM, Michael Jackson wrote: > I _think_ the way to do this in your script would be to use either one of: > >  -C          = Pre-load a script to populate the cache. >  -D :=     = Create a cmake cache entry. > > In the -C variant you would have a *.cmake file that has

[CMake] load CMakeCache.txt settings into new build directory?

2009-04-06 Thread Ian Monroe
I want to write a script that, in response to 'make distcheck', git clones the source repo into a new directory under the build directory, builds it and runs make test. The issue is that if the user had to tweak their cmake settings to get it to build thats not going to work, since the new build d

Re: [CMake] perennial question, how to setup environment for simple tests

2009-04-03 Thread Ian Monroe
On Thu, Apr 2, 2009 at 10:28 PM, Philip Lowman wrote: > On Thu, Apr 2, 2009 at 3:19 PM, Ian Monroe wrote: >> >> I've seen this question in the archives, but I was wondering if >> there's been any progress since I last saw it asked (>1 year ago). >> &g

[CMake] perennial question, how to setup environment for simple tests

2009-04-02 Thread Ian Monroe
velopers. Possibly the solution is to figure out how CTest can be used anyways. Thanks, Ian Monroe ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-t