Re: [CMake] [java] How do I add an implements MyI to Swig generated java class?

2014-11-06 Thread Witold E Wolski
An answer to my question https://stackoverflow.com/questions/5477747/cant-figure-out-how-to-make-swig-java-force-a-proxy-class-to-implement-an-inter On 5 November 2014 17:28, Witold E Wolski wewol...@gmail.com wrote: I have some C++ classes which implement an interface. On the C++ side I

[CMake] [java] How do I add an implements MyI to Swig generated java class?

2014-11-05 Thread Witold E Wolski
I have some C++ classes which implement an interface. On the C++ side I have: struct Block{ void waitForNotify()=0; } class B : Listener{ void waitForNotify(); ... } what I would love to get generated on the java side is: interface Block{ void notifiy(); } class B implements Block{ swig

[CMake] externalproject_add and make -j 2 errors

2013-11-19 Thread Witold E Wolski
when I build the project with cmake ../project make it builds as soon as I am using make -j 2 or greater files within the project are being build before adding the dependencies finished Maybe also someone can also give hint how to speed up or avoid the update step, configure and build step on

[CMake] can non cmake projects be added by externalproject_add?

2013-11-12 Thread Witold E Wolski
And if so how would I do it? I am actually trying to do it for glog (google log). regards Witold -- Witold Eryk Wolski -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support

[CMake] PROJECT_SOURCE_DIR ...

2013-11-10 Thread Witold E Wolski
Looking at CMakeLists.txt and trying to anderstand... the project is: PROJECT(LIBFBI) than there are variables within the the file such as LIBFBI_BINARY_DIR LIBFBI_SOURCE_DIR They seem not be set in this script nor in the included script. Does cmake generates these variables? If so can anyone

Re: [CMake] ExternalProject_Add examples

2013-10-27 Thread Witold E Wolski
it to make it specific to that project. This mostly amounts to setting its dependencies, where to download the source from, and which version to download. -- Kent Williams norman-k-willi...@uiowa.edu On 10/24/13 3:35 AM, Witold E Wolski wewol...@gmail.com wrote: Would also like

Re: [CMake] ExternalProject_Add examples

2013-10-24 Thread Witold E Wolski
Would also like to start configuring external dependencies with ExternalProject_Add So some examples would be pretty useful to me. So did you ended up collecting some examples? Sure, you posted in this links to repositories, but finding the ExternalProject_Add in these huge projects with

[CMake] find_package( Boost ${BOOST_MIN_VERSION} REQUIRED is ignored....

2013-03-01 Thread Witold E Wolski
The story actually starts with an compile error: undefined reference to `boost::filesystem3::path::stem() const' which I do not understand. I am developing on ubuntu 12.04 with boost 1.46 and 1.48 installed. AFAIK filesystem V3 is the default since boost 1.45. My cmakelists.txt file

[CMake] enabling c++11 features?

2013-01-17 Thread Witold E Wolski
I would like to use the override keyword I added to my root CMakeLists.txt file SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -std=c++0x) (I am using gcc 4.6) However I am still getting an error i.e: error: ‘override’ does not name a type for the following declaration void getRT(std::vectordouble

[CMake] Can not find test to add properties to:

2012-12-14 Thread Witold E Wolski
I am trying to build a project on a 'custom' linux machine. When running cmake (cmake version 2.6-patch 4) thats the error I am getting. (set_tests_properties): set_tests_properties Can not find test to add properties to: The relevant section in the CMakeLists.txt file looks like this:

Re: [CMake] Can not find test to add properties to:

2012-12-14 Thread Witold E Wolski
Found a solution: removing NAME from add_test(NAME hdf5mstest helps. No errors with cmake 2.6 regards On 14 December 2012 10:15, Witold E Wolski wewol...@gmail.com wrote: I am trying to build a project on a 'custom' linux machine. When running cmake (cmake version 2.6-patch 4) thats

[CMake] How to extract the directory path from find_library ?

2012-12-14 Thread Witold E Wolski
Hi, I am using FIND_LIBRARY(CPPUNIT_LIBRARY NAMES cppunit HINTS ${CPPUNIT_INCLUDE_DIR}/../lib) to find library locations. But what I am needing is the directory containing the lib and not the full path. How do I get it? cheers -- Witold Eryk Wolski Triemlistrasse 155 8047 Zuerich --

Re: [CMake] How to extract the directory path from find_library ?

2012-12-14 Thread Witold E Wolski
Hi Eike, Thx for the good advice. Witold On 14 December 2012 14:32, Rolf Eike Beer e...@sf-mail.de wrote: Am , schrieb Witold E Wolski: Hi, I am using FIND_LIBRARY(CPPUNIT_LIBRARY NAMES cppunit HINTS ${CPPUNIT_INCLUDE_DIR}/../lib) to find library locations. But what I am needing

[CMake] Looking for a good FindHDF5.cmake module

2012-12-14 Thread Witold E Wolski
Hi, I am looking for a FindHDF5.cmake module which I could ship with my project. Thx Witold -- Witold Eryk Wolski Triemlistrasse 155 8047 Zuerich -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep

[CMake] system dependent unsaturated dependencies

2012-12-14 Thread Witold E Wolski
Hi, Just run into a problem trying to build a project using cmake on a special linux distribution: My project depends on cppunit. I find the cppunit lib using find_library and the project builds nicely on my machine. However, on a different machine with a different linux distribution I run into a

Re: [CMake] Looking for a good FindHDF5.cmake module

2012-12-14 Thread Witold E Wolski
Hi Michael, Can you point me to the file please? I do not need the MPI part. I do develop on linux. best Witold -- Witold Eryk Wolski Triemlistrasse 155 8047 Zuerich -- Powered by www.kitware.com Visit other Kitware open-source projects at

[CMake] adding headers for QTCreator

2012-10-09 Thread Witold E Wolski
Hi, I try to add all header files in the include directory so they are visible in QTCreator. My attempt looks like this. file(GLOB Demo_HEADERS RELATIVE ${CMAKE_SOURCE_DIR}/include *.h) message(STATUS ) message(STATUS ${Demo_HEADERS}) message(STATUS ) add_library(headers SHARED ${Demo_HEADERS}

[CMake] platform independent combining several C/C++ libraries into one.

2012-09-21 Thread Witold E Wolski
Hi, I am wondering what is the cmake way to combine several libraries into one. How to do it on linux or windows is discussed here http://stackoverflow.com/questions/2157629/linking-static-libraries-to-other-static-libraries

[CMake] configuring cmake using program options?

2012-09-10 Thread Witold E Wolski
Hi, When calling ccmake I can configure a variable Mylib_DIR (library location)/ However, I would like to run the configuration and build process in bash script (its an out of source build). Therefore I am trying to configure everything on the command line using the -D switch: cmake -G Eclipse