Add CMake build system
Add CMake build system for libraries, tests and samples update_files.py converts build/files into CMake format. build/update-setup-h has been modified to update build/cmake/setup.h.in.
This commit is contained in:
36
build/cmake/lib/media/CMakeLists.txt
Normal file
36
build/cmake/lib/media/CMakeLists.txt
Normal file
@@ -0,0 +1,36 @@
|
||||
#############################################################################
|
||||
# Name: build/cmake/lib/media/CMakeLists.txt
|
||||
# Purpose: CMake file for media library
|
||||
# Author: Tobias Taschner
|
||||
# Created: 2016-10-03
|
||||
# Copyright: (c) 2016 wxWidgets development team
|
||||
# Licence: wxWindows licence
|
||||
#############################################################################
|
||||
|
||||
include(../../source_groups.cmake)
|
||||
|
||||
wx_append_sources(MEDIA_FILES MEDIA_CMN)
|
||||
|
||||
if(WXMSW)
|
||||
wx_append_sources(MEDIA_FILES MEDIA_MSW)
|
||||
elseif(WXOSX_COCOA)
|
||||
wx_append_sources(MEDIA_FILES MEDIA_OSX_COCOA)
|
||||
elseif(UNIX)
|
||||
wx_append_sources(MEDIA_FILES MEDIA_UNIX)
|
||||
endif()
|
||||
|
||||
wx_add_library(media ${MEDIA_FILES})
|
||||
if(WXOSX_COCOA)
|
||||
# TODO: add version detection of some kind and/or wx_option
|
||||
wx_lib_compile_definitions(media PRIVATE -DwxOSX_USE_QTKIT=0)
|
||||
wx_lib_link_libraries(media PUBLIC
|
||||
"-framework AVFoundation"
|
||||
"-framework AVKit"
|
||||
"-framework CoreMedia"
|
||||
)
|
||||
elseif(UNIX)
|
||||
wx_lib_include_directories(media PUBLIC ${GSTREAMER_INCLUDE_DIRS})
|
||||
wx_lib_link_libraries(media PUBLIC ${GSTREAMER_LIBRARIES})
|
||||
endif()
|
||||
|
||||
wx_finalize_lib(media)
|
Reference in New Issue
Block a user