Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
third-party
glew
Commits
516c9adf
Commit
516c9adf
authored
Feb 26, 2015
by
Michel Zou
Browse files
set right export definitions for shared/static libs
parent
9a8e815d
Changes
1
Hide whitespace changes
Inline
Side-by-side
build/cmake/CMakeLists.txt
View file @
516c9adf
...
...
@@ -37,18 +37,16 @@ endif ()
find_package
(
OpenGL REQUIRED
)
set
(
GLEW_LIBRARIES
${
OPENGL_LIBRARIES
}
)
add_definitions
(
-DGLEW_BUILD
-DGLEW_NO_GLU
)
add_definitions
(
-DGLEW_NO_GLU
)
include_directories
(
${
GLEW_DIR
}
/include
)
add_library
(
glew SHARED
${
GLEW_DIR
}
/src/glew.c
)
set_target_properties
(
glew PROPERTIES COMPILE_DEFINITIONS
"GLEW_BUILD"
OUTPUT_NAME
"
${
GLEW_LIB_NAME
}
"
PREFIX
"
${
DLL_PREFIX
}
"
)
add_library
(
glew_s STATIC
${
GLEW_DIR
}
/src/glew.c
)
set_target_properties
(
glew_s PROPERTIES COMPILE_DEFINITIONS
"GLEW_STATIC"
OUTPUT_NAME
"
${
GLEW_LIB_NAME
}
"
PREFIX lib
)
target_link_libraries
(
glew
${
GLEW_LIBRARIES
}
)
target_link_libraries
(
glew_s
${
GLEW_LIBRARIES
}
)
set_target_properties
(
glew PROPERTIES OUTPUT_NAME
${
GLEW_LIB_NAME
}
)
set_target_properties
(
glew_s PROPERTIES OUTPUT_NAME
${
GLEW_LIB_NAME
}
)
set_target_properties
(
glew PROPERTIES PREFIX
"
${
DLL_PREFIX
}
"
)
set_target_properties
(
glew_s PROPERTIES PREFIX lib
)
add_library
(
glewmx SHARED
${
GLEW_DIR
}
/src/glew.c
)
add_library
(
glewmx_s STATIC
${
GLEW_DIR
}
/src/glew.c
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment