Properly export when making shared library

Fixes using a dll in windows
This commit is contained in:
Sandy Carter
2022-12-02 23:10:27 -05:00
committed by Sandy
parent 54aaa9103d
commit cfc015871f

View File

@@ -44,6 +44,7 @@ if(BGFX_LIBRARY_TYPE STREQUAL STATIC)
add_library( bgfx STATIC ${BGFX_SOURCES} )
else()
add_library( bgfx SHARED ${BGFX_SOURCES} )
target_compile_definitions( bgfx PUBLIC BGFX_SHARED_LIB_BUILD=1 )
endif()
if(BGFX_CONFIG_RENDERER_WEBGPU)