Add optional support for vcpkg
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
18
vcpkg.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "dramsys",
|
||||
"version": "5.0",
|
||||
"dependencies": [
|
||||
"benchmark",
|
||||
"gtest",
|
||||
"pybind11",
|
||||
"python3",
|
||||
{
|
||||
"name": "sqlite3",
|
||||
"features": [
|
||||
"rtree"
|
||||
]
|
||||
},
|
||||
"systemc"
|
||||
],
|
||||
"builtin-baseline": "ce613c41372b23b1f51333815feb3edd87ef8a8b"
|
||||
}
|
||||
Reference in New Issue
Block a user