You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set(VSG_MAX_INSTRUMENTATION_LEVEL 1 CACHESTRING"Set the instrumentation level to build into the VSG library, 0 for off, 1 coarse grained, 2 medium, 3 fine grained." )
42
42
43
43
# Enable/disable shader compilation support that pulls in glslang
44
-
set(VSG_SUPPORTS_ShaderCompiler 1 CACHESTRING"Optional shader compiler support, 0 for off, 1 for enabled.")
set(GLSLANG_MIN_VERSION "15"CACHESTRING"glslang 14 is the earliest version that we think installs itself properly on all platforms. Other platforms may be able to use an earlier version")
message(WARNING"glslang not found. ShaderCompile support disabled.")
61
53
set(VSG_SUPPORTS_ShaderCompiler 0)
@@ -75,7 +67,7 @@ if (VSG_SUPPORTS_ShaderCompiler)
75
67
endif()
76
68
endif()
77
69
78
-
set(VSG_SUPPORTS_Windowing 1 CACHESTRING"Optional native windowing support providing a default implementation of vsg::Window::create(), 0 for off, 1 for enabled.")
70
+
option(VSG_SUPPORTS_Windowing"Optional native windowing support providing a default implementation of vsg::Window::create()"ON)
79
71
if (VSG_SUPPORTS_Windowing)
80
72
if (ANDROID)
81
73
set(FIND_DEPENDENCY_WINDOWING "")
@@ -98,6 +90,8 @@ if (VSG_SUPPORTS_Windowing)
98
90
endif()
99
91
endif()
100
92
93
+
option(VSG_USE_dynamic_cast"Use dynamic_cast in vsg::Object::cast<T>(), 0 for off, 1 for enabled."OFF)
94
+
101
95
# this line needs to be after the call to setup_build_vars()
To link your lib/application to required dependencies you'll need:
178
174
179
175
target_link_libraries(mytargetname vsg::vsg)
180
176
181
177
This will tell CMake to set up all the appropriate include paths, libs and any definitions (such as the VSG_SHARED_LIBRARY #define that is required under Windows with shared library builds to select the correct declspec().)
182
178
179
+
This will also tell CMake that your minimum C++ standard is 17.
180
+
183
181
For example, a bare minimum CMakeLists.txt file to compile a single file application would be:
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ Community projects:
45
45
46
46
The above dependency versions are known to work so they've been set as the current minimum, it may be possible to build against older versions. If you find success with older versions let us know and we can update the version info.
47
47
48
-
While you can install Vulkan and glslang development libraries and headers from 3rd party repositoriesm these may be older, so for the latest versions you can also use the VulkanSDK provided by LunarG. Your can download VulkanSDK from [LunarG](https://vulkan.lunarg.com/sdk/home), unpack into a local directory and set VULKAN_SDK environment variable to the include/lib directory within it.
48
+
While you can install Vulkan and glslang development libraries and headers from 3rd party repositories, these may be older, so for the latest versions you can also use the VulkanSDK provided by LunarG. You can download VulkanSDK from [LunarG](https://vulkan.lunarg.com/sdk/home), unpack into a local directory and set VULKAN_SDK environment variable to the include/lib directory within it.
0 commit comments