Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,23 @@ target_link_libraries(cpackexamplelib Boost::filesystem ${YAML_CPP_LIBRARIES})

DEAL_II_SETUP_TARGET("${PROJECT_NAME}")
DEAL_II_SETUP_TARGET(cpackexamplelib)

install(TARGETS "${PROJECT_NAME}"
RUNTIME DESTINATION bin
)

install(TARGETS cpackexamplelib
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
)

install(FILES
fem/fem.hpp
filesystem/filesystem.hpp
flatset/flatset.hpp
yamlParser/yamlParser.hpp
DESTINATION include/cpackexamplelib
)

include(cmake/CPackConfig.cmake)
include(CPack)
24 changes: 24 additions & 0 deletions cmake/CPackConfig.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# -----------------------------
# CPack configuration
# -----------------------------

set(CPACK_PACKAGE_NAME "cpackexample")
set(CPACK_PACKAGE_VERSION "1.0.0")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "CPack Exercise")
set(CPACK_PACKAGE_VENDOR "Lucia Agullo Marti")
set(CPACK_PACKAGE_HOMEPAGE_URL "https://github.com/lucia-agullo-marti/cpack-exercise-wt2526")

# Generators
set(CPACK_GENERATOR "TGZ;DEB")

# Strip binaries to reduce package size
set(CPACK_STRIP_FILES TRUE)

# Debian specific settings
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Lucia Agullo Marti <noreply@example.com>")
set(CPACK_DEBIAN_PACKAGE_DESCRIPTION "CPack exercise for the Simulation Software Engineering course (Winter Term 2025/2026)")
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}")

# Debian dependencies
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6, libboost-filesystem1.83-dev, libyaml-cpp-dev")