[CMake] ansi color

2012-02-10 Thread Matt Fair
I'd like to be able to pipe cmake output and still have the ansi color
codes when the output is not TTY, is there a way to do this?
Thanks,
Matt
--

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] cmake with continuous integration

2011-11-04 Thread Matt Fair
I am using CMake with a continuous integration (CI)  build and it has
multiple stages.  The CI server places in each stage in different
directories, for example:

/foo/bar/build-stage
/foo/bar/test-stage
/foo/bar/package-stage

I'm having trouble with CMake with the abolute paths in the build
tree, is there any way around this?  From what I have seen the answer
is no, but I was wondering what other people are doing.  Are people
just doing a build and package in the same stage, then redistributing
the packages to the rest of the stages?

Thanks,
Matt
--

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] install targets

2011-10-25 Thread Matt Fair
I have split my code up into two dirs, source and tests.  The
CMakeLists.txt in the source dir does a SUBDIRS to
${PROJECT_SOURCE_DIR}/../tests to get tests.

In each CMakeLists file right after I have defined the target via
ADD_LIBRARY or ADD_EXECUTABLE and set TARGET_LINK_LIBRARIES I have
done the following:

binaries
INSTALL(TARGETS myBinary RUNTIME DESTINATION bin)

libs
INSTALL(TARGETS myLib ARCHIVE DESTINATION lib)

shared libs
INSTALL(TARGETS mySharedLib LIBRARY DESTINATION lib)

The problem is that all INSTALL targets that I have specified under
the tests dir are not installed.  Am I doing something wrong?  The
problem seems to be with my SUBDIRS and INSTALL.  How can I fix this?

Thanks,
Matt
--

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] install targets

2011-10-25 Thread Matt Fair
Ok, sorry for the duplication, it was also discussed in:
http://www.cmake.org/pipermail/cmake/2011-March/043467.html

I changed everything from SUBDIRS to add_subdirectory and it worked.
For my tests dir, I specified a second build dir, and everything then
installed from those dirs.

Matt

On Tue, Oct 25, 2011 at 12:56 AM, Matt Fair matt.f...@gmail.com wrote:
 I have split my code up into two dirs, source and tests.  The
 CMakeLists.txt in the source dir does a SUBDIRS to
 ${PROJECT_SOURCE_DIR}/../tests to get tests.

 In each CMakeLists file right after I have defined the target via
 ADD_LIBRARY or ADD_EXECUTABLE and set TARGET_LINK_LIBRARIES I have
 done the following:

 binaries
 INSTALL(TARGETS myBinary RUNTIME DESTINATION bin)

 libs
 INSTALL(TARGETS myLib ARCHIVE DESTINATION lib)

 shared libs
 INSTALL(TARGETS mySharedLib LIBRARY DESTINATION lib)

 The problem is that all INSTALL targets that I have specified under
 the tests dir are not installed.  Am I doing something wrong?  The
 problem seems to be with my SUBDIRS and INSTALL.  How can I fix this?

 Thanks,
 Matt

--

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake