[CMake] how to link to the libsvm in cmake?

2008-10-04 Thread kdsfinger
hi, there I want to use the libsvm library in c++ with cmake but it seems I did not set it correct in the CMakeLists.txt. Here is what I did in CMakeLists.txt: ADD_DEFINITIONS(-Wall -O2) #build a shared library ADD_LIBRARY(svm SHARED mytoy.cpp) #for testing the shared library you probably need

[CMake] Can someone provide a FindOpenMp.cmake?

2008-09-11 Thread kdsfinger
hi, there I am trying to use the OpenMp library with cmake, but can't find the FindOpenMp.cmake anywhere. I tried to make myself but failed. Can someone share me the FindOpenMp.cmake file? Thanks a lot. zl2k ___ CMake mailing list CMake@cmake.org http://w

[CMake] qt3 simple application question

2008-09-01 Thread kdsfinger
hi, there I need to write an application in qt3 and here is my very beginning: just display a mainwindow and nothing else (the mainwindow is produced by qt designer windowbase.ui ) I have my own reason to do it in qt3 not in qt4 (for thumbnail view). During compiling, I get: -

[CMake] require sample CMakeLists.txt for qt3 ui

2008-08-30 Thread kdsfinger
hi, there I searched internet for a simple tutorial on cmake+qt3+ui but can't find any. I do have the cmake+qt4+ui work but the problem is that the image thumbnail view in qt4(kde4) is extremely slow comparing to qt3. So I have to do the program with cmake+qt3+ui. Can someone give me a sample CMake

[CMake] Unknown CMake command "kde4_automoc" problem

