Message: previous - next
Month: May 2016

Re: Re: testing: tdeabc/vcardparser$ more README.testing

From: deloptes <deloptes@...>
Date: Sun, 01 May 2016 21:08:53 +0200
Michele Calgaro wrote:

>> Ah, thanks, this is exactly what I was looking for. It has been a couple
>> of years since I last created CMakeList.txt . I think I would need a
>> refresh of this part of my memory - it wasn't thaaaat hard as the
>> automake stuff.
> Copy one from another folder (example from vcard or vcardfolder) and
> modify from there. Easier way to learn something ;-)
>> New query:
>> 1. Is there a good way to convert the into CMakeList.txt?
>> 2. Is there an alternative way to test the library with the function of
>> interest without installing it?
> You can create a small test program with your test code, compile and
> execute. That should be reasonably quick. No need to set any special
> linking folder, if you have everything installed correctly if should just
> find the right function in the right library file by itself. That is how I
> tested that regex code in VCardTool
> Cheers
>   Michele

I created usable CMakeList.txt to compile tests in tdeabc. This I did by
extending the present CMakeList.txt file with some information from the This is almost working. The problem I face is this

[ 71%] Building CXX object
fatal error: testldapclient.moc: No such file or directory
 #include "testldapclient.moc"
Can you advise how one could tell CMake to create (and use)
testldapclient.moc ?

Next thing to do is to make possible compiling the tests for vcardparser.

thanks in advance