Skip to content

Commit

Permalink
Merge branch 'develop' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
ctapmex committed Dec 19, 2020
2 parents 1d41a8a + 774fed1 commit 3d7b8fe
Show file tree
Hide file tree
Showing 62 changed files with 7,272 additions and 16,691 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Clion project files
/.idea
/cmake-build*
/build*
/bin
49 changes: 49 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
cmake_minimum_required(VERSION 3.15)
project(UnInstall CXX)

#====================================================
# Enable policy
#====================================================
# enable CMAKE_MSVC_RUNTIME_LIBRARY
cmake_policy(SET CMP0091 NEW)

#====================================================
# Set default build to release
#====================================================
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type, one of: Release, Debug" FORCE)
endif ()
message("Build type for UnInstall: ${CMAKE_BUILD_TYPE}")

# check platform for build
set(IS_x64_PLATFORM FALSE)
if ("$ENV{PLATFORM}" MATCHES "x64")
set(IS_x64_PLATFORM TRUE)
endif ()

# Get plugin version from src/version.hpp and put it in PLUGIN_VERSION
function(plugin_extract_version)
file(READ "${CMAKE_CURRENT_LIST_DIR}/src/version.hpp" file_contents)
string(REGEX MATCH "PLUGIN_VER_MAJOR ([0-9]+)" _ "${file_contents}")
if (NOT CMAKE_MATCH_COUNT EQUAL 1)
message(FATAL_ERROR "Could not extract major version number from version.hpp")
endif ()
set(ver_major ${CMAKE_MATCH_1})

string(REGEX MATCH "PLUGIN_VER_MINOR ([0-9]+)" _ "${file_contents}")
if (NOT CMAKE_MATCH_COUNT EQUAL 1)
message(FATAL_ERROR "Could not extract minor version number from version.hpp")
endif ()

set(ver_minor ${CMAKE_MATCH_1})
string(REGEX MATCH "PLUGIN_VER_PATCH ([0-9]+)" _ "${file_contents}")
if (NOT CMAKE_MATCH_COUNT EQUAL 1)
message(FATAL_ERROR "Could not extract patch version number from version.hpp")
endif ()
set(ver_patch ${CMAKE_MATCH_1})

set(PLUGIN_VERSION "${ver_major}.${ver_minor}.${ver_patch}" PARENT_SCOPE)
endfunction()

plugin_extract_version()
add_subdirectory(./src)
107 changes: 0 additions & 107 deletions EPlugin.cpp

This file was deleted.

Loading

0 comments on commit 3d7b8fe

Please sign in to comment.