diff options
Diffstat (limited to 'libs/installer_fomod_plus/patchwizard/CMakeLists.txt')
| -rw-r--r-- | libs/installer_fomod_plus/patchwizard/CMakeLists.txt | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/libs/installer_fomod_plus/patchwizard/CMakeLists.txt b/libs/installer_fomod_plus/patchwizard/CMakeLists.txt deleted file mode 100644 index 2cb8ebb..0000000 --- a/libs/installer_fomod_plus/patchwizard/CMakeLists.txt +++ /dev/null @@ -1,45 +0,0 @@ -cmake_minimum_required(VERSION 3.16) -project(fomod_plus_patch_wizard) - -include(FetchContent) -set(project_type plugin) - -file(GLOB_RECURSE PATCHWIZARD_SOURCES CONFIGURE_DEPENDS - ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/*.h - ${CMAKE_CURRENT_SOURCE_DIR}/*.ui - ${CMAKE_CURRENT_SOURCE_DIR}/*.qrc -) -file(GLOB SHARE_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/../share/**/*.cpp") - -add_library(fomod_plus_patch_wizard SHARED ${PATCHWIZARD_SOURCES} ${SHARE_SOURCES}) - -FetchContent_Declare(json URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz DOWNLOAD_EXTRACT_TIMESTAMP TRUE) -FetchContent_Declare(pugixml GIT_REPOSITORY https://github.com/zeux/pugixml GIT_TAG v1.14) -FetchContent_MakeAvailable(pugixml json) - -target_include_directories( - fomod_plus_patch_wizard - PUBLIC - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/../share - ${CMAKE_CURRENT_SOURCE_DIR}/../share/FOMODData - ${CMAKE_CURRENT_SOURCE_DIR}/../share/xml - ${MO2_ARCHIVE_INCLUDE_DIRS} -) - -if (MSVC) - target_compile_options( - fomod_plus_patch_wizard - PRIVATE - /bigobj - /W4 - /WX - /wd4201 - /wd4458 - ) -endif () - -target_link_libraries(fomod_plus_patch_wizard PRIVATE mo2::uibase pugixml nlohmann_json::nlohmann_json) -mo2_configure_plugin(fomod_plus_patch_wizard NO_SOURCES WARNINGS OFF PRIVATE_DEPENDS archive) -mo2_install_target(fomod_plus_patch_wizard) |
