27 lines
480 B
CMake
27 lines
480 B
CMake
cmake_minimum_required(VERSION 3.15)
|
|
|
|
project(Kylin)
|
|
|
|
option(UNIT_TEST "do unit test" OFF)
|
|
|
|
find_package(Boost REQUIRED COMPONENTS log serialization)
|
|
|
|
set(OpenSSL_LIBRARY ssl crypto)
|
|
|
|
add_subdirectory(DataStructure)
|
|
|
|
if(TARGET Boost::serialization)
|
|
add_subdirectory(Encrypt)
|
|
endif()
|
|
|
|
add_subdirectory(HttpProxy)
|
|
|
|
if(TARGET Qt${QT_VERSION_MAJOR}::Core)
|
|
add_subdirectory(QtComponets)
|
|
endif()
|
|
|
|
add_subdirectory(Universal)
|
|
|
|
if(UNIT_TEST)
|
|
add_subdirectory(UnitTest)
|
|
endif() |