Toshihiro Shimizu 890ddd
set(MOC_HEADERS
otakuto 8181b0
    ../include/toonz/fullcolorpalette.h
otakuto 8181b0
    ../include/toonz/movierenderer.h
otakuto 8181b0
    ../include/toonz/multimediarenderer.h
otakuto 8181b0
    ../include/toonz/palettecontroller.h
otakuto 8181b0
    ../include/toonz/preferences.h
otakuto 8181b0
    ../include/toonz/scriptbinding.h
otakuto 8181b0
    ../include/toonz/scriptbinding_centerline_vectorizer.h
otakuto 8181b0
    ../include/toonz/scriptbinding_files.h
otakuto 8181b0
    ../include/toonz/scriptbinding_image.h
otakuto 8181b0
    ../include/toonz/scriptbinding_image_builder.h
otakuto 8181b0
    ../include/toonz/scriptbinding_level.h
otakuto 8181b0
    ../include/toonz/scriptbinding_outline_vectorizer.h
otakuto 8181b0
    ../include/toonz/scriptbinding_rasterizer.h
otakuto 8181b0
    ../include/toonz/scriptbinding_renderer.h
otakuto 8181b0
    ../include/toonz/scriptbinding_scene.h
otakuto 8181b0
    ../include/toonz/scriptbinding_toonz_raster_converter.h
otakuto 8181b0
    ../include/toonz/scriptengine.h
otakuto 8181b0
    ../include/toonz/stylemanager.h
otakuto 8181b0
    ../include/toonz/tcenterlinevectorizer.h
otakuto 8181b0
    ../include/toonz/tcolumnhandle.h
otakuto 8181b0
    ../include/toonz/tframehandle.h
otakuto 8181b0
    ../include/toonz/tfxhandle.h
otakuto 8181b0
    ../include/toonz/tobjecthandle.h
otakuto 8181b0
    ../include/toonz/tonionskinmaskhandle.h
otakuto 8181b0
    ../include/toonz/tpalettehandle.h
otakuto 8181b0
    ../include/toonz/tscenehandle.h
otakuto 8181b0
    ../include/toonz/txsheethandle.h
otakuto 8181b0
    ../include/toonz/txshlevel.h
otakuto 8181b0
    ../include/toonz/txshlevelhandle.h
otakuto 8181b0
    ../include/toonz/txshsimplelevel.h
otakuto 8181b0
    ../include/toonz/txshsoundcolumn.h
otakuto 8181b0
)
otakuto 8181b0
otakuto 8181b0
set(HEADERS
otakuto 8181b0
    ${MOC_HEADERS}
Toshihiro Shimizu 890ddd
    autoadjust.h
Toshihiro Shimizu 890ddd
    autopos.h
otakuto 8181b0
    cleanupcommon.h
otakuto 8181b0
    cleanuppalette.h
otakuto 8181b0
    imagebuilders.h
otakuto 8181b0
    skeletonlut.h
otakuto 8181b0
    tcenterlinevectP.h
otakuto 8181b0
    texturemanager.h
otakuto 8181b0
    xshhandlemanager.h
otakuto 8181b0
    sandor_fxs/BlurMatrix.h
otakuto 8181b0
    sandor_fxs/CIL.h
otakuto 8181b0
    sandor_fxs/CallCircle.h
otakuto 8181b0
    sandor_fxs/CallParam.h
otakuto 8181b0
    sandor_fxs/EraseContour.h
otakuto 8181b0
    sandor_fxs/InputParam.h
otakuto 8181b0
    sandor_fxs/Params.h
otakuto 8181b0
    sandor_fxs/Pattern.h
otakuto 8181b0
    sandor_fxs/PatternMapParam.h
otakuto 8181b0
    sandor_fxs/PatternPosition.h
otakuto 8181b0
    sandor_fxs/SDef.h
otakuto 8181b0
    sandor_fxs/SDirection.h
otakuto 8181b0
    sandor_fxs/SError.h
otakuto 8181b0
    sandor_fxs/STColSelPic.h
otakuto 8181b0
    sandor_fxs/STPic.h
otakuto 8181b0
    sandor_fxs/YOMBInputParam.h
otakuto 8181b0
    sandor_fxs/YOMBParam.h
otakuto 8181b0
    sandor_fxs/blend.h
otakuto 8181b0
    sandor_fxs/calligraph.h
otakuto 8181b0
    sandor_fxs/patternmap.h
otakuto 8181b0
    sandor_fxs/toonz4_6staff.h
otakuto 8181b0
    ../include/convert2tlv.h
otakuto 8181b0
    ../include/orientation.h
otakuto 8181b0
    ../include/toonz/Naa2TlvConverter.h
otakuto 8181b0
    ../include/toonz/autoclose.h
otakuto 8181b0
    ../include/toonz/boardsettings.h
Toshihiro Shimizu 890ddd
    ../include/toonz/captureparameters.h
Toshihiro Shimizu 890ddd
    ../include/toonz/childstack.h
Toshihiro Shimizu 890ddd
    ../include/toonz/cleanupcolorstyles.h
Toshihiro Shimizu 890ddd
    ../include/toonz/cleanupparameters.h
Toshihiro Shimizu 890ddd
    ../include/toonz/columnfan.h
Toshihiro Shimizu 890ddd
    ../include/toonz/controlpointobserver.h
Toshihiro Shimizu 890ddd
    ../include/toonz/currentimage.h
Toshihiro Shimizu 890ddd
    ../include/toonz/doubleparamcmd.h
Toshihiro Shimizu 890ddd
    ../include/toonz/dpiscale.h
Toshihiro Shimizu 890ddd
    ../include/toonz/fill.h
Toshihiro Shimizu 890ddd
    ../include/toonz/fxcommand.h
Toshihiro Shimizu 890ddd
    ../include/toonz/fxdag.h
Toshihiro Shimizu 890ddd
    ../include/toonz/glrasterpainter.h
Toshihiro Shimizu 890ddd
    ../include/toonz/hook.h
Toshihiro Shimizu 890ddd
    ../include/toonz/ikengine.h
Toshihiro Shimizu 890ddd
    ../include/toonz/ikjacobian.h
Toshihiro Shimizu 890ddd
    ../include/toonz/iknode.h
Toshihiro Shimizu 890ddd
    ../include/toonz/ikskeleton.h
Toshihiro Shimizu 890ddd
    ../include/toonz/imagelocation.h
Toshihiro Shimizu 890ddd
    ../include/toonz/imagemanager.h
Toshihiro Shimizu 890ddd
    ../include/toonz/imagepainter.h
Toshihiro Shimizu 890ddd
    ../include/toonz/imagestyles.h
Toshihiro Shimizu 890ddd
    ../include/toonz/levelproperties.h
Toshihiro Shimizu 890ddd
    ../include/toonz/levelset.h
Toshihiro Shimizu 890ddd
    ../include/toonz/levelupdater.h
Toshihiro Shimizu 890ddd
    ../include/toonz/logger.h
bf1d82
    ../include/toonz/mypaint.h
bf1d82
    ../include/toonz/mypaintbrushstyle.h
otakuto 8181b0
    ../include/toonz/mypainthelpers.hpp
Toshihiro Shimizu 890ddd
    ../include/toonz/namebuilder.h
Toshihiro Shimizu 890ddd
    ../include/toonz/observer.h
Toshihiro Shimizu 890ddd
    ../include/toonz/onionskinmask.h
Toshihiro Shimizu 890ddd
    ../include/toonz/palettecmd.h
Toshihiro Shimizu 890ddd
    ../include/toonz/plasticdeformerfx.h
Toshihiro Shimizu 890ddd
    ../include/toonz/rasterbrush.h
Toshihiro Shimizu 890ddd
    ../include/toonz/rasterstrokegenerator.h
Toshihiro Shimizu 890ddd
    ../include/toonz/scenefx.h
Toshihiro Shimizu 890ddd
    ../include/toonz/sceneproperties.h
Toshihiro Shimizu 890ddd
    ../include/toonz/sceneresources.h
Toshihiro Shimizu 890ddd
    ../include/toonz/skeleton.h
Toshihiro Shimizu 890ddd
    ../include/toonz/stage.h
Toshihiro Shimizu 890ddd
    ../include/toonz/stage2.h
Toshihiro Shimizu 890ddd
    ../include/toonz/stageobjectutil.h
Toshihiro Shimizu 890ddd
    ../include/toonz/stageplayer.h
Toshihiro Shimizu 890ddd
    ../include/toonz/stagevisitor.h
Toshihiro Shimizu 890ddd
    ../include/toonz/studiopalette.h
Toshihiro Shimizu 890ddd
    ../include/toonz/studiopalettecmd.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tapplication.h
Toshihiro Shimizu 890ddd
    ../include/toonz/targetcolors.h
otakuto 8181b0
    ../include/toonz/tbinarizer.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tcamera.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tcleanupper.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tcolumnfx.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tcolumnfxset.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tdistort.h
otakuto 8181b0
    ../include/toonz/textureutils.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tlog.h
Toshihiro Shimizu 890ddd
    ../include/toonz/toonzfolders.h
Toshihiro Shimizu 890ddd
    ../include/toonz/toonzimageutils.h
Toshihiro Shimizu 890ddd
    ../include/toonz/toonzscene.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tpinnedrangeset.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tproject.h
Toshihiro Shimizu 890ddd
    ../include/toonz/trasterimageutils.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tstageobject.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tstageobjectcmd.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tstageobjectid.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tstageobjectkeyframe.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tstageobjectspline.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tstageobjecttree.h
Toshihiro Shimizu 890ddd
    ../include/toonz/ttilesaver.h
Toshihiro Shimizu 890ddd
    ../include/toonz/ttileset.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tvectorimageutils.h
Toshihiro Shimizu 890ddd
    ../include/toonz/txshcell.h
Toshihiro Shimizu 890ddd
    ../include/toonz/txshchildlevel.h
Toshihiro Shimizu 890ddd
    ../include/toonz/txshcolumn.h
Toshihiro Shimizu 890ddd
    ../include/toonz/txsheet.h
Toshihiro Shimizu 890ddd
    ../include/toonz/txsheetexpr.h
Toshihiro Shimizu 890ddd
    ../include/toonz/txshlevelcolumn.h
Toshihiro Shimizu 890ddd
    ../include/toonz/txshleveltypes.h
otakuto 8181b0
    ../include/toonz/txshmeshcolumn.h
Toshihiro Shimizu 890ddd
    ../include/toonz/txshnoteset.h
Toshihiro Shimizu 890ddd
    ../include/toonz/txshpalettecolumn.h
Toshihiro Shimizu 890ddd
    ../include/toonz/txshpalettelevel.h
Toshihiro Shimizu 890ddd
    ../include/toonz/txshsoundlevel.h
Toshihiro Shimizu 890ddd
    ../include/toonz/txshsoundtextcolumn.h
Toshihiro Shimizu 890ddd
    ../include/toonz/txshsoundtextlevel.h
otakuto 8181b0
    ../include/toonz/txshzeraryfxcolumn.h
Toshihiro Shimizu 890ddd
    ../include/toonz/txshzeraryfxlevel.h
Toshihiro Shimizu 890ddd
    ../include/toonz/vectorizerparameters.h
Toshihiro Shimizu 890ddd
    ../include/toutputproperties.h
shun-iwasawa 8fb291
    ../include/toonz/preferencesitemids.h
Campbell Barton 9ece9c
)
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
set(SOURCES
Toshihiro Shimizu 890ddd
    autoadjust.cpp
Toshihiro Shimizu 890ddd
    autoclose.cpp
Toshihiro Shimizu 890ddd
    autopos.cpp
Toshihiro Shimizu 890ddd
    captureparameters.cpp
Jaroslav 203cc8
	cellpositionratio.cpp
Toshihiro Shimizu 890ddd
    childstack.cpp
Toshihiro Shimizu 890ddd
    cleanupcolorstyles.cpp
Toshihiro Shimizu 890ddd
    cleanuppalette.cpp
Toshihiro Shimizu 890ddd
    cleanupparameters.cpp
Toshihiro Shimizu 890ddd
    columnfan.cpp
Toshihiro Shimizu 890ddd
    convert2tlv.cpp
Toshihiro Shimizu 890ddd
    dpiscale.cpp
Toshihiro Shimizu 890ddd
    fill.cpp
Toshihiro Shimizu 890ddd
    fillutil.cpp
Toshihiro Shimizu 890ddd
    fullcolorpalette.cpp
Toshihiro Shimizu 890ddd
    fxdag.cpp
Toshihiro Shimizu 890ddd
    glrasterpainter.cpp
Toshihiro Shimizu 890ddd
    hook.cpp
Toshihiro Shimizu 890ddd
    ikengine.cpp
Toshihiro Shimizu 890ddd
    ikjacobian.cpp
Toshihiro Shimizu 890ddd
    iknode.cpp
Toshihiro Shimizu 890ddd
    ikskeleton.cpp
Toshihiro Shimizu 890ddd
    imagebuilders.cpp
Toshihiro Shimizu 890ddd
    imagelocation.cpp
Toshihiro Shimizu 890ddd
    imagemanager.cpp
Toshihiro Shimizu 890ddd
    imagepainter.cpp
Toshihiro Shimizu 890ddd
    imagestyles.cpp
Toshihiro Shimizu 890ddd
    levelproperties.cpp
Toshihiro Shimizu 890ddd
    levelset.cpp
Toshihiro Shimizu 890ddd
    levelupdater.cpp
Toshihiro Shimizu 890ddd
    logger.cpp
Toshihiro Shimizu 890ddd
    movierenderer.cpp
Toshihiro Shimizu 890ddd
    multimediarenderer.cpp
bf1d82
    mypaintbrushstyle.cpp
Toshihiro Shimizu 890ddd
    namebuilder.cpp
Toshihiro Shimizu 890ddd
    Naa2TlvConverter.cpp
Toshihiro Shimizu 890ddd
    observer.cpp
Toshihiro Shimizu 890ddd
    onionskinmask.cpp
Jaroslav 203cc8
	orientation.cpp
Toshihiro Shimizu 890ddd
    outputproperties.cpp
Toshihiro Shimizu 890ddd
    preferences.cpp
Toshihiro Shimizu 890ddd
    rasterbrush.cpp
Toshihiro Shimizu 890ddd
    rasterstrokegenerator.cpp
Toshihiro Shimizu 890ddd
    scenefx.cpp
Toshihiro Shimizu 890ddd
    sceneproperties.cpp
Toshihiro Shimizu 890ddd
    sceneresources.cpp
Toshihiro Shimizu 890ddd
    scriptbinding.cpp
Toshihiro Shimizu 890ddd
    scriptbinding_centerline_vectorizer.cpp
Toshihiro Shimizu 890ddd
    scriptbinding_files.cpp
Toshihiro Shimizu 890ddd
    scriptbinding_image.cpp
Toshihiro Shimizu 890ddd
    scriptbinding_image_builder.cpp
Toshihiro Shimizu 890ddd
    scriptbinding_level.cpp
Toshihiro Shimizu 890ddd
    scriptbinding_outline_vectorizer.cpp
Toshihiro Shimizu 890ddd
    scriptbinding_rasterizer.cpp
Toshihiro Shimizu 890ddd
    scriptbinding_renderer.cpp
Toshihiro Shimizu 890ddd
    scriptbinding_scene.cpp
Toshihiro Shimizu 890ddd
    scriptbinding_toonz_raster_converter.cpp
Toshihiro Shimizu 890ddd
    scriptengine.cpp
Toshihiro Shimizu 890ddd
    skeleton.cpp
Toshihiro Shimizu 890ddd
    skeletonlut.cpp
Toshihiro Shimizu 890ddd
    stage.cpp
Toshihiro Shimizu 890ddd
    stage2.cpp
Toshihiro Shimizu 890ddd
    stageobjectutil.cpp
Toshihiro Shimizu 890ddd
    stageplayer.cpp
Toshihiro Shimizu 890ddd
    stagevisitor.cpp
Toshihiro Shimizu 890ddd
    strokegenerator.cpp
Toshihiro Shimizu 890ddd
    studiopalette.cpp
Toshihiro Shimizu 890ddd
    stylemanager.cpp
Toshihiro Shimizu 890ddd
    targetcolors.cpp
Toshihiro Shimizu 890ddd
    tcamera.cpp
Toshihiro Shimizu 890ddd
    tcenterlineadjustments.cpp
Toshihiro Shimizu 890ddd
    tcenterlinecolors.cpp
Toshihiro Shimizu 890ddd
    tcenterlinepolygonizer.cpp
Toshihiro Shimizu 890ddd
    tcenterlineskeletonizer.cpp
Toshihiro Shimizu 890ddd
    tcenterlinetostrokes.cpp
Toshihiro Shimizu 890ddd
    tcenterlinevectorizer.cpp
Toshihiro Shimizu 890ddd
    tcleanupper.cpp
Toshihiro Shimizu 890ddd
    tcolumnfx.cpp
Toshihiro Shimizu 890ddd
    tcolumnfxset.cpp
Toshihiro Shimizu 890ddd
    tdistort.cpp
Toshihiro Shimizu 890ddd
    texturemanager.cpp
Toshihiro Shimizu 890ddd
    tlog.cpp
Toshihiro Shimizu 890ddd
    tnewoutlinevectorize.cpp
Toshihiro Shimizu 890ddd
    toonzfolders.cpp
Toshihiro Shimizu 890ddd
    toonzimageutils.cpp
Toshihiro Shimizu 890ddd
    toonzscene.cpp
Toshihiro Shimizu 890ddd
    toutlinevectorizer.cpp
Toshihiro Shimizu 890ddd
    tpinnedrangeset.cpp
Toshihiro Shimizu 890ddd
    tproject.cpp
Toshihiro Shimizu 890ddd
    trasterimageutils.cpp
Toshihiro Shimizu 890ddd
    trastercentroid.cpp
Toshihiro Shimizu 890ddd
    tstageobject.cpp
Toshihiro Shimizu 890ddd
    tstageobjectspline.cpp
Toshihiro Shimizu 890ddd
    tstageobjecttree.cpp
Toshihiro Shimizu 890ddd
    ttilesaver.cpp
Toshihiro Shimizu 890ddd
    ttileset.cpp
Toshihiro Shimizu 890ddd
    tvectorimageutils.cpp
Toshihiro Shimizu 890ddd
    txshcell.cpp
Toshihiro Shimizu 890ddd
    txshchildlevel.cpp
Toshihiro Shimizu 890ddd
    txshcolumn.cpp
Toshihiro Shimizu 890ddd
    txsheet.cpp
Toshihiro Shimizu 890ddd
    txsheetexpr.cpp
Toshihiro Shimizu 890ddd
    txshlevel.cpp
Toshihiro Shimizu 890ddd
    txshlevelcolumn.cpp
Toshihiro Shimizu 890ddd
    txshnoteset.cpp
Toshihiro Shimizu 890ddd
    txshpalettecolumn.cpp
Toshihiro Shimizu 890ddd
    txshpalettelevel.cpp
Toshihiro Shimizu 890ddd
    txshsimplelevel.cpp
Toshihiro Shimizu 890ddd
    txshsoundcolumn.cpp
Toshihiro Shimizu 890ddd
    txshsoundlevel.cpp
Toshihiro Shimizu 890ddd
    txshsoundtextcolumn.cpp
Toshihiro Shimizu 890ddd
    txshsoundtextlevel.cpp
Toshihiro Shimizu 890ddd
    txshzeraryfxcolumn.cpp
Toshihiro Shimizu 890ddd
    txshzeraryfxlevel.cpp
Toshihiro Shimizu 890ddd
    xshhandlemanager.cpp
Toshihiro Shimizu 890ddd
    vectorizerparameters.cpp
Toshihiro Shimizu 890ddd
    sandor_fxs/blend.cpp
Toshihiro Shimizu 890ddd
    sandor_fxs/BlurMatrix.cpp
Toshihiro Shimizu 890ddd
    sandor_fxs/CIL.cpp
Toshihiro Shimizu 890ddd
    sandor_fxs/CallCircle.cpp
Toshihiro Shimizu 890ddd
    sandor_fxs/CallParam.cpp
Toshihiro Shimizu 890ddd
    sandor_fxs/EraseContour.cpp
Toshihiro Shimizu 890ddd
    sandor_fxs/InputParam.cpp
Toshihiro Shimizu 890ddd
    sandor_fxs/Params.cpp
Toshihiro Shimizu 890ddd
    sandor_fxs/Pattern.cpp
Toshihiro Shimizu 890ddd
    sandor_fxs/PatternMapParam.cpp
Toshihiro Shimizu 890ddd
    sandor_fxs/PatternPosition.cpp
Toshihiro Shimizu 890ddd
    sandor_fxs/SDirection.cpp
Toshihiro Shimizu 890ddd
    sandor_fxs/SError.cpp
Toshihiro Shimizu 890ddd
    sandor_fxs/STColSelPic.cpp
Toshihiro Shimizu 890ddd
    sandor_fxs/STPic.cpp
Toshihiro Shimizu 890ddd
    sandor_fxs/YOMBInputParam.cpp
Toshihiro Shimizu 890ddd
    sandor_fxs/YOMBParam.cpp
Toshihiro Shimizu 890ddd
    sandor_fxs/calligraph.cpp
Toshihiro Shimizu 890ddd
    sandor_fxs/patternmap.cpp
Toshihiro Shimizu 890ddd
    sandor_fxs/toonz4_6staff.cpp
Toshihiro Shimizu 890ddd
    tcolumnhandle.cpp
Toshihiro Shimizu 890ddd
    tframehandle.cpp
Toshihiro Shimizu 890ddd
    tfxhandle.cpp
Toshihiro Shimizu 890ddd
    tobjecthandle.cpp
Toshihiro Shimizu 890ddd
    tonionskinmaskhandle.cpp
Toshihiro Shimizu 890ddd
    tpalettehandle.cpp
Toshihiro Shimizu 890ddd
    tscenehandle.cpp
Toshihiro Shimizu 890ddd
    txsheethandle.cpp
Toshihiro Shimizu 890ddd
    txshlevelhandle.cpp
Toshihiro Shimizu 890ddd
    doubleparamcmd.cpp
Toshihiro Shimizu 890ddd
    fxcommand.cpp
Toshihiro Shimizu 890ddd
    palettecmd.cpp
Toshihiro Shimizu 890ddd
    palettecontroller.cpp
Toshihiro Shimizu 890ddd
    studiopalettecmd.cpp
Toshihiro Shimizu 890ddd
    tstageobjectcmd.cpp
Toshihiro Shimizu 890ddd
    tbinarizer.cpp
Toshihiro Shimizu 890ddd
    plasticdeformerfx.cpp
Toshihiro Shimizu 890ddd
    txshmeshcolumn.cpp
Campbell Barton 9ece9c
    textureutils.cpp
shun-iwasawa cd4694
    boardsettings.cpp
Campbell Barton 9ece9c
)
Toshihiro Shimizu 890ddd
429ee8
if(BUILD_TARGET_WIN)
Toshihiro Shimizu 890ddd
    set(SOURCES ${SOURCES}
Campbell Barton 9ece9c
        avicodecrestrictions.cpp
Campbell Barton 9ece9c
    )
