mirror of
https://github.com/recp/cglm.git
synced 2025-10-04 09:08:53 +00:00
update CMakefile
This commit is contained in:
@@ -22,7 +22,7 @@ if(CGLM_USE_C99)
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
add_definitions(-DNDEBUG -D_WINDOWS -D_USRDLL -DCGLM_EXPORTS -DCGLM_DLL)
|
||||
add_definitions(-DNDEBUG -D_WINDOWS -D_USRDLL)
|
||||
add_compile_options(/W3 /Ox /Gy /Oi /TC)
|
||||
|
||||
# Ref: https://skia.googlesource.com/third_party/sdl/+/refs/heads/master/CMakeLists.txt#225
|
||||
@@ -75,6 +75,11 @@ add_library(${PROJECT_NAME}
|
||||
src/affine2d.c
|
||||
)
|
||||
|
||||
if(CGLM_SHARED)
|
||||
add_definitions(-DCGLM_EXPORTS)
|
||||
target_compile_definitions(${PROJECT_NAME} PUBLIC -DCGLM_DLL)
|
||||
endif()
|
||||
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES
|
||||
VERSION ${PROJECT_VERSION}
|
||||
SOVERSION ${PROJECT_VERSION_MAJOR})
|
||||
|
Reference in New Issue
Block a user