implement parsing args in blocky CLI tool

This commit is contained in:
2022-06-24 17:25:15 +09:00
parent d58e4e7168
commit 6ffde38590
6 changed files with 278 additions and 4 deletions

View File

@@ -1,6 +1,20 @@
include(FetchContent)
# ---- args ----
# repository: https://github.com/Taywee/args
# license : MIT
FetchContent_Declare(
args
URL "https://github.com/Taywee/args/archive/refs/tags/6.3.0.zip"
)
set(ARGS_BUILD_EXAMPLE OFF)
set(ARGS_BUILD_UNITTESTS OFF)
FetchContent_MakeAvailable(args)
# ---- GLEW ----
# repository: https://github.com/Perlmint/glew-cmake
# license : Modified BSD License, the Mesa 3-D License (MIT) and the Khronos License (MIT).
@@ -11,7 +25,7 @@ FetchContent_Declare(
)
FetchContent_MakeAvailable(glew)
if (KINGTAKER_STATIC)
if (BLOCKY_STATIC)
add_library(glew ALIAS libglew_static)
else()
add_library(glew ALIAS libglew_shared)