Commit 398bb31f authored by Mathis Rosenhauer's avatar Mathis Rosenhauer

CPack packaging

parent 25cae37e
......@@ -43,3 +43,26 @@ INCLUDE_DIRECTORIES("${PROJECT_SOURCE_DIR}/src")
ADD_SUBDIRECTORY(src)
# EXCLUDE_FROM_ALL doesn't seem to be working in VS
ADD_SUBDIRECTORY(tests)
SET(CPACK_PACKAGE_NAME "libaec")
SET(CPACK_PACKAGE_VENDOR "dkrz.de")
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY
"libaec - Adaptive Entropy Coding library")
SET(CPACK_PACKAGE_VERSION "0.3")
SET(CPACK_PACKAGE_VERSION_MAJOR "0")
SET(CPACK_PACKAGE_VERSION_MINOR "3")
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "libaec")
SET(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/COPYING")
SET(CPACK_RESOURCE_FILE_README "${PROJECT_SOURCE_DIR}/README")
IF(CMAKE_CL_64)
SET(CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES64")
SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY
"${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION} (Win64)")
ELSE(CMAKE_CL_64)
SET(CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES")
SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY
"${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}")
ENDIF(CMAKE_CL_64)
INCLUDE(CPack)
......@@ -26,8 +26,30 @@ IF(UNIX)
ENDIF(UNIX)
INSTALL(FILES libaec.h szlib.h DESTINATION include)
INSTALL(TARGETS aec sz aec_client
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
IF(WIN32)
INSTALL(TARGETS aec sz
RUNTIME
DESTINATION bin
ARCHIVE
DESTINATION lib
COMPONENT libraries
)
ELSE(WIN32)
INSTALL(TARGETS aec sz
LIBRARY
DESTINATION lib
ARCHIVE
DESTINATION lib
COMPONENT libraries
)
ENDIF(WIN32)
INSTALL(TARGETS aec_client
RUNTIME
DESTINATION bin
COMPONENT applications
)
INSTALL(FILES libaec.h szlib.h
DESTINATION include
COMPONENT headers
)
SET(CPACK_COMPONENTS_ALL applications libraries headers)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment