xbot/myirc/CMakeLists.txt

34 lines
783 B
CMake
Raw Normal View History

2025-01-30 09:28:28 -08:00
add_custom_command(
OUTPUT irc_commands.inc
COMMAND
2025-02-05 09:24:47 -08:00
/opt/homebrew/bin/gperf
2025-01-30 09:28:28 -08:00
-C -Z IrcCommandHash -K text -L C++ -t
--output-file irc_commands.inc
${CMAKE_CURRENT_SOURCE_DIR}/irc_commands.gperf
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/irc_commands.gperf
VERBATIM)
add_library(myirc STATIC
irc_commands.inc
bot.cpp
challenge.cpp
client.cpp
connection.cpp
ircmsg.cpp
openssl_utils.cpp
registration.cpp
2025-01-31 16:14:13 -08:00
ratelimit.cpp
2025-01-30 09:28:28 -08:00
sasl_mechanism.cpp
snote.cpp
2025-02-05 09:24:47 -08:00
linebuffer.cpp
2025-01-30 09:28:28 -08:00
)
target_include_directories(myirc PUBLIC include)
target_include_directories(myirc PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
target_link_libraries(myirc PRIVATE
OpenSSL::SSL
Boost::signals2 Boost::log Boost::asio
tomlplusplus_tomlplusplus
PkgConfig::LIBHS
mysocks5 mybase64)