[CMake] Install path for package files

2014-07-16 Thread Noah Roberts
So when I make a library that I want to be findable with cmake, I'd like the cpack system to work such that the module file is installed into the cmake module search path unless specified otherwise. I gather I need to create a BlahModule.cmake file that implements the package finding stuff. I wan

[CMake] cmake + valgrind + jenkins

2012-07-15 Thread Noah Roberts
I'm very new to CMake and am trying to get a handle on it. I'm not entirely sure if what I want to do is built into CMake already or something I'll need to write some functions/macros for. I have a Makefile setup where I can run "make check" to run unit tests and can run "make mem_check" to run t

Re: [CMake] cmake + valgrind + jenkins

2012-07-15 Thread Noah Roberts
I've continued working on my original problem and gotten further. It seems I was missing "include(CTest)" in my CMakeLists.txt I still have one remaining issue though. I want the memcheck command to CTest generate XML files for the Jenkins valgrind plugin. The problem is that I don't see a way

[CMake] Creating a directory during cmake run

2012-08-17 Thread Noah Roberts
I have set up a cmake structure that runs unit tests under valgrind and by themselves using ctest and generating xml reports for CI systems like Jenkins. One drawback though, the directories to store the resulting reports must exist before make test or make ExperimentalMemCheck are run. How would

Re: [CMake] Creating a directory during cmake run

2012-08-17 Thread Noah Roberts
: > This should work for you: > > file(MAKE_DIRECTORY reports) > > http://www.cmake.org/cmake/help/v2.8.9/cmake.html#command:file > > Jake Petroules > Petroules Corporation (www.petroules.com) > Email: jake.petrou...@petroules.com > Telephone: +1 (970) 587-3821 > &g

[CMake] spaces in path to MEMCHECK_COMMAND

2012-08-18 Thread Noah Roberts
A couple weeks back I sent in a question about passing the name of a test to the memory program as an argument to --xml-file. I didn't get a response so I continued trying to solve the issue myself. I managed to for the most part except for one problem. What I did is make a "valgrind.sh" script