diff options
-rw-r--r-- | CMakeLists.txt | 17 | ||||
-rw-r--r-- | include/CMakeLists.txt | 2 | ||||
-rw-r--r-- | plutil/CMakeLists.txt | 3 | ||||
-rw-r--r-- | src/CMakeLists.txt | 7 |
4 files changed, 21 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b6fe029..f3df1c9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,4 +19,19 @@ IF ( SWIG_FOUND AND PYTHON_LIBRARY ) ADD_SUBDIRECTORY( swig ) ENDIF ( SWIG_FOUND AND PYTHON_LIBRARY ) -CONFIGURE_FILE( "libplist.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/libplist.pc" )
\ No newline at end of file +CONFIGURE_FILE( "libplist.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/libplist.pc" ) + + +SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Library to parse and generate Apple's binary and XML PList format") +SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README") +SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING.LESSER") +SET(CPACK_PACKAGE_VERSION_MAJOR "0") +SET(CPACK_PACKAGE_VERSION_MINOR "1") +SET(CPACK_PACKAGE_VERSION_PATCH "0") +SET(CPACK_COMPONENT_LIB_DISPLAY_NAME "PList library") +SET(CPACK_COMPONENT_DEV_DISPLAY_NAME "PList development files") +SET(CPACK_COMPONENT_PLUTIL_DISPLAY_NAME "PList conversion tool") +set(CPACK_COMPONENT_DEV_DEPENDS lib) +set(CPACK_COMPONENT_PLUTIL_DEPENDS lib) +INCLUDE(CPack) + diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt index 8dc7e32..ac9af95 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt @@ -1,4 +1,4 @@ INSTALL( FILES ${CMAKE_CURRENT_SOURCE_DIR}/plist/plist.h - DESTINATION include/plist ) + DESTINATION include/plist COMPONENT dev) diff --git a/plutil/CMakeLists.txt b/plutil/CMakeLists.txt index c6dc3f3..fad1cde 100644 --- a/plutil/CMakeLists.txt +++ b/plutil/CMakeLists.txt @@ -5,5 +5,4 @@ SET(plutil_SRC ADD_EXECUTABLE(plutil ${plutil_SRC}) TARGET_LINK_LIBRARIES(plutil plist) -INSTALL( PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/plutil - DESTINATION bin ) +INSTALL( TARGETS plutil RUNTIME DESTINATION bin COMPONENT plutil )
\ No newline at end of file diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d5e6205..8a79c22 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -11,7 +11,6 @@ ADD_LIBRARY( plist SHARED ${libplist_SRC} ) TARGET_LINK_LIBRARIES( plist ${LIBXML2_LIBRARIES} ${GLIB2_LIBRARIES} ) INSTALL(TARGETS plist - RUNTIME DESTINATION bin - LIBRARY DESTINATION lib - ARCHIVE DESTINATION lib -) + RUNTIME DESTINATION bin COMPONENT lib + LIBRARY DESTINATION lib COMPONENT dev + ARCHIVE DESTINATION lib COMPONENT dev) |