No subject


Thu May 27 11:52:52 EDT 2010


are handled slightly differently to libraries. To solve the library
issue, I used the following which worked correctly:

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
# Dependencies
find_package =A0 =A0 =A0 =A0 =A0(PkgConfig)
pkg_check_modules =A0 =A0 (FTDI =A0REQUIRED =A0libftdi>=3D0.13)

# Include & build
include_directories =A0 (. ${FTDI_INCLUDE_DIRS})
add_library =A0 =A0 =A0 =A0 =A0 (libgalinette SHARED device.c error.c firmw=
are.c
flash.c libgalinette.h libgalinette-private.h)
set_target_properties (libgalinette PROPERTIES PREFIX ""
LINK_INTERFACE_LIBRARIES "" SOVERSION 0)
target_link_libraries (libgalinette ${FTDI_LIBRARIES})

# Install
install (TARGETS libgalinette LIBRARY DESTINATION ${libdir})
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

set_target_properties doesn't seem to work on executables though.

Hopefully someone who knows a bit more than I do will be able to spot
what I'm doing wrong...

Kind regards,
Paul.


More information about the CMake mailing list