Skip to content

Commit 3a2a0e1

Browse files
committed
Updated CPack and README.md.
1 parent c62914d commit 3a2a0e1

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

CMakeLists.txt

+7-15
Original file line numberDiff line numberDiff line change
@@ -50,23 +50,15 @@ add_executable(${TARGET_NAME} ${SOURCE_FILES})
5050

5151
set_property(DIRECTORY PROPERTY VS_STARTUP_PROJECT ${TARGET_NAME})
5252

53+
install(TARGETS ${TARGET_NAME} DESTINATION .)
54+
install(FILES ${CMAKE_SOURCE_DIR}/LICENSE DESTINATION .)
55+
install(FILES ${CMAKE_SOURCE_DIR}/README.md DESTINATION .)
56+
install(FILES $<TARGET_PDB_FILE:${TARGET_NAME}> DESTINATION / OPTIONAL COMPONENT symbols)
57+
58+
set(CPACK_PACKAGE_FILE_NAME "easy_debug_view")
5359
set(CPACK_PACKAGE_NAME "easy_debug_view")
5460
set(CPACK_PACKAGE_DESCRIPTION "Easy and fast debug output viewer for Windows")
55-
set(CPACK_COMPONENTS_GROUPING ONE_PER_GROUP)
56-
SET(CPACK_ARCHIVE_COMPONENT_INSTALL ON)
5761

5862
set(CPACK_GENERATOR "ZIP")
5963

60-
get_cmake_property(CPACK_COMPONENTS_ALL COMPONENTS)
61-
list(REMOVE_ITEM CPACK_COMPONENTS_ALL "Unspecified")
62-
63-
include(CPack)
64-
65-
cpack_add_component(easy_debug_view
66-
DISPLAY_NAME "easy_debug_view"
67-
DESCRIPTION "Easy debug view package"
68-
)
69-
cpack_add_component(symbols
70-
DISPLAY_NAME "Symbols"
71-
DESCRIPTION "Symbols package"
72-
)
64+
include(CPack)

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
11
# easy-debug-view
22
Simple and fast debug output viewer for Windows.
3+
4+
## Build
5+
### Configure and build using CMake
6+
```console
7+
cmake -S . -B build
8+
cmake --build build --config RelWithDebInfo --target ALL_BUILD
9+
```
10+
### Configure, build and package using CMake
11+
cmake -S . -B build
12+
cmake --build build --config RelWithDebInfo --target package

0 commit comments

Comments
 (0)