Kylin/CMakeLists.txt
2023-12-27 10:29:16 +08:00

29 lines
514 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()
if(TARGET Boost::url)
add_subdirectory(HttpProxy)
endif()
if(TARGET Qt${QT_VERSION_MAJOR}::Core)
add_subdirectory(QtComponets)
endif()
add_subdirectory(Universal)
if(UNIT_TEST)
add_subdirectory(UnitTest)
endif()