vcpkg/ports/cppslippi/portfile.cmake

22 lines
822 B
CMake
Raw Normal View History

2023-03-28 16:25:01 -04:00
vcpkg_from_sourceforge(
OUT_SOURCE_PATH SOURCE_PATH
REPO cppslippi
FILENAME "CppSlippi-${VERSION}.zip"
SHA512 3857e96f693daa25a9b753884b4f4bd2511d5c3b47fd52045553f007483dfdaeebe1a4e17052694eb4d81bd6d0e580872d2c22d3ba3bbf483322d10bbc8944ca
2023-03-28 16:25:01 -04:00
NO_REMOVE_ONE_LEVEL
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DBUILD_TESTING=False
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/CppSlippi)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(COPY "${SOURCE_PATH}/README.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")