Toshihiro Shimizu 890ddd
endif()
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
add_translation(toonzlib ${HEADERS} ${SOURCES})
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
qt5_wrap_cpp(SOURCES ${MOC_HEADERS})
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
add_library(toonzlib SHARED ${HEADERS} ${SOURCES})
429ee8
if(BUILD_ENV_APPLE)
Toshihiro Shimizu 890ddd
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,-install_name,@rpath/libtoonzlib.dylib")
shun-iwasawa 5a2ff6
    add_dependencies(toonzlib tnzcore tnzbase tnzext)
Campbell Barton f08982
endif()
Toshihiro Shimizu 890ddd
Campbell Barton f2d492
add_definitions(
Campbell Barton f2d492
    -DTOONZLIB_EXPORTS
Campbell Barton f2d492
)
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
message("subdir: toonzlib")
Toshihiro Shimizu 890ddd
message("Bin: " ${CMAKE_CURRENT_BINARY_DIR})
Toshihiro Shimizu 890ddd
Martin van Zijl 708c58
if(GLEW_FOUND)
Martin van Zijl 708c58
    include_directories(${GLEW_INCLUDE_DIRS})
Martin van Zijl 708c58
else()
Martin van Zijl 708c58
    include_directories(${SDKROOT}/glew/glew-1.9.0/include)
