Fix the MinGW build

- qtkeychain isn't necessarily in a qt5keychain subdirectory.
- Explicitly add OpenSSL to the include directories
- Make sure that the USE_OUR_OWN_SQLITE3 code is initialized
  for csync by calling find_package.
This commit is contained in:
Jocelyn Turcotte 2015-02-04 13:03:28 +01:00 committed by Jocelyn Turcotte
parent 68ec24797b
commit 43a51c1bef
6 changed files with 12 additions and 11 deletions

View file

@ -9,7 +9,12 @@
# QTKEYCHAIN_LIBRARIES - The libraries needed to use QtKeychain # QTKEYCHAIN_LIBRARIES - The libraries needed to use QtKeychain
# QTKEYCHAIN_DEFINITIONS - Compiler switches required for using LibXml2 # QTKEYCHAIN_DEFINITIONS - Compiler switches required for using LibXml2
find_path(QTKEYCHAIN_INCLUDE_DIR qt5keychain/keychain.h) find_path(QTKEYCHAIN_INCLUDE_DIR
NAMES
keychain.h
PATH_SUFFIXES
qt5keychain
)
find_library(QTKEYCHAIN_LIBRARY find_library(QTKEYCHAIN_LIBRARY
NAMES NAMES

View file

@ -28,6 +28,8 @@ if (NOT WIN32)
find_package(Iconv) find_package(Iconv)
endif (NOT WIN32) endif (NOT WIN32)
find_package(SQLite3 3.8.0 REQUIRED)
include(ConfigureChecks.cmake) include(ConfigureChecks.cmake)

View file

@ -138,6 +138,7 @@ set(3rdparty_INC
) )
include_directories(${3rdparty_INC}) include_directories(${3rdparty_INC})
include_directories(${OPENSSL_INCLUDE_DIR})
# csync is required. # csync is required.
include_directories(${CMAKE_SOURCE_DIR}/csync/src include_directories(${CMAKE_SOURCE_DIR}/csync/src

View file

@ -12,6 +12,7 @@ include_directories(${CMAKE_SOURCE_DIR}/csync/src
${CMAKE_BINARY_DIR}/csync/src ${CMAKE_BINARY_DIR}/csync/src
) )
include_directories(${CMAKE_SOURCE_DIR}/src/3rdparty/qjson) include_directories(${CMAKE_SOURCE_DIR}/src/3rdparty/qjson)
include_directories(${OPENSSL_INCLUDE_DIR})
if ( APPLE ) if ( APPLE )
list(APPEND OS_SPECIFIC_LINK_LIBRARIES list(APPEND OS_SPECIFIC_LINK_LIBRARIES

View file

@ -19,11 +19,7 @@
#include <QSettings> #include <QSettings>
#include <QInputDialog> #include <QInputDialog>
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) #include <keychain.h>
#include <qt5keychain/keychain.h>
#else
#include <qtkeychain/keychain.h>
#endif
#include "account.h" #include "account.h"
#include "accessmanager.h" #include "accessmanager.h"

View file

@ -32,11 +32,7 @@
#include "cookiejar.h" #include "cookiejar.h"
#include "syncengine.h" #include "syncengine.h"
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) #include <keychain.h>
#include <qt5keychain/keychain.h>
#else
#include <qtkeychain/keychain.h>
#endif
using namespace QKeychain; using namespace QKeychain;