Skip to content

Commit 6aeb520

Browse files
committed
Step 2
1 parent 9850810 commit 6aeb520

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION "3.12")
22

3-
project("HelloWorld" VERSION 0.1.0)
3+
project("HelloWorld" VERSION 0.2.0)
44

55
add_library(sse sse/sse.cpp)
66
set_target_properties(sse PROPERTIES PUBLIC_HEADER sse/sse.hpp)
@@ -25,3 +25,9 @@ install(TARGETS helloworld sse
2525
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/helloworld
2626
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/helloworld
2727
)
28+
29+
# Packaging section
30+
# Adding other cmake modules
31+
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
32+
# Include our packaging module
33+
include(Packaging)

cmake/Packaging.cmake

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
set(CPACK_PACKAGE_NAME ${PROJECT_NAME})
2+
3+
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "SSE hello world example project"
4+
CACHE STRING "Extended summary.")
5+
6+
set(CPACK_PACKAGE_VENDOR "SSE Lecturers / Employer")
7+
set(CPACK_PACKAGE_CONTACT "[email protected]")
8+
set(CPACK_PACKAGE_MAINTAINERS "SSE lecturers ${CPACK_PACKAGE_CONTACT}")
9+
set(CPACK_PACKAGE_HOMEPAGE_URL "https://simulation-software-engineering.github.io/homepage/")
10+
11+
include(CPack)

0 commit comments

Comments
 (0)