aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/ecos/portfile.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/ecos/portfile.cmake')
-rw-r--r--vcpkg/ports/ecos/portfile.cmake22
1 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/ports/ecos/portfile.cmake b/vcpkg/ports/ecos/portfile.cmake
new file mode 100644
index 0000000..226af88
--- /dev/null
+++ b/vcpkg/ports/ecos/portfile.cmake
@@ -0,0 +1,22 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO embotech/ecos
+ REF "v${VERSION}"
+ SHA512 b79434c194b5681f323b275eff0126f56beba792d270bd1773307cdf33297bee550b13bd2f96f5923dc4b8e200216d897ea01978f65da69dd81f1a669f8fd6e2
+ HEAD_REF develop
+)
+
+file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+
+file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+vcpkg_cmake_config_fixup(CONFIG_PATH "share/ecos") \ No newline at end of file