Lisandro Damián Nicanor Pérez
unread,Jun 3, 2013, 12:35:11 PM6/3/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to qextser...@googlegroups.com, Elia Mazzuoli, pat...@von-reth.de
On Monday 03 June 2013 07:27:49 Elia Mazzuoli wrote:
> Hi,
>
> Can I compile the qextserialport like shared library with normal procudere
> and then use it by CMakeFile ??
You should be able.
> I have followed the guide for shared
> compiling, but writing
>
> find_package(qextserialport REQUIRED)
>
> I get "not found"..
>
> Any idea?
Yes, libqextseriaport does not ships a CMake configuration file, so you can't
use find_package.
What I did to "solve" this issue is:
# We also need qextserialport, but as it doesn't provides a CMake
# configuration file, we hardcode the path (not nice, but works)
include_directories("/usr/include/QtExtSerialPort/")
That's of course if you use qextserialport as provided by your system (if you
use Linux).
You may need to adjust that path if you have the lib somewhere else.
Kinds regards, Lisandro.
--
Lisandro Damián Nicanor Pérez Meyer
http://perezmeyer.com.ar/
http://perezmeyer.blogspot.com/