Skip to content

Commit

Permalink
Move to VCPKG for mo2-cmake.
Browse files Browse the repository at this point in the history
  • Loading branch information
Holt59 committed Oct 13, 2024
1 parent e88d2d2 commit 93d66ee
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 9 deletions.
13 changes: 4 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
cmake_minimum_required(VERSION 3.16)

if(DEFINED DEPENDENCIES_DIR)
include(${DEPENDENCIES_DIR}/modorganizer_super/cmake_common/mo2.cmake)
else()
include(${CMAKE_CURRENT_LIST_DIR}/../cmake_common/mo2.cmake)
endif()

project(basic_games LANGUAGES NONE)

find_package(mo2-cmake CONFIG REQUIRED)

add_custom_target(basic_games ALL)
mo2_configure_python(basic_games
MODULE
TRANSLATIONS OFF)
mo2_configure_python(basic_games MODULE TRANSLATIONS OFF)
17 changes: 17 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"configurePresets": [
{
"binaryDir": "${sourceDir}/vsbuild",
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"generator": "Visual Studio 17 2022",
"name": "vs2022-windows"
}
],
"buildPresets": [
{
"name": "vs2022-windows",
"configurePreset": "vs2022-windows"
}
],
"version": 4
}
15 changes: 15 additions & 0 deletions vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"features": {
"standalone": {
"description": "Build Standalone.",
"dependencies": ["mo2-cmake"]
}
},
"vcpkg-configuration": {
"default-registry": {
"kind": "git",
"repository": "https://github.com/ModOrganizer2/vcpkg-registry",
"baseline": "27d8adbfe9e4ce88a875be3a45fadab69869eb60"
}
}
}

0 comments on commit 93d66ee

Please sign in to comment.