2 add_definitions(-D_CRT_SECURE_NO_WARNINGS -DSECURITY_WIN32 -DNOPCH -DWXUSINGDLL -DUNICODE)
5 find_package(wxWidgets REQUIRED html adv core base)
6 include(${wxWidgets_USE_FILE})
8 find_package(LibXml2 REQUIRED)
9 include_directories(${LIBXML2_INCLUDE_DIRS})
11 if (LIBXML2_LIBRARY MATCHES "^/usr/lib/.*")
12 message(FATAL_ERROR "Use of macOS's internal libxml2 dynamic library is not allowed.")
17 find_package(Iconv REQUIRED)
18 include_directories(${Iconv_INCLUDE_DIR})
21 find_package(CURL REQUIRED)
22 include_directories(${CURL_INCLUDE_DIRS})
24 if (LIBXML2_LIBRARY MATCHES "^/usr/lib/.*")
25 message(FATAL_ERROR "Use of macOS's internal libcurl dynamic library is not allowed.")
29 find_package(SQLite3 REQUIRED)
30 include_directories(${SQLite3_INCLUDE_DIRS})
32 if (SQLite3_LIBRARY MATCHES "^/usr/lib/.*")
33 message(FATAL_ERROR "Use of macOS's internal libsqlite3 dynamic library is not allowed.")