Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chaiscript] add usage file #12365

Closed
wants to merge 1 commit into from
Closed
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
3 changes: 2 additions & 1 deletion ports/chaiscript/CONTROL
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Source: chaiscript
Version: 6.1.0-1
Version: 6.1.0
Port-Version: 2
Homepage: https://github.com/ChaiScript/ChaiScript
Description: Embedded Scripting Language Designed for C++
7 changes: 6 additions & 1 deletion ports/chaiscript/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ vcpkg_from_github(
HEAD_REF master
)

file(INSTALL ${SOURCE_PATH}/include/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/)
configure_file(
${CMAKE_CURRENT_LIST_DIR}/usage
${CURRENT_PACKAGES_DIR}/share/${PORT}/usage
COPYONLY
)

file(INSTALL ${SOURCE_PATH}/include/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/)
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
4 changes: 4 additions & 0 deletions ports/chaiscript/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
The package chaiscript can be used via CMake:

find_path(CHAISCRIPT_INCLUDE_DIR chaiscript/chaiscript.hpp)
target_include_directories(main PRIVATE ${CHAISCRIPT_INCLUDE_DIR})