tahoma2d/toonz/sources/sound/CMakeLists.txt

36 lines
724 B
CMake
Raw Normal View History

2016-03-19 06:57:51 +13:00
set(HEADERS
wav/tsio_wav.h
aiff/tsio_aiff.h
raw/tsio_raw.h
mp3/tsio_mp3.h
2016-03-19 06:57:51 +13:00
../include/tnzsound.h
tsio.h
)
2016-03-19 06:57:51 +13:00
set(SOURCES
tsio.cpp
tsioutils.cpp
wav/tsio_wav.cpp
aiff/tsio_aiff.cpp
raw/tsio_raw.cpp
mp3/tsio_mp3.cpp
)
2017-02-11 13:12:48 +13:00
2016-03-19 06:57:51 +13:00
add_library(sound SHARED ${HEADERS} ${SOURCES})
add_definitions(
-DSOUND_EXPORTS
)
if(APPLE)
2016-03-19 06:57:51 +13:00
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,-install_name,@rpath/libsound.dylib")
endif()
2016-03-19 06:57:51 +13:00
message("subdir: sound")
message("type:" ${CMAKE_SHARED_LIBRARY_SUFFIX})
message("Bin: " ${CMAKE_CURRENT_BINARY_DIR})
_find_toonz_library(EXTRA_LIBS "tnzcore;tnzbase;toonzlib")
2016-03-19 06:57:51 +13:00
message("ToonzCore: " ${EXTRA_LIBS})
target_link_libraries(sound Qt5::Core ${EXTRA_LIBS})