mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-30 02:17:07 +00:00
fix compile definitions for glewmx too
This commit is contained in:
parent
516c9adf41
commit
b565769b01
@ -49,13 +49,11 @@ target_link_libraries (glew ${GLEW_LIBRARIES})
|
|||||||
target_link_libraries (glew_s ${GLEW_LIBRARIES})
|
target_link_libraries (glew_s ${GLEW_LIBRARIES})
|
||||||
|
|
||||||
add_library(glewmx SHARED ${GLEW_DIR}/src/glew.c )
|
add_library(glewmx SHARED ${GLEW_DIR}/src/glew.c )
|
||||||
|
set_target_properties (glewmx PROPERTIES COMPILE_DEFINITIONS "GLEW_BUILD;GLEW_MX" OUTPUT_NAME "${GLEW_LIB_NAME}mx" PREFIX "${DLL_PREFIX}")
|
||||||
add_library(glewmx_s STATIC ${GLEW_DIR}/src/glew.c )
|
add_library(glewmx_s STATIC ${GLEW_DIR}/src/glew.c )
|
||||||
|
set_target_properties (glewmx_s PROPERTIES COMPILE_DEFINITIONS "GLEW_STATIC;GLEW_MX" OUTPUT_NAME "${GLEW_LIB_NAME}mx" PREFIX lib)
|
||||||
target_link_libraries (glewmx ${GLEW_LIBRARIES})
|
target_link_libraries (glewmx ${GLEW_LIBRARIES})
|
||||||
target_link_libraries (glewmx_s ${GLEW_LIBRARIES})
|
target_link_libraries (glewmx_s ${GLEW_LIBRARIES})
|
||||||
set_target_properties (glewmx PROPERTIES COMPILE_FLAGS "-DGLEW_MX" OUTPUT_NAME ${GLEW_LIB_NAME}mx)
|
|
||||||
set_target_properties (glewmx_s PROPERTIES COMPILE_FLAGS "-DGLEW_MX" OUTPUT_NAME ${GLEW_LIB_NAME}mx)
|
|
||||||
set_target_properties (glewmx PROPERTIES PREFIX "${DLL_PREFIX}")
|
|
||||||
set_target_properties (glewmx_s PROPERTIES PREFIX lib)
|
|
||||||
|
|
||||||
install ( TARGETS glew glew_s glewmx glewmx_s
|
install ( TARGETS glew glew_s glewmx glewmx_s
|
||||||
RUNTIME DESTINATION bin
|
RUNTIME DESTINATION bin
|
||||||
|
Loading…
Reference in New Issue
Block a user