-find_package(wxWidgets REQUIRED html net adv core base)
+if (MSVC)
+ add_definitions(-D_CRT_SECURE_NO_WARNINGS -DSECURITY_WIN32 -DNOPCH -DWXUSINGDLL -DUNICODE)
+endif()
+
+find_package(wxWidgets REQUIRED html adv core base)
include(${wxWidgets_USE_FILE})
find_package(LibXml2 REQUIRED)
include_directories(${LIBXML2_INCLUDE_DIRS})
+if (APPLE)
+ if (LIBXML2_LIBRARY MATCHES "^/usr/lib/.*")
+ message(FATAL_ERROR "Use of macOS's internal libxml2 dynamic library is not allowed.")
+ endif()
+endif()
+
+if(!APPLE)
+ find_package(Iconv REQUIRED)
+ include_directories(${Iconv_INCLUDE_DIR})
+endif()
find_package(CURL REQUIRED)
include_directories(${CURL_INCLUDE_DIRS})
+if (APPLE)
+ if (LIBXML2_LIBRARY MATCHES "^/usr/lib/.*")
+ message(FATAL_ERROR "Use of macOS's internal libcurl dynamic library is not allowed.")
+ endif()
+endif()
find_package(SFML COMPONENTS audio REQUIRED)
-include_directories(${SFML_INCLUDE_DIR})
\ No newline at end of file
+include_directories(${SFML_DIR}/../include)