Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
cmake: Implement support for CMake on Linux and remove Makefiles
[xestiacalendar/.git] / source / CMakeFunctions / Packages.cmake
1 if (MSVC)
2     add_definitions(-D_CRT_SECURE_NO_WARNINGS -DSECURITY_WIN32 -DNOPCH -DWXUSINGDLL -DUNICODE)
3 endif()
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})
10 if (APPLE)
11     if (LIBXML2_LIBRARY MATCHES "^/usr/lib/.*")
12         message(FATAL_ERROR "Use of macOS's internal libxml2 dynamic library is not allowed.")
13     endif()
14 endif()
16 if(NOT APPLE)
17     find_package(Iconv REQUIRED)
18     include_directories(${Iconv_INCLUDE_DIR})
19 endif()
21 find_package(CURL REQUIRED)
22 include_directories(${CURL_INCLUDE_DIRS})
23 if (APPLE)
24     if (LIBXML2_LIBRARY MATCHES "^/usr/lib/.*")
25         message(FATAL_ERROR "Use of macOS's internal libcurl dynamic library is not allowed.")
26     endif()
27 endif()
29 find_package(SQLite3 REQUIRED)
30 include_directories(${SQLite3_INCLUDE_DIRS})
31 if (APPLE)
32     if (SQLite3_LIBRARY MATCHES "^/usr/lib/.*")
33         message(FATAL_ERROR "Use of macOS's internal libsqlite3 dynamic library is not allowed.")
34     endif()
35 endif()
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy