[CMake] cmake fails on first run but succeeds when run again after make

2018-08-05 Thread Damir Porobic
Hi folks, I'm trying to troubleshoot a build problem where, when I first time run "cmake .." it fails to find a resource file, when I run "make" it builds the resource files but fails later on, now when I try to run "cmake .." again it succeeds. After this point everything runs fine and it

Re: [CMake] Fwd: Problem with creating shared library

2018-08-15 Thread Damir Porobic
nit tests in its project? If no executable linked to the ilb you won't discover the link error until you try to link something to the lib. This is a kind wild guess, don't take it personally :-) Le mer. 15 août 2018 à 16:21, Damir Porobic mailto:damir_poro...@live.com>> a écrit : Thanks for th

[CMake] Problem with creating shared library

2018-08-15 Thread Damir Porobic
Hi Folks, I'm trying to write a shared library and run into an issue where I can't find any clues to where the problem is. I have a project with following structure: src/ dir1/ file1.h file1.cpp dir2/ file2.h file2.cpp Now I have this

[CMake] How to share a custom widget with cmake

2018-08-12 Thread Damir Porobic
Hi all, As the subject line says, what would be the best approach to share a custom Widget with cmake? I have written a custom Qt Widget that I would like to be able to use in other projects. Would that be a shared library? Or is there another approach? Thanks in advance! Best regards,

Re: [CMake] Problem with creating shared library

2018-08-20 Thread Damir Porobic
From: Eric Noulard Sent: Sunday, August 19, 2018 22:44 To: Damir Porobic Cc: smanc...@jlab.org; CMake Mailinglist Subject: Re: [CMake] Problem with creating shared library Hi Damir, May be the issue has nothing to do with the way you build the exported <>Config.cmake files. Since may be some na

Re: [CMake] Problem with creating shared library

2018-08-24 Thread Damir Porobic
about this one: auto kImageAnnotator = new KImageAnnotator(pixmap); kImageAnnotator->show(); kImageAnnotator->testMethod(); From: Sebastián Mancilla Sent: Thursday, August 23, 2018 22:13 To: Damir Porobic Cc: cmake@cmake.org Subject: Re: [CMake] Problem wit

Re: [CMake] Problem with creating shared library

2018-08-26 Thread Damir Porobic
hen I manually create a link to the installed file: $ sudo ln -s /usr/local/lib64/libkImageAnnotator.so /usr/local/lib64/libkImageAnnotator.so.0.0.1 Everything finally works, but I need to fix this final issue with the missing link. This was working earlier I think. ___

Re: [CMake] Problem with creating shared library

2018-08-19 Thread Damir Porobic
MAKE_CURRENT_LIST_DIR}/FooTargets.cmake") endif() All this is pretty much the same for any project. Here are the best links explaining it: https://pabloariasal.github.io/2018/02/19/its-time-to-do-cmake-right/ http://unclejimbo.github.io/2018/06/08/Modern-CMake-for-Library-Developers/ El

Re: [CMake] Problem with creating shared library

2018-08-22 Thread Damir Porobic
) target_link_libraries(testApp kImageAnnotator) Am I missing something again? From: Sebastián Mancilla Sent: Wednesday, August 22, 2018 00:51 To: Eric Noulard Cc: Damir Porobic; cmake@cmake.org Subject: Re: [CMake] Problem with creating shared library I fixed

Re: [CMake] Problem with creating shared library

2018-09-01 Thread Damir Porobic
) Manually creating a link seems to fix the issue, but I guess there is a way to let cmake generate it. Any idea? From: Damir Porobic Sent: Sunday, August 26, 2018 13:50 To: Sebastián Mancilla Cc: cmake@cmake.org Subject: Re: [CMake] Problem with creating shared