2013-11-02 18:07:34 +08:00
|
|
|
set(AUDIO_SRC
|
|
|
|
linux/SimpleAudioEngineFMOD.cpp
|
|
|
|
linux/FmodAudioPlayer.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(audio STATIC
|
|
|
|
${AUDIO_SRC}
|
|
|
|
)
|
|
|
|
|
2013-11-06 14:54:35 +08:00
|
|
|
if ( CMAKE_SIZEOF_VOID_P EQUAL 8 )
|
|
|
|
set(FMOD_LIB "fmodex64")
|
|
|
|
else()
|
|
|
|
set(FMOD_LIB "fmodex")
|
|
|
|
endif()
|
|
|
|
|
2013-11-02 18:07:34 +08:00
|
|
|
target_link_libraries(audio
|
2013-11-06 14:54:35 +08:00
|
|
|
${FMOD_LIB}
|
2013-11-04 14:49:42 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
set_target_properties(audio
|
|
|
|
PROPERTIES
|
|
|
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/lib"
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/lib"
|
|
|
|
)
|
|
|
|
|