diff --git a/CMakeLists.txt b/CMakeLists.txt index 4bad430..1cd0b2a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,16 +1,15 @@ cmake_minimum_required(VERSION 3.14 FATAL_ERROR) -project(UECS VERSION 0.14.4) +project(UECS VERSION 0.15.0) message(STATUS "[Project] ${PROJECT_NAME}") include(cmake/InitUCMake.cmake) -Ubpa_InitUCMake() +Ubpa_InitUCMake(VERSION 0.6.4) Ubpa_InitProject() -Ubpa_AddDep(UContainer 0.0.9) -Ubpa_AddDep(UTemplate 0.4.9) -Ubpa_AddDep(UGraphviz 0.1.6) +Ubpa_AddDep(UTemplate 0.6.0) +Ubpa_AddDep(UGraphviz 0.2.0) Ubpa_AddSubDirsRec(include) Ubpa_AddSubDirsRec(src) diff --git a/cmake/InitUCMake.cmake b/cmake/InitUCMake.cmake index 7cdb7da..61c2946 100644 --- a/cmake/InitUCMake.cmake +++ b/cmake/InitUCMake.cmake @@ -1,6 +1,22 @@ macro(Ubpa_InitUCMake) + cmake_parse_arguments( + "ARG" # prefix + "" # # TRUE / FALSE + "VERSION" # + "" # # list + ${ARGN} + ) + # 结果为 ARG_* + # - ARG_