Build vorbis & vorbisfile in Windows now.

This commit is contained in:
Jason Felds
2015-09-20 13:13:47 -04:00
parent 1fb7993f9f
commit 0382929bd4
400 changed files with 128862 additions and 11 deletions
+30
View File
@@ -0,0 +1,30 @@
set(VORBISFILE_DIR "${SM_EXTERN_DIR}/newvorbis")
list(APPEND VORBISFILE_SRC
"${VORBISFILE_DIR}/lib/vorbisfile.c"
)
list(APPEND VORBISFILE_HPP
"${VORBISFILE_DIR}/include/vorbis/vorbisfile.h"
)
source_group("Source Files" FILES ${VORBISFILE_SRC})
source_group("Header Files" FILES ${VORBISFILE_HPP})
add_library("vorbisfile" ${VORBISFILE_SRC} ${VORBISFILE_HPP})
set_property(TARGET "vorbisfile" PROPERTY FOLDER "External Libraries")
disable_project_warnings("vorbisfile")
list(APPEND VORBIS_INCLUDE_DIRS
"${VORBISDIR_DIR}/include"
)
target_include_directories("vorbisfile" PUBLIC ${VORBIS_INCLUDE_DIRS})
list(APPEND VORBISFILE_LINK_LIBS
"ogg"
)
target_link_libraries("vorbisfile" ${VORBISFILE_LINK_LIBS})