Martin van Zijl 708c58
endif()
Martin van Zijl 708c58
Toshihiro Shimizu 890ddd
include_directories(
Campbell Barton a9c3da
    SYSTEM
Campbell Barton a9c3da
    ${SDKROOT}/libusb/libusb-1.0.9/include
Campbell Barton a9c3da
)
Campbell Barton a9c3da
include_directories(
Toshihiro Shimizu 890ddd
    ../toonzfarm/include
Campbell Barton a9c3da
)
Toshihiro Shimizu 890ddd
429ee8
if(BUILD_ENV_MSVC)
Toshihiro Shimizu 890ddd
    target_link_libraries(toonzlib
Jeremy Bullock 6767be
        Qt5::Core Qt5::Gui Qt5::OpenGL Qt5::Script Qt5::Multimedia
Martin van Zijl 708c58
        ${GLUT_LIB} ${GL_LIB} ${MYPAINT_LIB_LDFLAGS} ${GLEW_LIB} vfw32.lib
Campbell Barton 9ece9c
        tnzcore tnzbase tnzext
Campbell Barton 9ece9c
    )
429ee8
elseif(BUILD_ENV_APPLE)
Toshihiro Shimizu 890ddd
    set(EXTRA_LIBS
John Dancel 83fae9
        "$<target_file:tnzcore>"</target_file:tnzcore>
John Dancel 83fae9
	    "$<target_file:tnzbase>"</target_file:tnzbase>
John Dancel 83fae9
	    "$<target_file:tnzext>"</target_file:tnzext>
Campbell Barton 9ece9c
        ${USB_LIB}
bf1d82
        ${MYPAINT_LIB_LDFLAGS}
Campbell Barton 9ece9c
    )
Toshihiro Shimizu 890ddd
Martin van Zijl 708c58
    target_link_libraries(toonzlib Qt5::Core Qt5::Gui Qt5::OpenGL Qt5::Script Qt5::Multimedia ${GLUT_LIB} ${GL_LIB} ${GLEW_LIB} ${EXTRA_LIBS})
429ee8
elseif(BUILD_ENV_UNIXLIKE)
Campbell Barton 22fd3b
    _find_toonz_library(EXTRA_LIBS "tnzcore;tnzbase;tnzext")
Campbell Barton 22fd3b
429ee8
    if(BUILD_TARGET_WIN)
429ee8
        set(EXTRA_LIBS ${EXTRA_LIBS} -lvfw32)
429ee8
    endif()
429ee8
Martin van Zijl 708c58
    target_link_libraries(toonzlib Qt5::Core Qt5::Gui Qt5::OpenGL Qt5::Script Qt5::Multimedia ${GLUT_LIB} ${GL_LIB} ${GLEW_LIB} ${EXTRA_LIBS} ${MYPAINT_LIB_LDFLAGS})
Toshihiro Shimizu 890ddd
endif()