2025-01-23 12:46:52 -08:00
|
|
|
cmake_minimum_required(VERSION 3.25)
|
2023-11-22 19:59:34 -08:00
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
project(xbot
|
|
|
|
VERSION 1
|
2025-01-23 12:46:52 -08:00
|
|
|
LANGUAGES CXX
|
2023-11-22 19:59:34 -08:00
|
|
|
)
|
|
|
|
|
2023-11-26 21:16:56 -08:00
|
|
|
find_package(PkgConfig REQUIRED)
|
2025-01-26 14:38:13 -08:00
|
|
|
find_package(OpenSSL REQUIRED)
|
2025-01-25 14:12:37 -08:00
|
|
|
|
2023-11-26 21:16:56 -08:00
|
|
|
pkg_check_modules(LIBHS libhs REQUIRED IMPORTED_TARGET)
|
|
|
|
|
2025-02-02 12:40:55 -08:00
|
|
|
set(BOOST_INCLUDE_LIBRARIES asio log signals2 endian beast json)
|
2025-01-25 14:12:37 -08:00
|
|
|
set(BOOST_ENABLE_CMAKE ON)
|
2023-11-22 19:59:34 -08:00
|
|
|
include(FetchContent)
|
|
|
|
FetchContent_Declare(
|
2025-01-25 14:12:37 -08:00
|
|
|
Boost
|
|
|
|
URL https://github.com/boostorg/boost/releases/download/boost-1.87.0/boost-1.87.0-cmake.tar.xz
|
|
|
|
URL_HASH SHA1=4ec86f884ffb57ce7f6a6c6eb05b1af247aba0ac
|
2023-11-22 19:59:34 -08:00
|
|
|
)
|
2025-01-25 14:12:37 -08:00
|
|
|
FetchContent_Declare(
|
|
|
|
tomlplusplus
|
|
|
|
GIT_REPOSITORY https://github.com/marzer/tomlplusplus.git
|
|
|
|
GIT_TAG v3.4.0
|
|
|
|
)
|
2023-11-22 19:59:34 -08:00
|
|
|
FetchContent_MakeAvailable(tomlplusplus)
|
2025-01-25 14:12:37 -08:00
|
|
|
FetchContent_MakeAvailable(Boost)
|
2023-11-22 19:59:34 -08:00
|
|
|
|
2025-01-22 20:33:17 -08:00
|
|
|
add_subdirectory(mybase64)
|
2025-01-26 14:38:13 -08:00
|
|
|
add_subdirectory(mysocks5)
|
2025-01-30 09:28:28 -08:00
|
|
|
add_subdirectory(myirc)
|
|
|
|
add_subdirectory(driver)
|