summaryrefslogtreecommitdiff
path: root/CMakeLists.txt.win32
diff options
context:
space:
mode:
authoriroul <iroul@iroul-VirtualBox.(none)>2014-04-04 07:35:14 -0700
committeriroul <iroul@iroul-VirtualBox.(none)>2014-04-04 07:35:14 -0700
commitafd34f2893a06a3aecf17e8e83b1df6ed2ae91a2 (patch)
tree851102abc55d91a1b76e63e9e89f9a7733da95b5 /CMakeLists.txt.win32
parentc4b028ad53f7b362a864de24828d7cc39ff67b0a (diff)
downloadfqterm-afd34f2893a06a3aecf17e8e83b1df6ed2ae91a2.tar.xz
move to my github.
Diffstat (limited to 'CMakeLists.txt.win32')
-rw-r--r--CMakeLists.txt.win3297
1 files changed, 97 insertions, 0 deletions
diff --git a/CMakeLists.txt.win32 b/CMakeLists.txt.win32
new file mode 100644
index 0000000..f9ff97e
--- /dev/null
+++ b/CMakeLists.txt.win32
@@ -0,0 +1,97 @@
+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}\\"")
+ADD_DEFINITIONS(/D FQTERM_SVN_REVISION="\\"${MCGSVN_WC_REVISION}\\"")
+
+if(FQTERM_USE_STATIC_QT)
+ ADD_DEFINITIONS(/D FQTERM_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
+ )
+ set(SOUND_LIBRARIES
+ "winmm.lib"
+ )
+
+ set(IME_LIBRARIES
+ "Imm32.lib"
+ )
+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}
+ ${OPENSSL_LIBRARIES}
+ ${FQ_QT_STATIC_PLUGINS}
+ ${PYTHON_LIB}
+ ${SOUND_LIBRARIES}
+ ${NETWORK_LIBRARIES}
+ ${IME_LIBRARIES}
+)
+
+add_dependencies(fqterm
+ fqterm_main
+ fqterm_common
+ fqterm_terminal
+ fqterm_protocol
+ fqterm_ui
+ fqterm_unite
+ fqterm_utilities
+ fqterm_unite
+)