tahoma2d/toonz/sources/sound/CMakeLists.txt
artisteacher 4871443ae5
Fix unused command line arguments (#99)
This uses some of PR opentoonz/opentoonz#3031 by Otakuto with some small additions so that command line arguments can function.
2020-07-25 22:53:56 -06:00

36 lines
817 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_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-install_name,@executable_path/libsound.dylib")
add_dependencies(sound tnzcore tnzbase toonzlib)
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})