Blame toonz/sources/sound/CMakeLists.txt
|
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
|
|
Toshihiro Shimizu |
890ddd |
../include/tnzsound.h
|
|
Toshihiro Shimizu |
890ddd |
tsio.h)
|
|
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
|
|
Toshihiro Shimizu |
890ddd |
raw/tsio_raw.cpp)
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
add_library(sound SHARED ${HEADERS} ${SOURCES})
|
|
Toshihiro Shimizu |
890ddd |
add_definitions(-DSOUND_EXPORTS)
|
|
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 |
|
|
Toshihiro Shimizu |
890ddd |
_find_toonz_library(EXTRA_LIBS tnzcore)
|
|
Toshihiro Shimizu |
890ddd |
message("ToonzCore: " ${EXTRA_LIBS})
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
target_link_libraries(sound Qt5::Core ${EXTRA_LIBS})
|