Skip to content

Commit 1d3ae5a

Browse files
authored
Merge pull request #97 from van800/cmake2
2 parents 8d7a2ca + e1d0831 commit 1d3ae5a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ target_sources(${LIBNAME}
4949
PRIVATE
5050
src/register_types.cpp
5151
src/register_types.h
52+
src/example_class.cpp
53+
src/example_class.h
5254
)
5355

5456
# Fetch a list of the xml files to use for documentation and add to our target
@@ -63,6 +65,9 @@ endif()
6365

6466
target_link_libraries(${LIBNAME} PRIVATE godot-cpp)
6567

68+
# Require at least C++17 for this target
69+
set_property(TARGET ${LIBNAME} PROPERTY CXX_STANDARD 17)
70+
6671
set_target_properties(${LIBNAME}
6772
PROPERTIES
6873
# The generator expression here prevents msvc from adding a Debug or Release subdir.

0 commit comments

Comments
 (0)