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

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

install(
TARGETS cpackexample
RUNTIME DESTINATION bin
)

install(
TARGETS cpackexamplelib
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
)

install(
FILES
${CMAKE_SOURCE_DIR}/fem/fem.hpp
${CMAKE_SOURCE_DIR}/filesystem/filesystem.hpp
${CMAKE_SOURCE_DIR}/flatset/flatset.hpp
${CMAKE_SOURCE_DIR}/yamlParser/yamlParser.hpp
DESTINATION include/cpackexamplelib
)

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


set(CPACK_PACKAGE_NAME "cpackexample")

set(CPACK_PACKAGE_VERSION_MAJOR "0")
set(CPACK_PACKAGE_VERSION_MINOR "1")
set(CPACK_PACKAGE_VERSION_PATCH "0")
set(CPACK_PACKAGE_VERSION "0.1.0")

set(CPACK_PACKAGE_VENDOR "Rongchuan Zhang")
set(CPACK_PACKAGE_CONTACT "rongchuanzhang971@gmail.com")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY
"Example FEM mini project packaged with CPack for the SSE course.")
set(CPACK_PACKAGE_HOMEPAGE_URL
"https://github.com/zhangrongchuancpack-exercise-wt2526")

set(CPACK_GENERATOR "TGZ;DEB")

set(CPACK_PACKAGING_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")

set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Rongchuan Zhang")

set(CPACK_STRIP_FILES ON)

set(CPACK_DEBIAN_PACKAGE_NAME "cpackexample")
set(CPACK_DEBIAN_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION}")
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "amd64")

# Section / priority
set(CPACK_DEBIAN_PACKAGE_SECTION "utils")
set(CPACK_DEBIAN_PACKAGE_PRIORITY "optional")

set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6, libyaml-cpp-dev")

set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)

include(CPack)
20 changes: 20 additions & 0 deletions lintian_output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
E: cpackexample: dir-in-usr-local [usr/local/bin/]
E: cpackexample: dir-in-usr-local [usr/local/include/]
E: cpackexample: dir-in-usr-local [usr/local/include/cpackexamplelib/]
E: cpackexample: dir-in-usr-local [usr/local/lib/]
E: cpackexample: extended-description-is-empty
E: cpackexample: file-in-usr-local [usr/local/bin/cpackexample]
E: cpackexample: file-in-usr-local [usr/local/include/cpackexamplelib/fem.hpp]
E: cpackexample: file-in-usr-local [usr/local/include/cpackexamplelib/filesystem.hpp]
E: cpackexample: file-in-usr-local [usr/local/include/cpackexamplelib/flatset.hpp]
E: cpackexample: file-in-usr-local [usr/local/include/cpackexamplelib/yamlParser.hpp]
E: cpackexample: file-in-usr-local [usr/local/lib/libcpackexamplelib.a]
E: cpackexample: malformed-contact Maintainer Rongchuan
E: cpackexample: no-changelog usr/share/doc/cpackexample/changelog.gz (native package)
E: cpackexample: no-copyright-file
W: cpackexample: file-in-unusual-dir [usr/local/bin/cpackexample]
W: cpackexample: file-in-unusual-dir [usr/local/include/cpackexamplelib/fem.hpp]
W: cpackexample: file-in-unusual-dir [usr/local/include/cpackexamplelib/filesystem.hpp]
W: cpackexample: file-in-unusual-dir [usr/local/include/cpackexamplelib/flatset.hpp]
W: cpackexample: file-in-unusual-dir [usr/local/include/cpackexamplelib/yamlParser.hpp]
W: cpackexample: file-in-unusual-dir [usr/local/lib/libcpackexamplelib.a]