# #wxwidgets - Portable GUI library # #Patched to install library export data for easy import in clients via #find_package(wxwidgets CONFIG). This method allows client program build #scripts which are fully portable between Linux and Windows. The old method #which does NOT use CONFIG will still work, but the build scripts for client #programs will not be portable between Linux and Windows. # ExternalProject_Add ( wxwidgets PREFIX ${CMAKE_INSTALL_PREFIX} URL https://github.com/wxWidgets/wxWidgets/archive/v3.1.1.zip URL_MD5 5535b6cfc7d59e0c3121f7b628b6d036 PATCH_COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_LIST_DIR}/patch . CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH= -DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE} -DBUILD_SHARED_LIBS:BOOL=OFF -DwxBUILD_MONOLITHIC:BOOL=OFF #ON has been verified to work (patched the cmake build script) -DwxBUILD_COMPATIBILITY:STRING=2.8 -DwxBUILD_PRECOMP:BOOL=ON -DwxUSE_STL:BOOL=ON -DwxUSE_IPV6:BOOL=ON #Build with winsock2.h, not winsock.h -DwxUSE_REGEX:STRING=OFF # -DwxUSE_REGEX:STRING=builtin -DwxUSE_ZLIB:STRING=sys -DwxUSE_EXPAT:STRING=sys -DwxUSE_LIBJPEG:STRING=sys -DwxUSE_LIBPNG:STRING=sys -DwxUSE_LIBTIFF:STRING=sys -DwxUSE_LIBICONV:STRING=sys -DwxUSE_OPENGL:BOOL=OFF -DwxUSE_WEBVIEW:BOOL=OFF DEPENDS zlib expat libjpeg libpng libtiff iconv )