mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 03:30:35 +00:00
[282/906] update CMake build
This commit is contained in:
parent
1fbc72393c
commit
0ada2fab05
1 changed files with 19 additions and 4 deletions
|
@ -2,14 +2,19 @@
|
|||
add_definitions(-DHAVE_CONFIG_H)
|
||||
|
||||
include_directories(AFTER
|
||||
../../../win32/common
|
||||
${GLEW_INCLUDE_DIR}
|
||||
.
|
||||
${GLEW_INCLUDE_DIR}
|
||||
${GSTREAMER_INCLUDE_DIR}
|
||||
${GLIB2_INCLUDE_DIR}
|
||||
${LIBXML2_INCLUDE_DIR}
|
||||
${LIBICONV_INCLUDE_DIR})
|
||||
|
||||
|
||||
if (WIN32)
|
||||
|
||||
include_directories(AFTER
|
||||
../../../win32/common)
|
||||
|
||||
add_library (gstgl STATIC
|
||||
gstglwindow_win32.c
|
||||
gstgldisplay.c
|
||||
|
@ -17,8 +22,6 @@ add_library (gstgl STATIC
|
|||
gstglfilter.c
|
||||
gstglshader.c)
|
||||
|
||||
#FIXME: get ride of this condition
|
||||
if (WIN32)
|
||||
target_link_libraries(gstgl
|
||||
general ${OPENGL_LIBRARIES}
|
||||
general ${GLEW_LIBRARY}
|
||||
|
@ -26,7 +29,19 @@ target_link_libraries(gstgl
|
|||
general ${GSTREAMER_LIBRARIES}
|
||||
gdi32
|
||||
winmm)
|
||||
|
||||
else (WIN32)
|
||||
|
||||
include_directories(AFTER
|
||||
../../..)
|
||||
|
||||
add_library (gstgl STATIC
|
||||
gstglwindow_x11.c
|
||||
gstgldisplay.c
|
||||
gstglbuffer.c
|
||||
gstglfilter.c
|
||||
gstglshader.c)
|
||||
|
||||
target_link_libraries(gstgl
|
||||
general ${OPENGL_LIBRARIES}
|
||||
general ${GLEW_LIBRARY}
|
||||
|
|
Loading…
Reference in a new issue