Kylin/CMakeLists.txt

29 lines
514 B
CMake
Raw Normal View History

2023-07-21 10:47:31 +08:00
cmake_minimum_required(VERSION 3.15)
project(Kylin)
2023-12-25 18:52:51 +08:00
option(UNIT_TEST "do unit test" OFF)
2023-12-27 10:29:16 +08:00
find_package(Boost REQUIRED COMPONENTS log serialization)
2023-08-01 13:54:17 +08:00
set(OpenSSL_LIBRARY ssl crypto)
2023-12-27 10:29:16 +08:00
add_subdirectory(DataStructure)
2023-07-21 14:07:27 +08:00
2023-12-03 23:42:58 +08:00
if(TARGET Boost::serialization)
add_subdirectory(Encrypt)
endif()
if(TARGET Boost::url)
add_subdirectory(HttpProxy)
endif()
2023-12-07 19:46:15 +08:00
if(TARGET Qt${QT_VERSION_MAJOR}::Core)
add_subdirectory(QtComponets)
endif()
2023-12-03 23:42:58 +08:00
2023-12-27 10:29:16 +08:00
add_subdirectory(Universal)
2023-12-25 18:52:51 +08:00
if(UNIT_TEST)
add_subdirectory(UnitTest)
endif()