refactor: cleanup project. ready for refactor.

- remove all old code
- build directory hierarchy, add basic cmake scripts.
This commit is contained in:
2024-07-23 21:37:56 +08:00
parent 4503b5cefc
commit ecebc42603
84 changed files with 298 additions and 6961 deletions

View File

@@ -0,0 +1,35 @@
# ========== Check Variables ==========
# Check Virtools version variable
set(SPECIAL_VIRTOOLS_VERSIONS
"21"
)
set(LEGACY_VIRTOOLS_VERSIONS
"25"
"30"
"35"
"40"
"50"
)
if (VIRTOOLS_VERSION IN_LIST SPECIAL_VIRTOOLS_VERSIONS)
message(
"Specified Virtools version: ${VIRTOOLS_VERSION}."
"Please note in this verions, your provided Virtools root path must be the root of GitHub repository: doyaGu/Virtools-SDK-2.1"
)
elseif (VIRTOOLS_VERSION IN_LIST LEGACY_VIRTOOLS_VERSIONS)
message("Specified Virtools version: ${VIRTOOLS_VERSION}.")
else ()
message(FATAL_ERROR
"You must set VIRTOOLS_VERSION variable to specify the version of your target Virtools before configurating this project."
"The valid Virtools version are 21, 25, 30, 35, 40, 50."
)
endif ()
# Check Virtools path variable
if (NOT DEFINED VIRTOOLS_PATH)
message(FATAL_ERROR
"You must set VIRTOOLS_PATH variable to specify the root folder of Virtools before configurating this project."
"Please note this path is different when you picking Virtools 2.1 version."
)
endif()
# ========== Import library ==========