2017-03-06 11:50:42 +08:00
|
|
|
cmake_minimum_required(VERSION 3.2)
|
2017-03-02 21:41:17 +08:00
|
|
|
project(program)
|
2016-10-28 06:40:20 +08:00
|
|
|
|
2017-03-02 21:41:17 +08:00
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}")
|
|
|
|
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/libstudxml)
|
2017-01-02 23:47:54 +08:00
|
|
|
|
2017-03-02 21:41:17 +08:00
|
|
|
if(BUILD_DEPS)
|
|
|
|
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/zlib)
|
|
|
|
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/cryptopp)
|
|
|
|
add_dependencies(libstudxml zlib-download cryptopp-download)
|
2017-01-22 07:38:58 +08:00
|
|
|
endif()
|