caudio/DependenciesSource/libogg-1.2.2/CMakeLists.txt
Jonas Erlandsson c9cfd31b29 Linux compat changes.
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.
2011-12-27 12:37:02 +01:00

26 lines
742 B
CMake

PROJECT(Ogg)
ADD_DEFINITIONS(-DLIBOGG_EXPORTS)
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR})
set(OGG_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include PARENT_SCOPE)
include_directories (include)
include(libogg_src_files)
add_library(Ogg STATIC ${file_root})
target_link_libraries(Ogg)
if(UNIX AND CMAKE_SIZEOF_VOID_P EQUAL 8)
set_target_properties( Ogg PROPERTIES COMPILE_FLAGS -fPIC)
endif()
if (APPLE AND CAUDIO_IOS_BUILD)
set_target_properties(Ogg PROPERTIES XCODE_ATTRIBUTE_GCC_THUMB_SUPPORT "NO")
set_target_properties(Ogg PROPERTIES XCODE_ATTRIBUTE_GCC_UNROLL_LOOPS "YES")
set_target_properties(Ogg PROPERTIES XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "iPhone Developer")
endif()
install_all_targets(Ogg)