Modify the CMake file so it produces a .deb file with just the library with the proper links.

This commit is contained in:
daid 2016-07-11 10:32:06 +02:00
parent 2d4543673e
commit 4a1b48a8af
2 changed files with 6 additions and 5 deletions

View File

@ -153,19 +153,20 @@ IF(WIN32)
ENDIF(WIN32)
ADD_SUBDIRECTORY(libnfc)
ADD_SUBDIRECTORY(include)
ADD_SUBDIRECTORY(utils)
ADD_SUBDIRECTORY(examples)
# ADD_SUBDIRECTORY(include)
# ADD_SUBDIRECTORY(utils)
# ADD_SUBDIRECTORY(examples)
# Binary Package
IF(WIN32)
SET(CPACK_GENERATOR "ZIP")
ELSE(WIN32)
SET(CPACK_GENERATOR "TBZ2")
SET(CPACK_GENERATOR "DEB")
ENDIF(WIN32)
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Near Field Communication (NFC) library")
SET(CPACK_PACKAGE_VENDOR "Roel Verdult")
SET(CPACK_PACKAGE_CONTACT "noreply@ultimaker.com")
SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README")
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "libnfc")

View File

@ -89,7 +89,7 @@ IF(LIBUSB_FOUND)
TARGET_LINK_LIBRARIES(nfc ${LIBUSB_LIBRARIES})
ENDIF(LIBUSB_FOUND)
SET_TARGET_PROPERTIES(nfc PROPERTIES SOVERSION 0)
SET_TARGET_PROPERTIES(nfc PROPERTIES SOVERSION 5)
IF(WIN32)
# Libraries that are windows specific