fix cmake compilation of the example project

This commit is contained in:
Ivan Shakhov committed 2025-09-24 11:22:13 +02:00
1 parent 8d7a2ca9f8
commit e1d0831e3b
1 file changed
+5
+5
View File
@@ -49,6 +49,8 @@ target_sources(${LIBNAME}
PRIVATE
src/register_types.cpp
src/register_types.h
src/example_class.cpp
src/example_class.h
)
# Fetch a list of the xml files to use for documentation and add to our target
@@ -63,6 +65,9 @@ endif()
target_link_libraries(${LIBNAME} PRIVATE godot-cpp)
# Require at least C++17 for this target
set_property(TARGET ${LIBNAME} PROPERTY CXX_STANDARD 17)
set_target_properties(${LIBNAME}
PROPERTIES
# The generator expression here prevents msvc from adding a Debug or Release subdir.