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:
26
build/cmake/lib/regex.cmake
Normal file
26
build/cmake/lib/regex.cmake
Normal file
@@ -0,0 +1,26 @@
|
||||
#############################################################################
|
||||
# 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
|
||||
#############################################################################
|
||||
|
||||
wx_add_thirdparty_library(wxUSE_REGEX REGEX "enable support for wxRegEx class" DEFAULT builtin)
|
||||
|
||||
if(wxUSE_REGEX)
|
||||
# TODO: Forcing builtin until sys is implemented
|
||||
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()
|
||||
|
||||
#TODO: find external lib and include dir
|
Reference in New Issue
Block a user