mirror of
https://github.com/godotengine/godot-cpp-template.git
synced 2026-01-04 14:09:57 +03:00
fix cmake compilation of the example project
This commit is contained in:
@@ -49,6 +49,8 @@ target_sources(${LIBNAME}
|
|||||||
PRIVATE
|
PRIVATE
|
||||||
src/register_types.cpp
|
src/register_types.cpp
|
||||||
src/register_types.h
|
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
|
# 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)
|
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}
|
set_target_properties(${LIBNAME}
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
# The generator expression here prevents msvc from adding a Debug or Release subdir.
|
# The generator expression here prevents msvc from adding a Debug or Release subdir.
|
||||||
|
|||||||
Reference in New Issue
Block a user