QTfrontend/CMakeLists.txt
changeset 2200 8192be6e3aef
parent 2191 20c62f787a4d
child 2203 6bd39d75e0dd
--- a/QTfrontend/CMakeLists.txt	Sat Jun 27 09:51:15 2009 +0000
+++ b/QTfrontend/CMakeLists.txt	Sun Jun 28 14:37:26 2009 +0000
@@ -17,8 +17,6 @@
 
 # Configure for SDL
 find_package(SDL REQUIRED)
-find_package(OpenAL REQUIRED)
-find_package(OggVorbis REQUIRED)
 
 include_directories(${SDL_INCLUDE_DIR})
 
@@ -166,18 +164,29 @@
 	${hwfr_hdrs}
 	${hwfr_rez_src})
 
-find_library(OPENALBRIDGE_LIBRARY libopenalbridge.a PATH ${EXECUTABLE_OUTPUT_PATH} )
-
 set(HW_LINK_LIBS 
 	${QT_LIBRARIES}
 	${SDL_LIBRARY}
-	${OPENAL_LIBRARY}
-	${OGG_LIBRARY}
-	${VORBIS_LIBRARY}
-	${VORBISFILE_LIBRARY}
-	${OPENALBRIDGE_LIBRARY}
+	openalbridge
 )
 
+#since openalbridge is linked statically in human systems we need to explicitly link dependencies 
+if(UNIX)
+	set(HW_LINK_LIBS
+		${OPENAL_LIBRARY}
+		${OGG_LIBRARY}
+		${VORBIS_LIBRARY}
+		${HW_LINK_LIBS}
+		)
+if(NOT APPLE)
+	set(HW_LINK_LIBS
+		${VORBISFILE_LIBRARY}
+		${HW_LINK_LIBS}
+		)
+endif(NOT APPLE)
+endif(UNIX)
+
+
 if(WIN32 AND NOT UNIX)
 	if(NOT SDL_LIBRARY)
 		set(HW_LINK_LIBS