diff options
author | Iru Cai <mytbk920423@gmail.com> | 2014-05-15 21:53:41 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2014-05-15 22:16:11 +0800 |
commit | af4a651cb5aa61cab134043471aacfd55e49d268 (patch) | |
tree | ba87a1650bc3cd87025c208e84edb626ace926ae /CMakeLists.txt.mingw | |
parent | 38a40cec1c20c06559e26e9a4271db39d02e7c35 (diff) | |
download | fqterm-af4a651cb5aa61cab134043471aacfd55e49d268.tar.xz |
Change for windows native static build.
1. Qt 4.8.6 does not have static imageformats plugin
2. cmake have MSVC and MINGW variable
3. rewrite openssl linking options
Diffstat (limited to 'CMakeLists.txt.mingw')
-rw-r--r-- | CMakeLists.txt.mingw | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/CMakeLists.txt.mingw b/CMakeLists.txt.mingw index 82b339b..e701836 100644 --- a/CMakeLists.txt.mingw +++ b/CMakeLists.txt.mingw @@ -37,13 +37,16 @@ ADD_EXECUTABLE(fqterm ) if(FQTERM_USE_STATIC_QT) - if (QT_VERSION_MINOR LESS 8) - message("Qt<4.8") - set(FQ_QT_STATIC_PLUGINS - qcncodecs qjpcodecs qkrcodecs qtwcodecs - qjpeg qgif qmng - ) - endif(QT_VERSION_MINOR LESS 8) + set(FQ_QT_STATIC_PLUGINS + qcncodecs qjpcodecs qkrcodecs qtwcodecs + ) + set(OPENSSL_LINK_LIBS + crypto ssl + ) +else(FQTERM_USE_STATIC_QT) + set(OPENSSL_LINK_LIBS + ${OPENSSL_LIBS} + ) endif(FQTERM_USE_STATIC_QT) target_link_libraries(fqterm @@ -59,12 +62,9 @@ target_link_libraries(fqterm ${QT_QTSCRIPT_LIBRARIES} ${FQ_QT_STATIC_PLUGINS} ${QT_LIBRARIES} - ${OPENSSL_LIBRARIES} ${PYTHON_LIB} - crypto - jpeg - lzma - wsock + ${OPENSSL_LINK_LIBS} + ws2_32 ) add_dependencies(fqterm |