QTfrontend/CMakeLists.txt
changeset 2200 8192be6e3aef
parent 2191 20c62f787a4d
child 2203 6bd39d75e0dd
equal deleted inserted replaced
2199:be265856322f 2200:8192be6e3aef
    15 #find_package(QCA2 REQUIRED)
    15 #find_package(QCA2 REQUIRED)
    16 #include_directories(${QCA2_INCLUDE_DIR})
    16 #include_directories(${QCA2_INCLUDE_DIR})
    17 
    17 
    18 # Configure for SDL
    18 # Configure for SDL
    19 find_package(SDL REQUIRED)
    19 find_package(SDL REQUIRED)
    20 find_package(OpenAL REQUIRED)
       
    21 find_package(OggVorbis REQUIRED)
       
    22 
    20 
    23 include_directories(${SDL_INCLUDE_DIR})
    21 include_directories(${SDL_INCLUDE_DIR})
    24 
    22 
    25 if(UNIX)
    23 if(UNIX)
    26 	include_directories("/usr/local/include") # HACK: in freebsd cannot find iconv.h included via SDL.h
    24 	include_directories("/usr/local/include") # HACK: in freebsd cannot find iconv.h included via SDL.h
   164 	${hwfr_src}
   162 	${hwfr_src}
   165 	${hwfr_moc_srcs}
   163 	${hwfr_moc_srcs}
   166 	${hwfr_hdrs}
   164 	${hwfr_hdrs}
   167 	${hwfr_rez_src})
   165 	${hwfr_rez_src})
   168 
   166 
   169 find_library(OPENALBRIDGE_LIBRARY libopenalbridge.a PATH ${EXECUTABLE_OUTPUT_PATH} )
       
   170 
       
   171 set(HW_LINK_LIBS 
   167 set(HW_LINK_LIBS 
   172 	${QT_LIBRARIES}
   168 	${QT_LIBRARIES}
   173 	${SDL_LIBRARY}
   169 	${SDL_LIBRARY}
   174 	${OPENAL_LIBRARY}
   170 	openalbridge
   175 	${OGG_LIBRARY}
       
   176 	${VORBIS_LIBRARY}
       
   177 	${VORBISFILE_LIBRARY}
       
   178 	${OPENALBRIDGE_LIBRARY}
       
   179 )
   171 )
       
   172 
       
   173 #since openalbridge is linked statically in human systems we need to explicitly link dependencies 
       
   174 if(UNIX)
       
   175 	set(HW_LINK_LIBS
       
   176 		${OPENAL_LIBRARY}
       
   177 		${OGG_LIBRARY}
       
   178 		${VORBIS_LIBRARY}
       
   179 		${HW_LINK_LIBS}
       
   180 		)
       
   181 if(NOT APPLE)
       
   182 	set(HW_LINK_LIBS
       
   183 		${VORBISFILE_LIBRARY}
       
   184 		${HW_LINK_LIBS}
       
   185 		)
       
   186 endif(NOT APPLE)
       
   187 endif(UNIX)
       
   188 
   180 
   189 
   181 if(WIN32 AND NOT UNIX)
   190 if(WIN32 AND NOT UNIX)
   182 	if(NOT SDL_LIBRARY)
   191 	if(NOT SDL_LIBRARY)
   183 		set(HW_LINK_LIBS 
   192 		set(HW_LINK_LIBS 
   184 			${HW_LINK_LIBS}
   193 			${HW_LINK_LIBS}