mirror of
https://github.com/godotengine/godot-cpp-template.git
synced 2025-12-31 21:48:10 +03:00
fix cmake compilation of the example project
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user