diff options
| author | ilotterytea <iltsu@alright.party> | 2025-04-06 17:28:47 +0400 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-04-06 17:28:47 +0400 |
| commit | 2a49844a95593ac98e919c18651320e62f276fa7 (patch) | |
| tree | 01b7e2ebb1dc7a9ac92e7c3105edfd098271f29a /bot/CMakeLists.txt | |
| parent | a1a36cf4d4999b5ce89dce95364c9fd839b54b5d (diff) | |
feat: implementing lua coding
Diffstat (limited to 'bot/CMakeLists.txt')
| -rw-r--r-- | bot/CMakeLists.txt | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/bot/CMakeLists.txt b/bot/CMakeLists.txt index 1806c03..a01cc7f 100644 --- a/bot/CMakeLists.txt +++ b/bot/CMakeLists.txt @@ -4,6 +4,7 @@ include(FetchContent) # Creating symbolic links create_symlink_if_exists("${CMAKE_SOURCE_DIR}/localization" "${CMAKE_CURRENT_BINARY_DIR}/localization") create_symlink_if_exists("${CMAKE_SOURCE_DIR}/luamods" "${CMAKE_CURRENT_BINARY_DIR}/luamods") + if (EXISTS "${CMAKE_SOURCE_DIR}/.env") create_symlink_if_exists("${CMAKE_SOURCE_DIR}/.env" "${CMAKE_CURRENT_BINARY_DIR}/.env") endif() @@ -53,6 +54,7 @@ FetchContent_Declare( ) FetchContent_MakeAvailable(pqxx) +# websockets FetchContent_Declare( ixwebsocket GIT_REPOSITORY https://github.com/machinezone/IXWebSocket @@ -60,5 +62,22 @@ FetchContent_Declare( ) FetchContent_MakeAvailable(ixwebsocket) -target_link_libraries(Bot PRIVATE ixwebsocket::ixwebsocket pqxx nlohmann_json::nlohmann_json cpr::cpr) +set(SOL2_LUA_VERSION "5.4.8" CACHE STRING "The version of Lua used") +set(SOL2_BUILD_LUA FALSE CACHE BOOL "Always build Lua, do not search for it in the system") + +FetchContent_Declare( + sol + GIT_REPOSITORY https://github.com/ThePhD/sol2.git + GIT_TAG v3.5.0 +) +FetchContent_MakeAvailable(sol) + +target_link_libraries(Bot PRIVATE + ixwebsocket::ixwebsocket + pqxx + nlohmann_json::nlohmann_json + cpr::cpr + lua + sol2::sol2 +) |
