Add optional support for vcpkg

This commit is contained in:
2025-01-14 16:18:53 +01:00
parent 1ad352aa8b
commit 0dc9eeeea2
5 changed files with 33 additions and 7 deletions

View File

@@ -6,6 +6,14 @@
"patch": 0
},
"configurePresets": [
{
"name": "vcpkg",
"hidden": true,
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"VCPKG_INSTALL_OPTIONS": "--no-print-usage"
}
},
{
"name": "cmake-pedantic",
"hidden": true,

View File

@@ -11,8 +11,8 @@ set_target_properties(tests_configuration PROPERTIES FOLDER tests/configuration)
target_link_libraries(tests_configuration PRIVATE
DRAMSys::config
gtest
gtest_main
GTest::gtest
GTest::gtest_main
)
gtest_discover_tests(tests_configuration

View File

@@ -14,8 +14,8 @@ target_include_directories(tests_dramsys PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
set_target_properties(tests_dramsys PROPERTIES FOLDER tests)
target_link_libraries(tests_dramsys
DRAMSys::libdramsys
gtest
gtest_main
GTest::gtest
GTest::gtest_main
)
gtest_discover_tests(tests_dramsys

View File

@@ -13,8 +13,8 @@ set_target_properties(tests_simulator PROPERTIES FOLDER tests/simulator)
target_include_directories(tests_simulator PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(tests_simulator PRIVATE
DRAMSys::simulator
gtest
gtest_main
GTest::gtest
GTest::gtest_main
)
gtest_discover_tests(tests_simulator

18
vcpkg.json Normal file
View File

@@ -0,0 +1,18 @@
{
"name": "dramsys",
"version": "5.0",
"dependencies": [
"benchmark",
"gtest",
"pybind11",
"python3",
{
"name": "sqlite3",
"features": [
"rtree"
]
},
"systemc"
],
"builtin-baseline": "ce613c41372b23b1f51333815feb3edd87ef8a8b"
}