Skip to content

Commit 8bcc14b

Browse files
committed
Move to VCPKG for mo2-cmake.
1 parent 71dbb8c commit 8bcc14b

File tree

3 files changed

+31
-9
lines changed

3 files changed

+31
-9
lines changed

CMakeLists.txt

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
cmake_minimum_required(VERSION 3.16)
22

3-
if(DEFINED DEPENDENCIES_DIR)
4-
include(${DEPENDENCIES_DIR}/modorganizer_super/cmake_common/mo2.cmake)
5-
else()
6-
include(${CMAKE_CURRENT_LIST_DIR}/../cmake_common/mo2.cmake)
7-
endif()
8-
93
project(basic_games LANGUAGES NONE)
4+
5+
find_package(mo2-cmake CONFIG REQUIRED)
6+
107
add_custom_target(basic_games ALL)
11-
mo2_configure_python(basic_games
12-
MODULE
13-
TRANSLATIONS OFF)
8+
mo2_configure_python(basic_games MODULE TRANSLATIONS OFF)

CMakePresets.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"configurePresets": [
3+
{
4+
"binaryDir": "${sourceDir}/vsbuild",
5+
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
6+
"generator": "Visual Studio 17 2022",
7+
"name": "vs2022-windows"
8+
}
9+
],
10+
"buildPresets": [
11+
{
12+
"name": "vs2022-windows",
13+
"configurePreset": "vs2022-windows"
14+
}
15+
],
16+
"version": 4
17+
}

vcpkg.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"dependencies": ["mo2-cmake"],
3+
"vcpkg-configuration": {
4+
"default-registry": {
5+
"kind": "git",
6+
"repository": "https://github.com/ModOrganizer2/vcpkg-registry",
7+
"baseline": "27d8adbfe9e4ce88a875be3a45fadab69869eb60"
8+
}
9+
}
10+
}

0 commit comments

Comments
 (0)