From 753fde16397b5943091aa1e9112cea1e5ded0ca5 Mon Sep 17 00:00:00 2001 From: scarab Date: Sat, 16 Aug 2008 20:39:16 +0000 Subject: - pokus na odstraneni chybky v cmake a linkovani git-svn-id: http://opensvn.csie.org/tuxanci_ng@200 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/CMakeLists.txt | 15 +++++++++++++++ src/modules/CMakeLists.txt | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'src') 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} ) -- cgit v1.2.3