File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ include(CMakePackageConfigHelpers)
12
12
enable_testing ()
13
13
14
14
option (GLM_QUIET "No CMake Message" OFF )
15
+ option (BUILD_SHARED_LIBS "Build shared library" ON )
16
+ option (BUILD_STATIC_LIBS "Build static library" ON )
15
17
option (GLM_TEST_ENABLE_CXX_98 "Enable C++ 98" OFF )
16
18
option (GLM_TEST_ENABLE_CXX_11 "Enable C++ 11" OFF )
17
19
option (GLM_TEST_ENABLE_CXX_14 "Enable C++ 14" OFF )
Original file line number Diff line number Diff line change @@ -44,19 +44,23 @@ source_group("SIMD Files" FILES ${SIMD_HEADER})
44
44
45
45
include_directories (${CMAKE_CURRENT_SOURCE_DIR} /..)
46
46
47
+ if (BUILD_STATIC_LIBS)
47
48
add_library (glm_static STATIC ${ROOT_TEXT} ${ROOT_MD} ${ROOT_NAT}
48
49
${ROOT_SOURCE} ${ROOT_INLINE} ${ROOT_HEADER}
49
50
${CORE_SOURCE} ${CORE_INLINE} ${CORE_HEADER}
50
51
${EXT_SOURCE} ${EXT_INLINE} ${EXT_HEADER}
51
52
${GTC_SOURCE} ${GTC_INLINE} ${GTC_HEADER}
52
53
${GTX_SOURCE} ${GTX_INLINE} ${GTX_HEADER}
53
54
${SIMD_SOURCE} ${SIMD_INLINE} ${SIMD_HEADER} )
55
+ endif ()
54
56
57
+ if (BUILD_SHARED_LIBS )
55
58
add_library (glm_shared SHARED ${ROOT_TEXT} ${ROOT_MD} ${ROOT_NAT}
56
59
${ROOT_SOURCE} ${ROOT_INLINE} ${ROOT_HEADER}
57
60
${CORE_SOURCE} ${CORE_INLINE} ${CORE_HEADER}
58
61
${EXT_SOURCE} ${EXT_INLINE} ${EXT_HEADER}
59
62
${GTC_SOURCE} ${GTC_INLINE} ${GTC_HEADER}
60
63
${GTX_SOURCE} ${GTX_INLINE} ${GTX_HEADER}
61
64
${SIMD_SOURCE} ${SIMD_INLINE} ${SIMD_HEADER} )
65
+ endif ()
62
66
You can’t perform that action at this time.
0 commit comments