openalbridge/CMakeLists.txt
changeset 2529 51e5df1c8462
parent 2494 1e10a47cabea
equal deleted inserted replaced
2528:a1e0306b9cd1 2529:51e5df1c8462
     6 #set destination directory for library
     6 #set destination directory for library
     7 set(LIBRARY_OUTPUT_PATH ${EXECUTABLE_OUTPUT_PATH})
     7 set(LIBRARY_OUTPUT_PATH ${EXECUTABLE_OUTPUT_PATH})
     8 
     8 
     9 #list of source files for libraries
     9 #list of source files for libraries
    10 set(openal_src
    10 set(openal_src
    11 	openalbridge.c loaders.c wrappers.c errlib.c 
    11 	openalbridge.c loaders.c wrappers.c errlib.c
    12 )
    12 )
    13 
    13 
    14 #build a static library for human systems
    14 #build a static library for human systems
    15 set (build_type STATIC)
    15 set (build_type STATIC)
    16 
    16 
    17 #visualstudio and windows in general doesn't like static linking, so we're building the library in shared mode
    17 #visualstudio and windows in general doesn't like static linking, so we're building the library in shared mode
    18 if(WIN32)
    18 if(WIN32)
    19 #workaround for visualstudio (wants headers in the source list)
    19 #workaround for visualstudio (wants headers in the source list)
    20 	set(openal_src
    20 	set(openal_src
    21 		openalbridge.h loaders.h wrappers.h common.h oggvorbis.h errlib.h ${openal_src}
    21 		openalbridge.h loaders.h wrappers.h globals.h oggvorbis.h errlib.h ${openal_src}
    22 	)
    22 	)
    23 #deps for the shared library
    23 #deps for the shared library
    24 	link_libraries(${VORBISFILE_LIBRARY})
    24 	link_libraries(${VORBISFILE_LIBRARY})
    25 	link_libraries(${VORBIS_LIBRARY})
    25 	link_libraries(${VORBIS_LIBRARY})
    26 	link_libraries(${OGG_LIBRARY})
    26 	link_libraries(${OGG_LIBRARY})