2016-03-19 06:57:51 +13:00
|
|
|
set(HEADERS
|
|
|
|
wav/tsio_wav.h
|
|
|
|
aiff/tsio_aiff.h
|
|
|
|
raw/tsio_raw.h
|
2016-09-08 18:19:01 +12:00
|
|
|
mp3/tsio_mp3.h
|
2016-03-19 06:57:51 +13:00
|
|
|
../include/tnzsound.h
|
2016-07-23 06:59:47 +12:00
|
|
|
tsio.h
|
|
|
|
)
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
set(SOURCES
|
|
|
|
tsio.cpp
|
|
|
|
tsioutils.cpp
|
|
|
|
wav/tsio_wav.cpp
|
|
|
|
aiff/tsio_aiff.cpp
|
2016-07-23 06:59:47 +12:00
|
|
|
raw/tsio_raw.cpp
|
2016-09-08 18:19:01 +12:00
|
|
|
mp3/tsio_mp3.cpp
|
2016-07-23 06:59:47 +12:00
|
|
|
)
|
2017-02-11 13:12:48 +13:00
|
|
|
|
2016-03-19 06:57:51 +13:00
|
|
|
add_library(sound SHARED ${HEADERS} ${SOURCES})
|
2016-07-03 00:23:18 +12:00
|
|
|
add_definitions(
|
|
|
|
-DSOUND_EXPORTS
|
|
|
|
)
|
|
|
|
|
2017-05-26 18:00:05 +12:00
|
|
|
if(BUILD_ENV_APPLE)
|
2020-07-26 16:53:56 +12:00
|
|
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-install_name,@executable_path/libsound.dylib")
|
2017-11-24 17:10:45 +13:00
|
|
|
add_dependencies(sound tnzcore tnzbase toonzlib)
|
2016-04-27 23:48:12 +12:00
|
|
|
endif()
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
message("subdir: sound")
|
|
|
|
message("type:" ${CMAKE_SHARED_LIBRARY_SUFFIX})
|
|
|
|
message("Bin: " ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
2016-09-08 18:19:01 +12:00
|
|
|
_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})
|