Re: [CMake] [java] How do I add an implements MyI to Swig generated java class?
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 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 gernated private long swigCPtr; protected boolean swigCMemOwn; ... @Override public boolean waitForNotify() { return SwigTestWrappersJNI.B_waitForNotify(swigCPtr, this); } } But what I get when I tell swig to wrap the Block interface and the class B is in java public class Block { private long swigCPtr; protected boolean swigCMemOwn; protected Block(long cPtr, boolean cMemoryOwn) { swigCMemOwn = cMemoryOwn; . } and public class B extends Block { So I am thinking about a solution just to let swig wrap the class B and declare in addition the interface Block also in java by hand but what I am missing at the moment is how to tell swig to add to the auto generated class B declaration the implements Block clause. Thank you -- Witold Eryk Wolski -- 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 the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake
[CMake] [java] How do I add an implements MyI to Swig generated java class?
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 gernated private long swigCPtr; protected boolean swigCMemOwn; ... @Override public boolean waitForNotify() { return SwigTestWrappersJNI.B_waitForNotify(swigCPtr, this); } } But what I get when I tell swig to wrap the Block interface and the class B is in java public class Block { private long swigCPtr; protected boolean swigCMemOwn; protected Block(long cPtr, boolean cMemoryOwn) { swigCMemOwn = cMemoryOwn; . } and public class B extends Block { So I am thinking about a solution just to let swig wrap the class B and declare in addition the interface Block also in java by hand but what I am missing at the moment is how to tell swig to add to the auto generated class B declaration the implements Block clause. Thank you -- 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 the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake
[CMake] externalproject_add and make -j 2 errors
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 external_projects if they are already build? best 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 the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] can non cmake projects be added by externalproject_add?
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 the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] PROJECT_SOURCE_DIR ...
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 point me to where this is documented? And they are the same as CMAKE_BINARY_DIR , or CMAKE_SOURCE_DIR. So why one would use the ${PROJECT}_BINARY_DIR variables? Kind 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 the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] ExternalProject_Add examples
Dear Kent, Thank you for pointing me to this project. I did some searching for an explanation of the superbuild cmake pattern but didn't find any text resources. I am wondering if the superbuild pattern can cover the following case: I.e. given 3 projects A, B and C where B depends on A and C depends on B ... that means B will not build without A... and C not without B. Is this covered by the superbuild pattern for C? Or asked differently how can the superbuild of C control the build of B so that B finds the product of A? I guess this is controlled by the order how the external projects are added. Right? In which file is this done in the NamiceExternalProject? Furthermore, What happens if B is an Superbuild patter project already? regards Witold On 25 October 2013 17:18, Williams, Norman K norman-k-willi...@uiowa.edu wrote: There is our project here: https://github.com/BRAINSia/NAMICExternalProjects This is set up using the CMake 'SuperBuild' pattern first used with Slicer. It might be more complicated a setup than you have in mind, but it builds a large number of interdependent packages. It's structured as a two-phase setup: First, all prerequisite packages are built, and then the actual project is built. As NamicExternalProjects is set up as a functioning prototype, the 'top-level' CMake project is empty. Adding a new external project is a matter of copying SuperBuild/External_Template.cmake to SuperBuild/External_your_project.cmake and editing 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 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 hundreds of CMakeLists.txt is not easy if they are not in the top-level CMakeLists.txt and they are not there. My dependencies are gtest - Cmake glog - Cmake tbb - configure make vigra - Cmkae based soci - Cmake based pwiz regards On 18 March 2012 00:24, Luigi Calori l.cal...@cineca.it wrote: On 17/03/2012 22.11, Marcus D. Hanwell wrote: On Sat, Mar 17, 2012 at 5:03 PM, Bill Lorensenbill.loren...@gmail.com wrote: Folks, I've recently created a number of super builds using CMake's External Project mechanism. Each external project requires some sort of download, configuration, build and possibly install. The CMake defines needed to correctly access the results of the external project vary significantly. The trickiest part is find the proper download, configuration and CMake defines. For example, for the Point Cloud Library (http://pointclouds.org/) I created these external projects: VTK - git, cmake, make; VTK_DIR FLANN - zip, cmake, make install; FLANN_LIBRARY, FLANN_INCUDE_DIR Eigen - .tar.bz2,; EIGEN_INCLUDE_DIR Qhull - git, cmake, make;QHULL_LIBRARY,QHULL_INCLUDE_DIR Boost - .tar.gz, bootstrap.sh, b2; BOOST_ROOT GTest - .zip, cmake, make; GTEST_ROOT,GTEST_INCLUDE_DIR Slicer4 has many more. Should we start collecting sample ExternalProject_Add files for external projects? We have talked about doing this too (I have Eigen, Boost, GTest and others for example). The standard CMake based projects hardly seem worth it, but it depends on what you want to do with them I suppose. For the work we are doing in chemistry we have been working on an experimental superbuild that uses a common prefix in the build tree to install to, and then all we need pass in is CMAKE_PREFIX_PATH - this can make the logic significantly easier for dependent CMake projects as it will always search within the prefix first. I did something similar, trying to collet all the build of stuff that I had to do in a single place powered by cmake Used CMAKE_PREFIX_PATH and a single source place where all the builds download and expand you can have a look at https://hpc-forge.cineca.it/svn/CmakeBuilds/lib/ It's just for my use only, so really dirty and not properly checked, I' m also looking for good starting point for common stuff like Qt, boost and others (I' tried to collect in the folder Packages the tricky part of building the components,) I' ve tried to define a dependency graph but it' still messy anyway I would really appreciate a place where to share good recipies for CMake building packeges Thanks Luigi The Qt external project was pretty tricky too, and we are using that in several places along with smaller libraries like libxml2. Marcus -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check
Re: [CMake] ExternalProject_Add examples
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 hundreds of CMakeLists.txt is not easy if they are not in the top-level CMakeLists.txt and they are not there. My dependencies are gtest - Cmake glog - Cmake tbb - configure make vigra - Cmkae based soci - Cmake based pwiz regards On 18 March 2012 00:24, Luigi Calori l.cal...@cineca.it wrote: On 17/03/2012 22.11, Marcus D. Hanwell wrote: On Sat, Mar 17, 2012 at 5:03 PM, Bill Lorensenbill.loren...@gmail.com wrote: Folks, I've recently created a number of super builds using CMake's External Project mechanism. Each external project requires some sort of download, configuration, build and possibly install. The CMake defines needed to correctly access the results of the external project vary significantly. The trickiest part is find the proper download, configuration and CMake defines. For example, for the Point Cloud Library (http://pointclouds.org/) I created these external projects: VTK - git, cmake, make; VTK_DIR FLANN - zip, cmake, make install; FLANN_LIBRARY, FLANN_INCUDE_DIR Eigen - .tar.bz2,; EIGEN_INCLUDE_DIR Qhull - git, cmake, make;QHULL_LIBRARY,QHULL_INCLUDE_DIR Boost - .tar.gz, bootstrap.sh, b2; BOOST_ROOT GTest - .zip, cmake, make; GTEST_ROOT,GTEST_INCLUDE_DIR Slicer4 has many more. Should we start collecting sample ExternalProject_Add files for external projects? We have talked about doing this too (I have Eigen, Boost, GTest and others for example). The standard CMake based projects hardly seem worth it, but it depends on what you want to do with them I suppose. For the work we are doing in chemistry we have been working on an experimental superbuild that uses a common prefix in the build tree to install to, and then all we need pass in is CMAKE_PREFIX_PATH - this can make the logic significantly easier for dependent CMake projects as it will always search within the prefix first. I did something similar, trying to collet all the build of stuff that I had to do in a single place powered by cmake Used CMAKE_PREFIX_PATH and a single source place where all the builds download and expand you can have a look at https://hpc-forge.cineca.it/svn/CmakeBuilds/lib/ It's just for my use only, so really dirty and not properly checked, I' m also looking for good starting point for common stuff like Qt, boost and others (I' tried to collect in the folder Packages the tricky part of building the components,) I' ve tried to define a dependency graph but it' still messy anyway I would really appreciate a place where to share good recipies for CMake building packeges Thanks Luigi The Qt external project was pretty tricky too, and we are using that in several places along with smaller libraries like libxml2. Marcus -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake -- Luigi Calori SuperComputing Applications and Innovation Department CINECA - via Magnanelli, 6/3, 40033 Casalecchio di Reno (Bologna) - ITALY Tel: +39 051 6171509 Fax: +39 051 6132198 hpc.cineca.it -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake -- 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 the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] find_package( Boost ${BOOST_MIN_VERSION} REQUIRED is ignored....
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 contains something on these lines find_package( Boost COMPONENTS filesystem system iostreams thread regex program_options) if(Boost_FOUND) SET(inc ${inc} ${Boost_INCLUDE_DIRS}) SET( ${boostlib} ${Boost_LIBRARIES}) else() message(STATUS Couldn't find Boost ) endif() message( STATUS ${Boost_LIBRARIES} ) to my target I am adding TARGET_LINK_LIBRARIES(premtest ${QT_LIBRARIES} ${Boost_LIBRARIES} I searched the so file for the stem symbol and did not found them so no I want to build boost myself and somehow tell my project that it should look for the proper version by doing this: SET(BOOST_MIN_VERSION 1.53.0) find_package( Boost ${BOOST_MIN_VERSION} REQUIRED COMPONENTS date_time filesystem system program_options) However this info is ignored and this is what the boost cmake script finds. /usr/lib/libboost_filesystem-mt.so;/usr/lib/libboost_system-mt.so;/usr/lib/libboost_iostreams-mt.so;/usr/lib/libboost_thread-mt.so; any help higly appreciated. regards -- 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 messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] enabling c++11 features?
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 rt) const override; regards -- 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 messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Can not find test to add properties to:
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: ENABLE_TESTING() add_test(NAME hdf5mstest WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} COMMAND ${BinOut}/hdf5mstest ) set_tests_properties(hdf5mstest PROPERTIES ENVIRONMENT ${LD_VARNAME}=${LD_PATH}) Interestingly, on my machine with cmake version 2.8.7 I do not have such errors. Is it due to some cmake 2.8 syntax not valid in 2.6 ? If so how can I adjust my CMakeLists.txt file to be compatible with 2.6? regards 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 messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Can not find test to add properties to:
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 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: ENABLE_TESTING() add_test(NAME hdf5mstest WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} COMMAND ${BinOut}/hdf5mstest ) set_tests_properties(hdf5mstest PROPERTIES ENVIRONMENT ${LD_VARNAME}=${LD_PATH}) Interestingly, on my machine with cmake version 2.8.7 I do not have such errors. Is it due to some cmake 2.8 syntax not valid in 2.6 ? If so how can I adjust my CMakeLists.txt file to be compatible with 2.6? regards Witold -- Witold Eryk Wolski Triemlistrasse 155 8047 Zuerich -- 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 messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] How to extract the directory path from find_library ?
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 -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] How to extract the directory path from find_library ?
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 is the directory containing the lib and not the full path. How do I get it? cmake --help-command get_filename_component And if you think about using that for linking: all you need is the full path. Just pass that to target_link_libraries. Don't even think about messing around with link_directories(). Eike -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/** opensource/opensource.htmlhttp://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/**CMake_FAQhttp://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/**listinfo/cmakehttp://www.cmake.org/mailman/listinfo/cmake -- 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 messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Looking for a good FindHDF5.cmake module
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 messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] system dependent unsaturated dependencies
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 problem of unsaturated dependenices of the cppunit lib. /cluster/apps/cppunit/1.12.1/lib/libcppunit.so: undefined reference to `dlsym' doing some research on the web I figured out the I have to link against libdl too. How do I add this dependency transparently to the cmake file? regards -- 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 messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Looking for a good FindHDF5.cmake module
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 http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] adding headers for QTCreator
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} Dummy.cpp) Unfortunately the ${Demo_HEADERS} thing is empty :( regards -- 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 messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] platform independent combining several C/C++ libraries into one.
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 http://stackoverflow.com/questions/13128/how-to-combine-several-c-c-libraries-into-one but how do I do it platform independently with cmake. The project I have produces several libs but for user convinience I would like to ship a single library only. regards 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 messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] configuring cmake using program options?
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 CDT4 - Unix Makefiles -DMylib_DIR=/home/witold/prog/OpenMS/gitsvn ../mapdiv However, when starting ccmake the Mylib_DIR is still set to some default other default variable. cheers Wolski -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake