diff --git a/CMakeLists.txt b/CMakeLists.txt index b4c6385..748c8af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,6 +66,7 @@ include(godot-dev-configuration) # 3rd party library setup/configuration (leverages vcpkg) # ======================================================================= +find_package(cuda REQUIRED) find_package(fmt CONFIG REQUIRED) find_package(spdlog CONFIG REQUIRED) @@ -95,6 +96,7 @@ target_compile_options(${PROJECT_NAME} PUBLIC /EHsc /utf-8 /Zc:preprocessor + $<$: /MDd > @@ -125,13 +127,14 @@ target_compile_options(${PROJECT_NAME} PUBLIC ) # enable extension hot swapping -target_compile_definitions(${PROJECT_NAME} PUBLIC +target_compile_definitions(${PROJECT_NAME} PUBLIC HOT_RELOAD_ENABLED ) # include directories gdextension library target_include_directories(${PROJECT_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src" + ${CUDA_INCLUDE_DIRS} ) if (NOT APPLE) diff --git a/src/main.hpp b/src/main.hpp index 9c3cdaf..37e141b 100644 --- a/src/main.hpp +++ b/src/main.hpp @@ -6,6 +6,8 @@ #include "entity/level.hpp" #include "ui/main_dialog.hpp" +#include + namespace rl { class Main : public godot::Node @@ -24,6 +26,7 @@ namespace rl static void _bind_methods() { + cuda::atomic test = true; signal_binding::add(); } diff --git a/vcpkg.json b/vcpkg.json index a69a900..86215ec 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -1,10 +1,11 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json", - "documentation": "https://github.com/microsoft/vcpkg/blob/master/docs/users/manifests.md", - "name": "roguelite", - "version": "0.1.0", - "dependencies": [ - "fmt", - "spdlog" - ] + "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json", + "documentation": "https://github.com/microsoft/vcpkg/blob/master/docs/users/manifests.md", + "name": "roguelite", + "version": "0.1.0", + "dependencies": [ + "fmt", + "spdlog", + "cuda" + ] }