32 lines
732 B
CMake
32 lines
732 B
CMake
|
add_custom_command(
|
||
|
OUTPUT irc_commands.inc
|
||
|
COMMAND
|
||
|
gperf
|
||
|
-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
|
||
|
sasl_mechanism.cpp
|
||
|
snote.cpp
|
||
|
)
|
||
|
|
||
|
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)
|