From 8a28eeaaecf3e308c6950f8e3af3f7e9294db284 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Mon, 5 May 2014 00:05:08 +0800 Subject: Modify to build with mingw toolchain --- CMakeLists.txt.mingw | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 CMakeLists.txt.mingw (limited to 'CMakeLists.txt.mingw') diff --git a/CMakeLists.txt.mingw b/CMakeLists.txt.mingw new file mode 100644 index 0000000..bdb3cfd --- /dev/null +++ b/CMakeLists.txt.mingw @@ -0,0 +1,84 @@ +#set(OPENSSL_INCLUDE_DIR +#"C:/openssl/include" +#) + +#set(OPENSSL_LIBRARIES +#"C:/openssl/lib/libeay32.lib" +#"C:/openssl/lib/ssleay32.lib" +#) + +#set(NETWORK_LIBRARIES +#"ws2_32.lib" +#) + +#SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "/Zi /Od /MD") + +#ADD_DEFINITIONS(/D USE_DOTNET_STYLE) +#ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE) +ADD_DEFINITIONS(-D "FQTERM_VERSION_STRING=\\\"${FQTERM_VERSION}\\\"") + +if(FQTERM_USE_STATIC_QT) + ADD_DEFINITIONS(-DFQTERM_USE_STATIC_QT) + REMOVE_DEFINITIONS(-DQT_DLL) +endif(FQTERM_USE_STATIC_QT) + +add_subdirectory(src) + +set(fqterm_RCS + fqterm.rc +) + +include_directories( + ${QT_INCLUDE_DIR} + ${QT_QTCORE_INCLUDE_DIR} + ${QT_QTGUI_INCLUDE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/src/common + ${CMAKE_CURRENT_SOURCE_DIR}/src/protocol + ${CMAKE_CURRENT_SOURCE_DIR}/src/terminal + ${CMAKE_CURRENT_SOURCE_DIR}/src/utilities + ${CMAKE_CURRENT_SOURCE_DIR}/src/ui + ${CMAKE_CURRENT_SOURCE_DIR}/src/unite + ${CMAKE_CURRENT_SOURCE_DIR}/src/unite +) + +link_directories( + ${QT_PLUGINS_DIR}/codecs + ${QT_PLUGINS_DIR}/imageformats +) + +ADD_EXECUTABLE(fqterm + src/fqterm/main.cpp +) + +#if(FQTERM_USE_STATIC_QT) + set(FQ_QT_STATIC_PLUGINS + qcncodecs qjpcodecs qkrcodecs qtwcodecs + qjpeg qgif qmng) +#endif(FQTERM_USE_STATIC_QT) + +target_link_libraries(fqterm + fqterm_main + fqterm_terminal + fqterm_protocol + fqterm_utilities + fqterm_ui + fqterm_common + fqterm_unite + ${QT_LIBRARIES} + ${QT_QTNETWORK_LIBRARIES} + ${QT_QTSCRIPT_LIBRARIES} + ${QT_QTXML_LIBRARIES} + ${FQ_QT_STATIC_PLUGINS} + ${PYTHON_LIB} +) + +add_dependencies(fqterm + fqterm_main + fqterm_common + fqterm_terminal + fqterm_protocol + fqterm_ui + fqterm_unite + fqterm_utilities + fqterm_unite +) -- cgit v1.2.3