Blame toonz/sources/image/CMakeLists.txt
|
Toshihiro Shimizu |
890ddd |
set(HEADERS
|
|
Toshihiro Shimizu |
890ddd |
sgi/tiio_sgi.h
|
|
Toshihiro Shimizu |
890ddd |
tif/tiio_tif.h
|
|
Toshihiro Shimizu |
890ddd |
pli/pli_io.h
|
|
Toshihiro Shimizu |
890ddd |
pli/tiio_pli.h
|
|
Toshihiro Shimizu |
890ddd |
tga/tiio_tga.h
|
|
Toshihiro Shimizu |
890ddd |
compatibility/inforegion.h
|
|
Toshihiro Shimizu |
890ddd |
compatibility/tfile_io.h
|
|
Toshihiro Shimizu |
890ddd |
compatibility/tnz4.h
|
|
Toshihiro Shimizu |
890ddd |
quantel/filequantel.h
|
|
Toshihiro Shimizu |
890ddd |
quantel/filequantelP.h
|
|
Toshihiro Shimizu |
890ddd |
quantel/tiio_quantel.h
|
|
Toshihiro Shimizu |
890ddd |
png/tiio_png.h
|
|
Toshihiro Shimizu |
890ddd |
psd/tiio_psd.h
|
|
Toshihiro Shimizu |
890ddd |
svg/tiio_svg.h
|
|
Toshihiro Shimizu |
890ddd |
tzp/tiio_plt.h
|
|
Toshihiro Shimizu |
890ddd |
tzp/tiio_tzp.h
|
|
Toshihiro Shimizu |
890ddd |
tzp/toonztags.h
|
|
Toshihiro Shimizu |
890ddd |
tzl/tiio_tzl.h
|
|
Toshihiro Shimizu |
890ddd |
../include/tnzimage.h
|
|
Toshihiro Shimizu |
890ddd |
mov/tiio_mov_proxy.h
|
|
Toshihiro Shimizu |
890ddd |
3gp/tiio_3gp_proxy.h
|
|
Toshihiro Shimizu |
890ddd |
mesh/tiio_mesh.h)
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
set(SOURCES
|
|
Toshihiro Shimizu |
890ddd |
tiio.cpp
|
|
Toshihiro Shimizu |
890ddd |
sgi/filesgi.cpp
|
|
Toshihiro Shimizu |
890ddd |
tif/tiio_tif.cpp
|
|
Toshihiro Shimizu |
890ddd |
pli/pli_io.cpp
|
|
Toshihiro Shimizu |
890ddd |
pli/tags.cpp
|
|
Toshihiro Shimizu |
890ddd |
pli/tiio_pli.cpp
|
|
Toshihiro Shimizu |
890ddd |
tga/tiio_tga.cpp
|
|
Toshihiro Shimizu |
890ddd |
compatibility/inforegion.c
|
|
Toshihiro Shimizu |
890ddd |
compatibility/tfile_io.c
|
|
Toshihiro Shimizu |
890ddd |
compatibility/tnz4.c
|
|
Toshihiro Shimizu |
890ddd |
compatibility/tnz4_cpp.cpp
|
|
Toshihiro Shimizu |
890ddd |
quantel/filequantel.c
|
|
Toshihiro Shimizu |
890ddd |
quantel/tiio_quantel.cpp
|
|
Toshihiro Shimizu |
890ddd |
png/tiio_png.cpp
|
|
Toshihiro Shimizu |
890ddd |
psd/tiio_psd.cpp
|
|
Toshihiro Shimizu |
890ddd |
svg/tiio_svg.cpp
|
|
Toshihiro Shimizu |
890ddd |
tzp/tiio_plt.cpp
|
|
Toshihiro Shimizu |
890ddd |
tzp/tiio_tzp.cpp
|
|
Toshihiro Shimizu |
890ddd |
tzp/avl.c
|
|
Toshihiro Shimizu |
890ddd |
tzp/toonzrle.cpp
|
|
Toshihiro Shimizu |
890ddd |
tzl/tiio_tzl.cpp
|
|
Toshihiro Shimizu |
890ddd |
mov/tiio_mov_proxy.cpp
|
|
Toshihiro Shimizu |
890ddd |
3gp/tiio_3gp_proxy.cpp
|
|
Toshihiro Shimizu |
890ddd |
mesh/tiio_mesh.cpp)
|
|
Toshihiro Shimizu |
890ddd |
|
|
Campbell Barton |
f08982 |
if(WIN32)
|
|
Toshihiro Shimizu |
890ddd |
set(HEADERS ${HEADERS}
|
|
Toshihiro Shimizu |
890ddd |
avi/tiio_avi.h
|
|
Toshihiro Shimizu |
890ddd |
mov/tiio_mov.h
|
|
Toshihiro Shimizu |
890ddd |
3gp/tiio_3gp.h)
|
|
Toshihiro Shimizu |
890ddd |
set(SOURCES ${SOURCES}
|
|
Toshihiro Shimizu |
890ddd |
avi/tiio_avi.cpp
|
|
Toshihiro Shimizu |
890ddd |
mov/tiio_movW.cpp
|
|
Toshihiro Shimizu |
890ddd |
3gp/tiio_3gpW.cpp)
|
|
Campbell Barton |
f08982 |
else()
|
|
Toshihiro Shimizu |
890ddd |
set(HEADERS ${HEADERS}
|
|
Toshihiro Shimizu |
890ddd |
mov/tiio_movM.h
|
|
Toshihiro Shimizu |
890ddd |
3gp/tiio_3gpM.h)
|
|
Toshihiro Shimizu |
890ddd |
set(SOURCES ${SOURCES}
|
|
Toshihiro Shimizu |
890ddd |
mov/tiio_movM.cpp
|
|
Toshihiro Shimizu |
890ddd |
3gp/tiio_3gpM.cpp)
|
|
Campbell Barton |
22fd3b |
elseif(UNIX)
|
|
Campbell Barton |
22fd3b |
set(HEADERS ${HEADERS}
|
|
Campbell Barton |
22fd3b |
3gp/tiio_3gp_proxy.h
|
|
Campbell Barton |
22fd3b |
mov/tiio_mov_proxy.h)
|
|
Campbell Barton |
22fd3b |
set(SOURCES ${SOURCES}
|
|
Campbell Barton |
22fd3b |
mov/tiio_mov_proxy.cpp
|
|
Campbell Barton |
22fd3b |
3gp/tiio_3gp_proxy.cpp)
|
|
Campbell Barton |
f08982 |
endif()
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
add_library(image SHARED ${HEADERS} ${SOURCES})
|
|
Toshihiro Shimizu |
890ddd |
add_definitions(-DTNZIMAGE_DLL -D_USRDLL -DIMAGE_EXPORTS)
|
|
Campbell Barton |
f08982 |
if(APPLE)
|
|
Toshihiro Shimizu |
890ddd |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,-install_name,@rpath/libimage.dylib")
|
|
Campbell Barton |
f08982 |
endif()
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
message("subdir: image")
|
|
Toshihiro Shimizu |
890ddd |
message("Bin: " ${CMAKE_CURRENT_BINARY_DIR})
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
include_directories(
|
|
fukasawa |
e60969 |
${TIFF_INCLUDE_DIR}
|
|
roentgen |
87fce8 |
${SDKROOT}/LibJPEG/jpeg-9)
|
|
Campbell Barton |
f08982 |
if(WIN32)
|
|
kusano |
45254b |
include_directories(${SDKROOT}/libpng-1.6.21)
|
|
Toshihiro Shimizu |
890ddd |
if(PLATFORM EQUAL 32)
|
|
Toshihiro Shimizu |
890ddd |
include_directories(${SDKROOT}/quicktime/QT73SDK/CIncludes)
|
|
Toshihiro Shimizu |
890ddd |
endif()
|
|
Toshihiro Shimizu |
890ddd |
endif()
|
|
Toshihiro Shimizu |
890ddd |
|
|
Keisuke Ogaki |
832472 |
if(PLATFORM EQUAL 32)
|
|
Keisuke Ogaki |
832472 |
_find_toonz_library(TNZLIBS "tnzcore;tnzbase")
|
|
Keisuke Ogaki |
832472 |
else()
|
|
Keisuke Ogaki |
832472 |
_find_toonz_library(TNZLIBS "tnzcore;tnzbase;toonzlib")
|
|
Keisuke Ogaki |
832472 |
endif()
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
if(WIN32)
|
|
Toshihiro Shimizu |
890ddd |
set(EXTRA_LIBS
|
|
Toshihiro Shimizu |
890ddd |
${TNZLIBS}
|
|
Toshihiro Shimizu |
890ddd |
vfw32.lib)
|
|
Campbell Barton |
22fd3b |
elseif(APPLE)
|
|
Campbell Barton |
f08982 |
if(PLATFORM EQUAL 32)
|
|
Toshihiro Shimizu |
890ddd |
find_library(CORE_SERVICES_LIB CoreServices)
|
|
Toshihiro Shimizu |
890ddd |
set(OSX_10_6_SDK_PATH "")
|
|
Campbell Barton |
f08982 |
if(NOT OSX_10_6_SDK_PATH)
|
|
Toshihiro Shimizu |
890ddd |
message(FATAL_ERROR "Set variable 'OSX_10_6_SDK_PATH'")
|
|
Toshihiro Shimizu |
890ddd |
endif()
|
|
Toshihiro Shimizu |
890ddd |
find_library(QD_LIB
|
|
Toshihiro Shimizu |
890ddd |
NAMES QD
|
|
Toshihiro Shimizu |
890ddd |
PATHS OSX10_6_SDK_PATH)
|
|
Toshihiro Shimizu |
890ddd |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -F ${OSX_10_6_SDK_PATH}")
|
|
Toshihiro Shimizu |
890ddd |
endif()
|
|
Toshihiro Shimizu |
890ddd |
set(EXTRA_LIBS
|
|
Toshihiro Shimizu |
890ddd |
${TNZLIBS}
|
|
Toshihiro Shimizu |
890ddd |
${QT_LIB}
|
|
Toshihiro Shimizu |
890ddd |
${CARBON_LIB}
|
|
Toshihiro Shimizu |
890ddd |
${CORE_SERVICES_LIB}
|
|
Toshihiro Shimizu |
890ddd |
${QD_LIB})
|
|
Campbell Barton |
22fd3b |
else()
|
|
Campbell Barton |
22fd3b |
# Generic Unix
|
|
Campbell Barton |
22fd3b |
set(EXTRA_LIBS
|
|
Campbell Barton |
22fd3b |
${TNZLIBS})
|
|
Toshihiro Shimizu |
890ddd |
endif()
|
|
Toshihiro Shimizu |
890ddd |
|
|
kusano |
3f5122 |
target_link_libraries(image Qt5::Core Qt5::Network ${Z_LIB} ${GLUT_LIB} ${GL_LIB} ${JPEG_LIB} ${TIFF_LIB} ${PNG_LIB} ${EXTRA_LIBS})
|