Skip to content

feat: generate output.cmake file#51

Open
fruzitent wants to merge 1 commit intoandrew-hardin:masterfrom
fruzitent:dev
Open

feat: generate output.cmake file#51
fruzitent wants to merge 1 commit intoandrew-hardin:masterfrom
fruzitent:dev

Conversation

@fruzitent
Copy link
Copy Markdown

@fruzitent fruzitent commented Mar 10, 2024

Example

set(CPACK_PROPERTIES_FILE "${CMAKE_BINARY_DIR}/CPackProperties.local.cmake")
include(CPack)
file(WRITE "${CPACK_PROPERTIES_FILE}" "\
    include(${GIT_WATCHER_OUTPUT_PATH})
    set(CPACK_PACKAGE_FILE_NAME \"\")
    list(APPEND CPACK_PACKAGE_FILE_NAME \"${CMAKE_PROJECT_NAME}\")
    list(APPEND CPACK_PACKAGE_FILE_NAME \"${CMAKE_PROJECT_VERSION}\")
    list(APPEND CPACK_PACKAGE_FILE_NAME \"\$\{GIT_DESCRIBE\}\")
    string(REPLACE \";\" \"-\" CPACK_PACKAGE_FILE_NAME \"\$\{CPACK_PACKAGE_FILE_NAME\}\")
")
CPack: - package: ./out/app-0.1.0-2642e67.tar.gz generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant