Requires updates of expat and tiff submodules. Most libraries have their own CMakeLists, add a comment with a suggestion to use this for implementing build-in support.
		
			
				
	
	
		
			22 lines
		
	
	
		
			780 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			780 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
#############################################################################
 | 
						|
# Name:        build/cmake/lib/regex.cmake
 | 
						|
# Purpose:     Use external or internal regex lib
 | 
						|
# Author:      Tobias Taschner
 | 
						|
# Created:     2016-09-25
 | 
						|
# Copyright:   (c) 2016 wxWidgets development team
 | 
						|
# Licence:     wxWindows licence
 | 
						|
#############################################################################
 | 
						|
 | 
						|
if(wxUSE_REGEX)
 | 
						|
    set(wxUSE_REGEX builtin)
 | 
						|
    wx_add_builtin_library(wxregex
 | 
						|
        src/regex/regcomp.c
 | 
						|
        src/regex/regexec.c
 | 
						|
        src/regex/regerror.c
 | 
						|
        src/regex/regfree.c
 | 
						|
    )
 | 
						|
    target_include_directories(wxregex PRIVATE ${wxSETUP_HEADER_PATH} ${wxSOURCE_DIR}/include)
 | 
						|
    set(REGEX_LIBRARIES wxregex)
 | 
						|
    set(REGEX_INCLUDE_DIRS ${wxSOURCE_DIR}/src/regex)
 | 
						|
endif()
 |