openalbridge/CMakeLists.txt
changeset 2417 f7ed1ea25050
parent 2350 1eef75bdcdba
child 2418 538a777f90c4
equal deleted inserted replaced
2416:3278cf087339 2417:f7ed1ea25050
     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 endianness.c wrappers.c
    11 	openalbridge.c loaders.c wrappers.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 endianness.h wrappers.h globals.h oggvorbis.h ${openal_src}
    21 		openalbridge.h loaders.h wrappers.h globals.h oggvorbis.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})