From 944a6f71f79e6b1faa45585288d007d13e33ea1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=BCnther?= Date: Sat, 27 Jul 2024 15:41:25 +0200 Subject: [PATCH] remove cmake dependency, as it is no longer necessary MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Günther --- CMakeLists.txt | 26 -------------------------- pyproject.toml | 1 - 2 files changed, 27 deletions(-) delete mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt deleted file mode 100644 index 4c3f99d7..00000000 --- a/CMakeLists.txt +++ /dev/null @@ -1,26 +0,0 @@ -cmake_minimum_required(VERSION 3.10) - - -if(NOT USE_CIM_VERSION) - set(USE_CIM_VERSION "CGMES_2.4.15_27JAN2020") -endif() -if(NOT CGMES_OUTPUT_FOLDER) - set(CGMES_OUTPUT_FOLDER "${CMAKE_CURRENT_SOURCE_DIR}/${USE_CIM_VERSION}" CACHE STRING "Define CGMES c++ file output folder") -endif() -if(NOT CIM_OUTPUT_LANG) - set(CIM_OUTPUT_LANG "cpp") -endif() -if(USE_CIM_VERSION STREQUAL "CGMES_2.4.13_18DEC2013") - message(STATUS "Using CIM Version: ${USE_CIM_VERSION}") -elseif(USE_CIM_VERSION STREQUAL "CGMES_2.4.15_16FEB2016") - message(STATUS "Using CIM Version: ${USE_CIM_VERSION}") -elseif(USE_CIM_VERSION STREQUAL "CGMES_2.4.15_27JAN2020") - message(STATUS "Using CIM Version: ${USE_CIM_VERSION}") -else() - message(FATAL_ERROR "${USE_CIM_VERSION} is an invalid value for USE_CIM_VERSION") -endif() -message(STATUS "Using output folder: ${CGMES_OUTPUT_FOLDER}") -set(SCHEMA_FOLDER "${CMAKE_CURRENT_SOURCE_DIR}/cgmes_schema/${USE_CIM_VERSION}") -find_package (Python COMPONENTS Interpreter) -execute_process(WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND ${Python_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/build.py --outdir=${CGMES_OUTPUT_FOLDER} --schemadir=${SCHEMA_FOLDER} --langdir=${CIM_OUTPUT_LANG}) -unset(SCHEMA_FOLDER) diff --git a/pyproject.toml b/pyproject.toml index 0c45cd45..3c4e0177 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,6 @@ keywords = ["cim", "cgmes", "code-generation"] dependencies = [ "xmltodict >= 0.13.0, < 1", "chevron >= 0.14.0, < 1", - "cmake >= 3.27.0, < 4", "pydantic < 2", "beautifulsoup4 >= 4.12.2, < 5" ]