Re: [CMake] How can I write CMakeLists.txt to link a special library?

2008-12-15 Thread Hendrik Sattler
Michael Wild schrieb: if (NOT WIN32) # use pkg-config to get the directories and then use these values # in the FIND_PATH() and FIND_LIBRARY() calls find_package( PkgConfig REQUIRED ) pkg_check_modules( _sigcxx2 REQUIRED sigc++-2.0 ) endif (NOT WIN32) pkgconfig can also be used on

Re: [CMake] How can I write CMakeLists.txt to link a special library?

2008-12-15 Thread Werner Smekal
Hi, On 15.12.2008, at 16:39, Hendrik Sattler wrote: Michael Wild schrieb: if (NOT WIN32) # use pkg-config to get the directories and then use these values # in the FIND_PATH() and FIND_LIBRARY() calls find_package( PkgConfig REQUIRED ) pkg_check_modules( _sigcxx2 REQUIRED sigc++-2.0 )

Re: [CMake] How can I write CMakeLists.txt to link a special library?

2008-12-15 Thread Michael Wild
On 15. Dec, 2008, at 16:46, Werner Smekal wrote: Hi, On 15.12.2008, at 16:39, Hendrik Sattler wrote: Michael Wild schrieb: if (NOT WIN32) # use pkg-config to get the directories and then use these values # in the FIND_PATH() and FIND_LIBRARY() calls find_package( PkgConfig REQUIRED )

Re: [CMake] How can I write CMakeLists.txt to link a special library?

2008-12-15 Thread Michael Wild
On 14. Dec, 2008, at 5:41, Kermit Mei wrote: Werner Smekal wrote: Hi, Kermit Mei wrote: Hello, all. I used sigc++ library in my program, so I must compile my main.cc like this: c++ -Wall main.cc -o main -I/usr/include/sigc++-2.0 -I/usr/lib/sigc ++-2.0/include -lsigc-2.0 Then, how

[CMake] How can I write CMakeLists.txt to link a special library?

2008-12-13 Thread Kermit Mei
Hello, all. I used sigc++ library in my program, so I must compile my main.cc like this: c++ -Wall main.cc -o main -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -lsigc-2.0 Then, how can I write the CMakeLists.txt? I worte it like this: cmake_minimum_required(VERSION 2.6)

Re: [CMake] How can I write CMakeLists.txt to link a special library?

2008-12-13 Thread Werner Smekal
Hi, Kermit Mei wrote: Hello, all. I used sigc++ library in my program, so I must compile my main.cc like this: c++ -Wall main.cc -o main -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -lsigc-2.0 Then, how can I write the CMakeLists.txt? I worte it like this:

Re: [CMake] How can I write CMakeLists.txt to link a special library?

2008-12-13 Thread Kermit Mei
Werner Smekal wrote: Hi, Kermit Mei wrote: Hello, all. I used sigc++ library in my program, so I must compile my main.cc like this: c++ -Wall main.cc -o main -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -lsigc-2.0 Then, how can I write the CMakeLists.txt? I worte it like