Message: previous - next
Month: May 2016

Re: [trinity-devel] Re: Re: testing: tdeabc/vcardparser$ more README.testing

From: Michele Calgaro <michele.calgaro@...>
Date: Mon, 2 May 2016 10:48:35 +1000
On 2016/05/02 05:08 AM, deloptes wrote:
> 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
> tdeabc/tests/CMakeFiles/testldapclient.dir/testldapclient.cpp.o
> /opt/software/KDE/TDE/tdelibs-trinity-14.0.3/tdeabc/tests/testldapclient.cpp:161:30:
> 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
> regards
Hi Emanoil,can you share the cmakelist file you created? i will try to take a look at this later during the second part
of week.