summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorscarab <scarab@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-08-16 20:39:16 +0000
committerscarab <scarab@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-08-16 20:39:16 +0000
commit753fde16397b5943091aa1e9112cea1e5ded0ca5 (patch)
treefc44e676775a9f1b275c59bbeb6785274163010a /src
parent0ba00dceb21c894cb172522a394233d45181af5b (diff)
- pokus na odstraneni chybky v cmake a linkovani
git-svn-id: http://opensvn.csie.org/tuxanci_ng@200 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt15
-rw-r--r--src/modules/CMakeLists.txt2
2 files changed, 16 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index d6e1522..9650be7 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,6 +1,21 @@
###############################################################################
# tuxanci/src/CMakeLists.txt
###############################################################################
+# LINKING ( for binary )
+###############################################################################
+IF ( Server )
+ LINK_LIBRARIES ( ${CMAKE_DL_LIBS} )
+ELSE ( Server )
+ IF ( NO_Audio )
+ LINK_LIBRARIES ( ${SDL_LIBRARY} ${SDLIMAGE_LIBRARY} ${SDLTTF_LIBRARY})
+ ELSE ( NO_Audio )
+ LINK_LIBRARIES ( ${SDL_LIBRARY} ${SDLMIXER_LIBRARY} ${SDLIMAGE_LIBRARY} ${SDLTTF_LIBRARY})
+ ENDIF ( NO_Audio )
+ENDIF ( Server )
+IF ( Win )
+ LINK_LIBRARIES ( wsock32 )
+ENDIF ( Win )
+###############################################################################
# SOURCE SPECIFICATION
###############################################################################
# Command for finding correct file names in directory, replace DIR with
diff --git a/src/modules/CMakeLists.txt b/src/modules/CMakeLists.txt
index d5f1362..7b8a6ea 100644
--- a/src/modules/CMakeLists.txt
+++ b/src/modules/CMakeLists.txt
@@ -1,7 +1,7 @@
###############################################################################
# tuxanci/src/modules/CMakeLists.txt
###############################################################################
-# LINKING ( special for modules )
+# LINKING ( for modules )
###############################################################################
IF ( NOT Win )
LINK_LIBRARIES ( ${CMAKE_DL_LIBS} )