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:
41
build/cmake/lib/adv/CMakeLists.txt
Normal file
41
build/cmake/lib/adv/CMakeLists.txt
Normal file
@@ -0,0 +1,41 @@
|
||||
#############################################################################
|
||||
# Name: build/cmake/lib/adv/CMakeLists.txt
|
||||
# Purpose: CMake file for adv library
|
||||
# Author: Tobias Taschner
|
||||
# Created: 2016-10-03
|
||||
# Copyright: (c) 2016 wxWidgets development team
|
||||
# Licence: wxWindows licence
|
||||
#############################################################################
|
||||
|
||||
include(../../source_groups.cmake)
|
||||
|
||||
wx_append_sources(ADV_FILES ADVANCED_CMN)
|
||||
|
||||
if(WXMSW)
|
||||
wx_append_sources(ADV_FILES ADVANCED_MSW)
|
||||
wx_append_sources(ADV_FILES ADVANCED_MSW_NATIVE)
|
||||
wx_append_sources(ADV_FILES ADVANCED_MSW_DESKTOP)
|
||||
elseif(WXOSX_COCOA)
|
||||
wx_append_sources(ADV_FILES ADVANCED_OSX_COCOA)
|
||||
elseif(WXGTK)
|
||||
wx_append_sources(ADV_FILES ADVANCED_GTK2)
|
||||
wx_append_sources(ADV_FILES ADVANCED_GTK_NATIVE)
|
||||
endif()
|
||||
|
||||
if(UNIX AND NOT APPLE AND NOT WIN32)
|
||||
wx_append_sources(ADV_FILES ADVANCED_UNIX)
|
||||
endif()
|
||||
|
||||
wx_add_library(adv ${ADV_FILES})
|
||||
if(WIN32)
|
||||
wx_lib_link_libraries(adv PRIVATE
|
||||
winmm
|
||||
)
|
||||
endif()
|
||||
if(WXOSX_COCOA)
|
||||
wx_lib_link_libraries(adv PUBLIC
|
||||
"-framework AudioToolbox"
|
||||
)
|
||||
endif()
|
||||
|
||||
wx_finalize_lib(adv)
|
Reference in New Issue
Block a user