[CMake] Generated source files and dependencies(+)

2008-09-14 Thread ZNV
Hi! I am generating header file for subsequent use by multiple libraries/executables in CMake-controlled build. My preliminary solution which happens to work is the following; I wonder if it is correct. project(FOO) add_custom_target(generate ALL DEPENDS ${FOO_BINARY_DIR}/generated.h) add_custom_

[CMake] SWIG - Adding Java module on OSX

2008-09-14 Thread Nicholas Yue
Hi, I am using the macro SWIG_ADD_MODULE. SWIG_ADD_MODULE ( ribclient java RIBClient.i ParameterList.cpp ) The generated linker flag does not produce a loadable JNI module (it compiles and build but is not usable). /usr/bin/c++ -bundle -headerpad_max_install_names -o libribc

Re: [CMake] How to add a test and compare its output to a reference file ?

2008-09-14 Thread Judicaël Bedouet
On Sun, Sep 14, 2008 at 10:14 AM, Michael Wild <[EMAIL PROTECTED]> wrote: > > On 13. Sep, 2008, at 10:57, Judicaël Bedouet wrote: > > Thanks to both of you. >> >> I appreciate your example Michael but it can't work under Visual Studio. >> Command should be something like >> ${CMAKE_BINARY_DIR}/${

Re: [CMake] How to add a test and compare its output to a reference file ?

2008-09-14 Thread Michael Wild
On 13. Sep, 2008, at 10:57, Judicaël Bedouet wrote: Thanks to both of you. I appreciate your example Michael but it can't work under Visual Studio. Command should be something like ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/hello$ {CMAKE_EXECUTABLE_SUFFIX} but apparently, at this stage, CMake