CMake: expat code in separate file
Consistent with other external libraries.
This commit is contained in:
22
build/cmake/lib/expat.cmake
Normal file
22
build/cmake/lib/expat.cmake
Normal file
@@ -0,0 +1,22 @@
|
||||
#############################################################################
|
||||
# Name: build/cmake/lib/expat.cmake
|
||||
# Purpose: Use external or internal expat lib
|
||||
# Author: Tobias Taschner
|
||||
# Created: 2016-09-21
|
||||
# Copyright: (c) 2016 wxWidgets development team
|
||||
# Licence: wxWindows licence
|
||||
#############################################################################
|
||||
|
||||
wx_add_thirdparty_library(wxUSE_EXPAT EXPAT "use expat for XML parsing" DEFAULT_APPLE sys)
|
||||
|
||||
if(wxUSE_EXPAT STREQUAL "builtin")
|
||||
wx_add_builtin_library(wxexpat
|
||||
src/expat/expat/lib/xmlparse.c
|
||||
src/expat/expat/lib/xmlrole.c
|
||||
src/expat/expat/lib/xmltok.c
|
||||
)
|
||||
set(EXPAT_LIBRARIES wxexpat)
|
||||
set(EXPAT_INCLUDE_DIRS ${wxSOURCE_DIR}/src/expat/expat/lib)
|
||||
elseif(wxUSE_EXPAT)
|
||||
find_package(EXPAT REQUIRED)
|
||||
endif()
|
Reference in New Issue
Block a user