File tree Expand file tree Collapse file tree 3 files changed +48
-0
lines changed Expand file tree Collapse file tree 3 files changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ The package gap provides CMake targets:
2+
3+ find_package(gap CONFIG REQUIRED)
4+ target_link_libraries(main PRIVATE gap::gap gap::gap-core gap::gap-settings)
Original file line number Diff line number Diff line change 1+ vcpkg_from_github(
2+ OUT_SOURCE_PATH SOURCE_PATH
3+ REPO lifting-bits/gap
4+ REF 11989486fa95db0f66fb339fad485f5b6cb725c2
5+ SHA512 acce919437fbb0fc7aed346514aafcd1772468a23838f2208494403edaf7afbb02396d5546ce18cb50b955b1d24569f2b83e3f8e5b8a6413e54985f3273e537d
6+ HEAD_REF main
7+ )
8+
9+ vcpkg_configure_cmake(
10+ SOURCE_PATH "${SOURCE_PATH} "
11+ PREFER_NINJA
12+ OPTIONS
13+ -DGAP_ENABLE_COROUTINES=OFF
14+ -DGAP_INSTALL=ON
15+ )
16+
17+ vcpkg_install_cmake()
18+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/gap)
19+
20+ file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR} /debug/include" )
21+
22+ file (
23+ INSTALL "${SOURCE_PATH} /LICENSE"
24+ DESTINATION "${CURRENT_PACKAGES_DIR} /share/${PORT} "
25+ RENAME copyright
26+ )
27+
28+ if (EXISTS "${CMAKE_CURRENT_LIST_DIR} /${lower_package} _usage" )
29+ file (INSTALL "${CMAKE_CURRENT_LIST_DIR} /${lower_package} _usage" DESTINATION "${CURRENT_PACKAGES_DIR} /share/${lower_package} " RENAME usage)
30+ endif ()
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " gap" ,
3+ "version" : " 0.0.0" ,
4+ "port-version" : 1 ,
5+ "description" : " A utility library to bridge llvm and mlir gaps" ,
6+ "homepage" : " https://github.com/lifting-bits/gap" ,
7+ "license" : " MIT" ,
8+ "dependencies" : [
9+ {
10+ "name" : " vcpkg-cmake-config" ,
11+ "host" : true
12+ }
13+ ]
14+ }
You can’t perform that action at this time.
0 commit comments