2019-11-29 11:58:31 +08:00
|
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
|
|
|
|
|
|
project(CMUtil)
|
|
|
|
|
|
|
|
|
|
include(path_config.cmake)
|
|
|
|
|
CMUtilSetup(${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
|
|
2020-08-21 21:11:07 +08:00
|
|
|
|
if(CM_UTIL_SUPPORT_XML)
|
|
|
|
|
add_definitions(-DXML_STATIC)
|
|
|
|
|
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/3rdpty/expat/expat)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if(CM_UTIL_SUPPORT_JSON)
|
|
|
|
|
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/3rdpty/jsoncpp)
|
|
|
|
|
endif()
|
|
|
|
|
|
2019-11-29 11:58:31 +08:00
|
|
|
|
add_subdirectory(${CMUTIL_ROOT_SOURCE_PATH})
|