Re: [CMake] Symbolinc links
Thank you very much. This works fine for the make install target but do you know how I can make it work with cpack ? I cannot call INSTALL(FILES in my cmake script. Best regards, William On Thu, Aug 21, 2008 at 5:01 PM, Alan W. Irwin [EMAIL PROTECTED] wrote: On 2008-08-21 16:26+0200 William Candillon wrote: Hi, During the installation of my cmake project on unix systems, I would like to create a symbolic of my binary in /usr/bin. Is it possible to execute the ln command only during the execution of the install target ? Use either the INSTALL(CODE... or INSTALL(SCRIPT... signatures. Either of those allows you to execute arbitrary CMake code (and thus do essentially anything you like) at install time. Once you get ln to work, I would change that to the cmake -E create_symlink command for best cross-platform results. Alan __ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __ Linux-powered Science __ -- William Candillon http://apdt.googlecode.com ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
[CMake] Symbolinc links
Hi, During the installation of my cmake project on unix systems, I would like to create a symbolic of my binary in /usr/bin. Is it possible to execute the ln command only during the execution of the install target ? Best regards, William -- William Candillon http://apdt.googlecode.com ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] ADD_TEST comparing the command input with a file content
Hello guys, Thank you very much for the tip! This is exactly what I needed. Best regards, William On Fri, Jul 4, 2008 at 9:56 PM, Alan W. Irwin [EMAIL PROTECTED] wrote: On 2008-07-04 12:08+0200 William Candillon wrote: Hi, I'm using the ADD_TEST command to test the output of my executable like this: ADD_TEST(test mycommand) SET_TEST_PROPERTIES(test PROPERTIES PASS_REGULAR_EXPRESSION foo) However, I would like to compare the output with the content of a file. Is there a platform independent way to do that without writing a perl script for example ? You can run cmake -E compare_files file1 file2 as part of your test at test time (not at the normal cmake time when the tests are configured) to check whether file1 and file2 are the same or not. Alan __ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __ Linux-powered Science __ -- William Candillon http://apdt.googlecode.com ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake