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
16 changes: 16 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,19 @@ target_link_libraries(cpackexamplelib Boost::filesystem ${YAML_CPP_LIBRARIES})

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

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

install(TARGETS cpackexamplelib DESTINATION lib)

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

list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")

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

set(CPACK_PACKAGE_VENDOR "Aaron Schöne")
set(CPACK_PACKAGE_CONTACT "aaron.schoene@example.com")
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Aaron Schöne <aaron.schoene@example.com>")

set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Beispielprojekt für CPack Packaging")
set(CPACK_PACKAGE_HOMEPAGE_URL "https://github.com/aaronsch0/cpack-exercise-wt2526")

set(CPACK_GENERATOR "TGZ;DEB")

set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)

set(CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT")

set(CPACK_STRIP_FILES ON)

include(CPack)