[CMake] Quick Question: add_custom_target( xxx ) add_custom_command( TARGET xxx ... )

2014-03-09 Thread J Decker
add_custom_target( xxx ) add_custom_command( TARGET xxx (PREBUILD? POSTBUILD? PRELINK?) COMMAND blah ) Why doesn't that work? Right now I just have a dirty cmake script that does a bunch of macos that do ... EXECUTE( cmake copy_if_different )'s and I just want to run those as a target instead

Re: [CMake] Installing generated files

2014-03-09 Thread Alejandro Martinez Ruiz
Hi Alan, On Fri, Mar 7, 2014 at 6:35 AM, Alan W. Irwin wrote: > > To solve the issue you have described, I suggest you create a simple > overall project that configures the build of _both_ your principal > project and the project it depends on using the ExternalProject_Add > command. I guess thi

Re: [CMake] CMAKE_RUNTIME_OUTPUT_DIRECTORY inconsistent between make and Xcode

2014-03-09 Thread Lucas Soltic
Le 9 mars 2014 à 21:19, jmerkow a écrit : > I am having a similar issue. > > I generate a number of scripts I configure with the path to the executables. > This path is the same when using make, but with XCode or MSVSC they append > the build type (Debug, Release, RelWithDebInfo, etc). > Bas

Re: [CMake] CMAKE_RUNTIME_OUTPUT_DIRECTORY inconsistent between make and Xcode

2014-03-09 Thread jmerkow
I am having a similar issue. I generate a number of scripts I configure with the path to the executables. This path is the same when using make, but with XCode or MSVSC they append the build type (Debug, Release, RelWithDebInfo, etc). Bascially, this script sets a number of env variables, and a

Re: [CMake] Another attempt: CMake error reporting with absolute path?

2014-03-09 Thread Alexander Neundorf
On Saturday, March 08, 2014 15:28:48 J Decker wrote: > Didn't see anyone respond to this... While building today I get this > error... > > Snip > Platform/Android to use this system, please send your config file to > cm...@www.cmake.org so it can be added to cmake > EXECUTE_PROCESS(COMMA