Kylin/CMakeLists.txt
2023-12-25 18:52:51 +08:00

28 lines
457 B
CMake

cmake_minimum_required(VERSION 3.15)
project(Kylin)
option(UNIT_TEST "do unit test" OFF)
set(OpenSSL_LIBRARY ssl crypto)
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()
if(TARGET Boost::log)
add_subdirectory(Universal)
endif()
if(UNIT_TEST)
add_subdirectory(UnitTest)
endif()