summaryrefslogtreecommitdiff
path: root/bot/CMakeLists.txt
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-04-05 17:25:52 +0400
committerilotterytea <iltsu@alright.party>2025-04-05 17:25:52 +0400
commita1a36cf4d4999b5ce89dce95364c9fd839b54b5d (patch)
treef11e65980852f623d6ce7612691a5af4544e91a1 /bot/CMakeLists.txt
parente1d3f72ac38b4dad55d1d02f945e50f086299644 (diff)
upd: symlink creation
Diffstat (limited to 'bot/CMakeLists.txt')
-rw-r--r--bot/CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/CMakeLists.txt b/bot/CMakeLists.txt
index 4f02d17..1806c03 100644
--- a/bot/CMakeLists.txt
+++ b/bot/CMakeLists.txt
@@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.10)
include(FetchContent)
# Creating symbolic links
-file(CREATE_LINK "${CMAKE_SOURCE_DIR}/localization" "${CMAKE_CURRENT_BINARY_DIR}/localization" SYMBOLIC)
+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")
- file(CREATE_LINK "${CMAKE_SOURCE_DIR}/.env" "${CMAKE_CURRENT_BINARY_DIR}/.env" SYMBOLIC)
+ create_symlink_if_exists("${CMAKE_SOURCE_DIR}/.env" "${CMAKE_CURRENT_BINARY_DIR}/.env")
endif()
add_executable(Bot)