c9cfd31b29
Removed line 4-6 in CMake/InstallDependencies.cmake so Linux also get the macros. Edited DependenciesSource/.../CMakeLists.txt to add -fPIC compiler option on Linux 64bit. Edited all Examples/.../CMakeLists.txt to rename "Main.cpp" to "main.cpp". Edited cAudio/include/cSTLAllocator.h to make the inclusion of cstddef.h explicit for gcc 2.6+. Despite this you still need to copy Dependencies/include/OpenAL/alc.h to /usr/include/AL/alc.h (for Ubuntu or whatever path that is on your system) for it to compile if you are not running the development build of OpenAL.
28 lines
832 B
CMake
28 lines
832 B
CMake
PROJECT(Vorbis)
|
|
|
|
ADD_DEFINITIONS(-DLIBVORBIS_EXPORTS)
|
|
|
|
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
set(VORBIS_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include PARENT_SCOPE)
|
|
|
|
include_directories (include src ${OGG_INCLUDE_DIR})
|
|
include(libvorbis_src_files)
|
|
|
|
add_library(Vorbis STATIC ${file_root})
|
|
target_link_libraries(Vorbis Ogg)
|
|
|
|
if(UNIX AND CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|
set_target_properties( Vorbis PROPERTIES COMPILE_FLAGS -fPIC)
|
|
endif()
|
|
|
|
add_dependencies(Vorbis Ogg)
|
|
|
|
if (APPLE AND CAUDIO_IOS_BUILD)
|
|
set_target_properties(Vorbis PROPERTIES XCODE_ATTRIBUTE_GCC_THUMB_SUPPORT "NO")
|
|
set_target_properties(Vorbis PROPERTIES XCODE_ATTRIBUTE_GCC_UNROLL_LOOPS "YES")
|
|
set_target_properties(Vorbis PROPERTIES XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "iPhone Developer")
|
|
endif()
|
|
|
|
install_all_targets(Vorbis)
|