Re: [CMake] "No such file or directory" error when using cmake/swig

2009-06-01 Thread Gerrick Bivins
Thanks for the tip! Searching the docs for the make_directory flag led me to using: FILE(MAKE_DIRECTORY directory1 directory2...) Works perfectly!!! Thanks again. Gerrick On 6/1/09 10:11 AM, "Tyler Roscoe" wrote: > cmake -E make_directory ___ Powere

[CMake] "No such file or directory" error when using cmake/swig

2009-06-01 Thread Gerrick Bivins
Hello, I'm trying to use swig & cmake to generate java files for one of my libraries. The problem I'm having is that I'd like to create a jar from the output file but I don't know how to create a directory that swig can write to from Cmake. I've specified: SET(CMAKE_SWIG_OUTDIR "${PROJECT_BIN

[CMake] Finding Boost 1.37 with Cmake 2.6.2 on windows

2008-11-21 Thread Gerrick Bivins
Hello, I'm trying to use CMake to build one of my utilities and I'm having problems finding Boost (1.37). I have a top-level CMakeList.txt file as follows: = ##Top level build for myUtilTest cmake_minimum_required(VERSION 2.6) project (myUtilTest CXX)

Re: [CMake] Setting install_name on Mac OSX 10.5

2008-10-21 Thread Gerrick Bivins
## PROPERTIES PREFIX "") <==leave the prefix in tact ENDMACRO(SWIG_ADD_SHARED_MODULE) Not sure if this is the appropriate way to handle this or if the UseSwig should define a different macro. It looks like this was created for a specific language (tcl or python maybe) but

Re: [CMake] Setting install_name on Mac OSX 10.5

2008-10-20 Thread Gerrick Bivins
_ > Mike Jackson [EMAIL PROTECTED] > BlueQuartz Software www.bluequartz.net > Principal Software Engineer Dayton, Ohio > > On Oct 20, 2008, at 5:43 PM, Gerrick Bivins wrote: > >> Hell

[CMake] Setting install_name on Mac OSX 10.5

2008-10-20 Thread Gerrick Bivins
Hello all, I¹m trying to use swig (SWIG_ADD_MODULE, SWIG_LINK_LIBRARIES) to generate java bindings for a library (contains a couple of sub libraries, similar to VTK¹s setup). I haven¹t been able to load the generated shared libraries. There were a couple of issues: 1. My jvm won¹t load shared libra

Re: [CMake] Sending Swig options to compiler

2008-07-15 Thread Gerrick Bivins
Perfect! Thanks Alan. Gerrick On 7/15/08 4:19 PM, "Alan W. Irwin" <[EMAIL PROTECTED]> wrote: > On 2008-07-15 15:49-0500 Gerrick Bivins wrote: > >> Hello, >> I�m trying to add an extra option to the swig compile line (-package >> ) while generating java

[CMake] Sending Swig options to compiler

2008-07-15 Thread Gerrick Bivins
Hello, I¹m trying to add an extra option to the swig compile line (-package ) while generating java wrappers for my project. I¹m running into a problem when using: SET(PACKAGE_NAME test) SET_SOURCE_FILES_PROPERTIES( ${INTERFACE_FILES} PROPERTIES CPLUSPLUS ON ) SET( CMAKE_SWIG_FLAGS "-package ${PACK

Re: [CMake] add all files of a directory

2008-07-14 Thread Gerrick Bivins
Hi Adrien, I think you can use Cmake's GLOB to get do this, something like: FILE (GLOB MYFILES RELATIVE Pybindings *.cxx ) MYFILES should be a variable with all the *.cxx files in Pybindings. Gerrick On 7/14/08 5:23 AM, "Adrien Saladin" <[EMAIL PROTECTED]> wrote: > Hi list, > > I'm trying cmak

Re: [CMake] Newbie creating shared objects on Mac

2008-07-08 Thread Gerrick Bivins
Ok. If I understand you guys correctly, I should be good to go because .so and .dylib now are the same in the mac OSX current architectures? On 7/8/08 12:43 PM, "Bill Hoffman" <[EMAIL PROTECTED]> wrote: > Kai Sterker wrote: >> On Mon, Jul 7, 2008 at 9:39 PM, Gerrick Bi

[CMake] Compiling java files to classes then creating a jar

2008-07-07 Thread Gerrick Bivins
Hello, Another newbie question, I think I know how to create .java files from swig using Cmake and I think I know how to create a jar file from .class BUT I¹m not sure how to call the java compiler (javac) on each .java file to create my .class files. For starters, how would I loop over the *.java

Re: [CMake] Newbie creating shared objects on Mac

2008-07-07 Thread Gerrick Bivins
I realized I left out the fact that I'm using the swig module. Sorry about that. Does the SWIG_ADD_MODULE have a SWIG_ADD_LIBRARY equivalent? Alexander Neundorf wrote: > On Monday 07 July 2008, Gerrick Bivins wrote: >> Hello, >> I¹m trying to dive into Cmake and I¹ve tried

[CMake] Newbie creating shared objects on Mac

2008-07-07 Thread Gerrick Bivins
Hello, I¹m trying to dive into Cmake and I¹ve tried creating new targets for an existing project using Cmake. So far everything Works ok but on Mac, my shared object targets are creating *.so files. I¹m not concerned about bundles and frameworks but I expected Cmake to produce *.dylib files. Any su