Toshihiro Shimizu 890ddd
set(HEADERS
Toshihiro Shimizu 890ddd
    wav/tsio_wav.h
Toshihiro Shimizu 890ddd
    aiff/tsio_aiff.h
Toshihiro Shimizu 890ddd
    raw/tsio_raw.h
Jeremy Bullock 3f5067
    mp3/tsio_mp3.h
Toshihiro Shimizu 890ddd
    ../include/tnzsound.h
Campbell Barton 9ece9c
    tsio.h
Campbell Barton 9ece9c
)
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
set(SOURCES
Toshihiro Shimizu 890ddd
    tsio.cpp
Toshihiro Shimizu 890ddd
    tsioutils.cpp
Toshihiro Shimizu 890ddd
    wav/tsio_wav.cpp
Toshihiro Shimizu 890ddd
    aiff/tsio_aiff.cpp
Campbell Barton 9ece9c
    raw/tsio_raw.cpp
Jeremy Bullock 3f5067
    mp3/tsio_mp3.cpp
Campbell Barton 9ece9c
)
Campbell Barton fb6d38
Toshihiro Shimizu 890ddd
add_library(sound SHARED ${HEADERS} ${SOURCES})
Campbell Barton f2d492
add_definitions(
Campbell Barton f2d492
    -DSOUND_EXPORTS
Campbell Barton f2d492
)
Campbell Barton f2d492
Campbell Barton f08982
if(APPLE)
Toshihiro Shimizu 890ddd
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,-install_name,@rpath/libsound.dylib")
Campbell Barton f08982
endif()
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
message("subdir: sound")
Toshihiro Shimizu 890ddd
message("type:" ${CMAKE_SHARED_LIBRARY_SUFFIX})
Toshihiro Shimizu 890ddd
message("Bin: " ${CMAKE_CURRENT_BINARY_DIR})
Toshihiro Shimizu 890ddd
Jeremy Bullock 3f5067
_find_toonz_library(EXTRA_LIBS "tnzcore;tnzbase;toonzlib")
Toshihiro Shimizu 890ddd
message("ToonzCore: " ${EXTRA_LIBS})
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
target_link_libraries(sound Qt5::Core ${EXTRA_LIBS})