2008-08-03 Thread kdsfinger
hi, there I am trying to compile a kde4 development tutorial c++ program with cmake but got the Unknown CMake command "kde4_automoc" error message. Here is the CMakeLists.txt PROJECT( kapp4) FIND_PACKAGE(KDE4 REQUIRED) INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR} ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ${C

[CMake] how to write CMakeLists.txt to use exiv2?

2008-02-07 Thread kdsfinger
hi, there I am trying to use exiv2 in my c++ program, but not sure how to set this up with cmake. There is FindExiv2.cmake on the internet but now work (and I guess is now out of date). After install the exiv2, it locates in the following dir: /usr/include/exiv2 /usr/include/exiv2/exiv2_version.h

[CMake] ccmake not compiled in kubuntu, please help

2007-06-22 Thread kdsfinger
hi, all I got the problem that the ccmake was not compiled in the kubuntu (a kde debian version). What else library should I install to make the ccmake available? It says curses library needed for the ccmake but I don't know what are the exact name of the librarys in kubuntu. I have ncurses-base,

Re: [CMake] help with FindBoost.cmake

2007-03-31 Thread kdsfinger
On 3/31/07, Tristan Carel <[EMAIL PROTECTED]> wrote: On 3/31/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On 3/31/07, Filipe Sousa <[EMAIL PROTECTED]> wrote: > > [EMAIL PROTECTED] wrote: > > > hi, > > > I am using cmake and some library of boost on a linux box. When I use > > > the boost::s

Re: [CMake] help with FindBoost.cmake

2007-03-31 Thread kdsfinger
On 3/31/07, Filipe Sousa <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: > hi, > I am using cmake and some library of boost on a linux box. When I use > the boost::shared_ptr, everything is fine. But when I try to > #include > #include , > the cmake generates lots of "undefined reference to

[CMake] help with FindBoost.cmake

2007-03-30 Thread kdsfinger
hi, I am using cmake and some library of boost on a linux box. When I use the boost::shared_ptr, everything is fine. But when I try to #include #include , the cmake generates lots of "undefined reference to 'boost::filesystem::...' errors. Is there something wrong with the FindBoost.cmake? Why I

Re: [CMake] "INCLUDE called with wrong number of arguments" error, please help.

2007-01-04 Thread kdsfinger
On 1/4/07, Bill Hoffman <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: > hi, > I recently installed the lapack library on my linux box and would like > to configure cmake to use it. I steal the FindLapack.cmake file from > http://www.mip.informatik.uni-kiel.de/~jw/cmake/CMakeModules/FindLAPA

[CMake] "INCLUDE called with wrong number of arguments" error, please help.

2007-01-04 Thread kdsfinger
hi, I recently installed the lapack library on my linux box and would like to configure cmake to use it. I steal the FindLapack.cmake file from http://www.mip.informatik.uni-kiel.de/~jw/cmake/CMakeModules/FindLAPACK.cmake (btw, I also use the FindGSL.cmake from there and it works great) and put it

[CMake] need find lapack file

2007-01-03 Thread kdsfinger
hi, all I installed the lapack library on my fedora box but the cmake seems can't find it. Can someone provid a find file for that package? Thanks a lot. zl2k ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] newbie Q: SET command

2006-06-17 Thread kdsfinger
hi, all I have the following line in a CMakeList.txt SET(SimpleViewSrcs $(SimpleViewSrcs) SimpleView3.cxx) What does $(SimpleViewSrcs) stands for? I used the MESSAGE($(SimpleViewSrcs)) and prints out: main.cxxSimpleView3.cxx Can someone explain what main.cxxSimpleView3.cxx stands for? I checke

[CMake] question related with Qt

2006-06-16 Thread kdsfinger
hi, all I am reading 2 CMakeList.txt files coming from the examples (SimpleView, Events) in vtk (Examples/GUI/Qt/). I am using Qt3.3. There is the following command in one of the CMakeList.txt QT_WRAP_UI(qtevents UI_HDRS UI_SRCS GUI.ui) Where can I find the reference for the key words "UI_HDRS

[CMake] Question about INSTALL_TARGETS error

2006-06-12 Thread kdsfinger
hi, all I am using GUISupport/Qt come with the vtk5.0 and try to compile with cmake but get the following error message: CMake Error: Error in cmake code at /home/me/vtk/VTK/GUISupport/Qt/CMakeLists.txt:183: INSTALL_TARGETS called with incorrect number of arguments The CMakeLists.txt with the e

Re: [CMake] how to write cmake file for ImageMagick package?

2006-06-12 Thread kdsfinger
On 6/12/06, Jan Woetzel <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote:> I installed the newest imagemagick package as root. The Magick++.h and> the folders of magick, Magick++ and wand are located in /usr/local/include Your problem is not about finding the libs.It is about cmake (not) finding

Re: [CMake] how to write cmake file for ImageMagick package?

2006-06-12 Thread kdsfinger
On 6/12/06, Filipe Sousa <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote:> On 6/12/06, Jan Woetzel <[EMAIL PROTECTED]> wrote:> I tried FIND_PACKAGE(ImageMagickLib) and got this: >>  CMake Error: ImageMagickLib_DIR is set to "/usr/local/include", which is> not a directory containing ImageMagickLi

Re: [CMake] how to write cmake file for ImageMagick package?

2006-06-12 Thread kdsfinger
On 6/12/06, Filipe Sousa <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote:> On 6/12/06, Filipe Sousa <[EMAIL PROTECTED]> wrote:>>> I am usng ImageMagick-6.2.8. I was asking for cmake version (cmake --version)> Here is my CMakeLists.txt:>> PROJECT(RREM)>> FIND_PACKAGE(IMAGEMAGICKLIB)# the IMAGEMAG

Re: [CMake] how to write cmake file for ImageMagick package?

2006-06-12 Thread kdsfinger
On 6/12/06, Filipe Sousa <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote:> I do have FIND_PACKAGE(IMAGEMAGICK) in the CMakeLists.txt.  I guess for the> compatible problem, I have to use all capitals. I also tried > IMAGEMAGICKLIB,  doesn't work. The cmake sees the> FindImageMagick.cmakesince eac

Re: [CMake] how to write cmake file for ImageMagick package?

2006-06-12 Thread kdsfinger
On 6/12/06, Jan Woetzel <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote:> I do have FIND_PACKAGE(IMAGEMAGICK) in the CMakeLists.txt.The (file) names are case sensitive!Try FIND_PACKAGE(ImageMagickLib) Jan.--  Dipl.-Ing. Jan Woetzel--  University of

Re: [CMake] how to write cmake file for ImageMagick package?

2006-06-12 Thread kdsfinger
On 6/12/06, Filipe Sousa <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote:> On 6/12/06, Jan Woetzel <[EMAIL PROTECTED]> wrote:>> Thanks, Jan. > The FindImageMagick.cmake I wrote was put in the> /usr/local/share/CMake/Modules/> I now copyed yours and put it there, but when I do ccmake . ,it gives

Re: [CMake] how to write cmake file for ImageMagick package?

2006-06-12 Thread kdsfinger
On 6/12/06, Jan Woetzel <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote:> ...use the Magick++ package ... So I am trying to write another> FindImageMagick.cmake instead (not work either).You can use mine, works on Linux and Windows. http://www.mip.informatik.uni-kiel.de/~jw/cmake/CMakeModules/Fi

[CMake] how to write cmake file for ImageMagick package?

2006-06-11 Thread kdsfinger
hi, all, I am trying to use the Magick++ package but not know how to include it in cmake. The cmake comes with the FindImageMagick.cmake in the Modules, but does not work. So I am trying to write another FindImageMagick.cmake instead (not work either). Here is the cmake file I wrote: -

Re: [CMake] how to use external gnu make library

2006-03-13 Thread kdsfinger
With the FindGSL.cmake copy to the CMake module dir, Here is my CMakeLists.txt (with TARGET_LINK_LIBRARIES) PROJECT(test1) FIND_PACKAGE(GSL) ADD_DEFINITIONS(-Wall -O2) #list all source files here ADD_EXECUTABLE(test1 main.cpp) TARGET_LINK_LIBRARIES(test1 gsl_sf_bessel_j0) but still got the error

[CMake] how to use external gnu make library

2006-03-13 Thread kdsfinger
hi, cmake-user I am trying to use the gnu gsl package in vtk. The gsl is make installed by gnu, not cmake. How can I use the library in my vtk project? I put something like FIND_PACKAGE(GSL) IF(GSL_FOUND)   INCLUDE(${GSL_USE_FILE}) ELSE(GSL_FOUND)   MESSAGE(FATAL_ERROR   "Please set GSL_D