summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt15
1 files changed, 15 insertions, 0 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