summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorscarab <scarab@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-08-22 20:13:10 +0000
committerscarab <scarab@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-08-22 20:13:10 +0000
commit37dc1c5480ea219c624ac2740506208f23296ede (patch)
treef92f3834f29f0b716d032d767a00b51811b5ad05 /CMakeLists.txt
parent090ca3434016213e9d0b84a3fa0d629fb47ff6a3 (diff)
- opet fungujeme na windows, docasne pomoci udp
- todo: odstranit udp a prejit na tcp + hromada testovani git-svn-id: http://opensvn.csie.org/tuxanci_ng@241 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt18
1 files changed, 13 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6d0d861..6660cc9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -21,6 +21,12 @@
###############################################################################
# IMPORTANT DEFINITIONS [PREFIX,...]
###############################################################################
+# our ugly choicer for networking type
+IF ( Win )
+ ADD_DEFINITIONS ( -DSUPPORT_UDP )
+ELSE ( Win )
+ ADD_DEFINITIONS ( -DSUPPORT_TCP )
+ENDIF ( Win )
SET ( TUXANCI_VERSION "svn" CACHE STRING "Version" )
SET ( WORKDIR ${CMAKE_SOURCE_DIR}/src )
# data because some distributions want different data placement
@@ -145,11 +151,12 @@ IF ( Win )
# noone wants to debug in windows
SET ( CMAKE_BUILD_TYPE Release )
# override basic directory placement
- SET ( CMAKE_CONF_PATH "${APPNAME}/etc/" )
- SET ( CMAKE_DATA_PATH "${APPNAME}/share/" )
- SET ( CMAKE_LOCALE_PATH "${APPNAME}/share/locale/")
- SET ( CMAKE_DOC_PATH "${APPNAME}/doc/" )
- SET ( LIB_INSTALL_DIR "${APPNAME}/bin/" )
+ SET ( CMAKE_CONF_PATH "../etc/" )
+ SET ( CMAKE_DATA_PATH "../share/" )
+ SET ( CMAKE_LOCALE_PATH "../share/locale/")
+ SET ( CMAKE_DOC_PATH "../doc/" )
+ #SET ( LIB_INSTALL_DIR "../" )
+ SET ( CMAKE_FONT "../share/${APPNAME}/font/DejaVuSans.ttf" )
SET ( CMAKE_INSTALL_PREFIX "./")
SET ( CMAKE_INSTALL_BINDIR ${APPNAME}/bin )
SET ( CMAKE_INSTALL_DOCDIR ${APPNAME}/doc )
@@ -184,6 +191,7 @@ IF ( Bundle )
SET ( CMAKE_CONF_PATH "../etc")
SET ( CMAKE_DATA_PATH "../share")
SET ( CMAKE_LOCALE_PATH "../share/locale/")
+ SET ( CMAKE_FONT "../share/font/DejaVuSans.ttf" )
SET ( CMAKE_DOC_PATH "../doc")
SET ( LIB_INSTALL_DIR "../lib")
SET ( CMAKE_INSTALL_PREFIX "/")