28 lines
457 B
CMake
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() |