tahoma2d/toonz/sources/sound/CMakeLists.txt
Ivan Mahonin 429ee8c8e4 Allow to cross compile for Windows with Linux/Mingw (part 3 of 3, cmake) (#1150)
* #mingw #cmake: rules for native and cross compilation

* #mingw #cmake: fix CMakeLists.txt for using with MinGW under Windows

* #mingw #cmake: fix typo (BUILD_ENV_WIN -> BUILD_ENV_MSVC)
2017-05-26 15:00:05 +09:00

35 lines
734 B
CMake

set(HEADERS
wav/tsio_wav.h
aiff/tsio_aiff.h
raw/tsio_raw.h
mp3/tsio_mp3.h
../include/tnzsound.h
tsio.h
)
set(SOURCES
tsio.cpp
tsioutils.cpp
wav/tsio_wav.cpp
aiff/tsio_aiff.cpp
raw/tsio_raw.cpp
mp3/tsio_mp3.cpp
)
add_library(sound SHARED ${HEADERS} ${SOURCES})
add_definitions(
-DSOUND_EXPORTS
)
if(BUILD_ENV_APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,-install_name,@rpath/libsound.dylib")
endif()
message("subdir: sound")
message("type:" ${CMAKE_SHARED_LIBRARY_SUFFIX})
message("Bin: " ${CMAKE_CURRENT_BINARY_DIR})
_find_toonz_library(EXTRA_LIBS "tnzcore;tnzbase;toonzlib")
message("ToonzCore: " ${EXTRA_LIBS})
target_link_libraries(sound Qt5::Core ${EXTRA_LIBS})