CMUtil/src/CMakeLists.txt

25 lines
660 B
CMake
Raw Normal View History

2019-11-29 18:20:19 +08:00
option(CM_UTIL_SUPPORT_XML "Build XML Parse module." ON)
2019-11-29 11:58:31 +08:00
2019-11-29 18:20:19 +08:00
if(CM_UTIL_SUPPORT_XML)
add_subdirectory(xml)
endif(CM_UTIL_SUPPORT_XML)
option(CM_UTIL_SUPPORT_JSON "Build JSON Parse/make module." ON)
if(CM_UTIL_SUPPORT_JSON)
add_subdirectory(json)
endif(CM_UTIL_SUPPORT_JSON)
2019-12-02 11:01:54 +08:00
SET(CMD_SOURCE ${CMUTIL_ROOT_INCLUDE_PATH}/hgl/util/cmd/CmdParse.h
cmd/CmdParse.cpp)
#SET(TIME_SOURCE ${CMUTIL_ROOT_INCLUDE_PATH}/hgl/util/time/Timer.h
# time/Timer.cpp)
SOURCE_GROUP("Command Line" FILES ${CMD_SOURCE})
#SOURCE_GROUP("Time" FILES ${TIME_SOURCE})
add_cm_library(CMUtil "CM/Util" ${CMD_SOURCE}
# ${TIME_SOURCE}
)