Fix stuff

This commit is contained in:
2025-01-22 18:03:42 +01:00
parent 020985a1bb
commit 18581fca52
15 changed files with 358 additions and 131 deletions

View File

@@ -48,17 +48,6 @@ FetchContent_Declare(cpr GIT_REPOSITORY https://github.com/libcpr/cpr.git
GIT_TAG dec9422db3af470641f8b0d90e4b451c4daebf64) # Replace with your desired git commit from: https://github.com/libcpr/cpr/releases
FetchContent_MakeAvailable(cpr)
# fetch asio
FetchContent_Declare(asio
GIT_REPOSITORY git@github.com:chriskohlhoff/asio.git
GIT_TAG master
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
)
FetchContent_GetProperties(asio)
if(NOT asio_POPULATED)
FetchContent_Populate(asio)
endif()
find_library(GDIPLUS_LIBRARY NAMES libgdiplus gdiplus)
set(GDIPLUS_LIBRARY gdiplus)
@@ -88,7 +77,7 @@ add_custom_target(CopyLuaScripts ALL
add_custom_command(TARGET CopyLuaScripts POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_CURRENT_SOURCE_DIR}/lua
$<TARGET_FILE_DIR:${PROJECT_NAME}>/lua)
$<TARGET_FILE_DIR:${PROJECT_NAME}>/)
add_custom_target(CopyResources ALL
COMMENT "Copying resources to output directory"