Toshihiro Shimizu 890ddd
# moc の数が多いので全部食わせる
Toshihiro Shimizu 890ddd
set(MOC_HEADERS
Toshihiro Shimizu 890ddd
    autoadjust.h
Toshihiro Shimizu 890ddd
    ../include/toonz/autoclose.h
Toshihiro Shimizu 890ddd
    ../include/convert2tlv.h
Toshihiro Shimizu 890ddd
    autopos.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
    cleanupcommon.h
Toshihiro Shimizu 890ddd
    cleanuppalette.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/fullcolorpalette.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
Toshihiro Shimizu 890ddd
    ../include/toonz/movierenderer.h
Toshihiro Shimizu 890ddd
    ../include/toonz/multimediarenderer.h
Toshihiro Shimizu 890ddd
    ../include/toonz/namebuilder.h
Toshihiro Shimizu 890ddd
    ../include/toonz/Naa2TlvConverter.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/palettecontroller.h
Toshihiro Shimizu 890ddd
    ../include/toonz/plasticdeformerfx.h
Toshihiro Shimizu 890ddd
    ../include/toonz/preferences.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/screensavermaker.h
Toshihiro Shimizu 890ddd
    ../include/toonz/scriptbinding.h
Toshihiro Shimizu 890ddd
    ../include/toonz/scriptbinding_centerline_vectorizer.h
Toshihiro Shimizu 890ddd
    ../include/toonz/scriptbinding_files.h
Toshihiro Shimizu 890ddd
    ../include/toonz/scriptbinding_image.h
Toshihiro Shimizu 890ddd
    ../include/toonz/scriptbinding_image_builder.h
Toshihiro Shimizu 890ddd
    ../include/toonz/scriptbinding_level.h
Toshihiro Shimizu 890ddd
    ../include/toonz/scriptbinding_outline_vectorizer.h
Toshihiro Shimizu 890ddd
    ../include/toonz/scriptbinding_rasterizer.h
Toshihiro Shimizu 890ddd
    ../include/toonz/scriptbinding_renderer.h
Toshihiro Shimizu 890ddd
    ../include/toonz/scriptbinding_scene.h
Toshihiro Shimizu 890ddd
    ../include/toonz/scriptbinding_toonz_raster_converter.h
Toshihiro Shimizu 890ddd
    ../include/toonz/scriptengine.h
Toshihiro Shimizu 890ddd
    ../include/toonz/skeleton.h
Toshihiro Shimizu 890ddd
    skeletonlut.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/stylemanager.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tapplication.h
Toshihiro Shimizu 890ddd
    ../include/toonz/targetcolors.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tcamera.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tcenterlinevectorizer.h
Toshihiro Shimizu 890ddd
    tcenterlinevectP.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/tcolumnhandle.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tdistort.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tframehandle.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tfxhandle.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tlog.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tobjecthandle.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tonionskinmaskhandle.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/tpalettehandle.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tproject.h
Toshihiro Shimizu 890ddd
    ../include/toonz/trasterimageutils.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tscenehandle.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/txsheethandle.h
Toshihiro Shimizu 890ddd
    ../include/toonz/txshlevel.h
Toshihiro Shimizu 890ddd
    ../include/toonz/txshlevelcolumn.h
Toshihiro Shimizu 890ddd
    ../include/toonz/txshlevelhandle.h
Toshihiro Shimizu 890ddd
    ../include/toonz/txshleveltypes.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/txshsimplelevel.h
Toshihiro Shimizu 890ddd
    ../include/toonz/txshsoundcolumn.h
Toshihiro Shimizu 890ddd
    ../include/toonz/txshsoundlevel.h
Toshihiro Shimizu 890ddd
    ../include/toonz/txshsoundtextcolumn.h
Toshihiro Shimizu 890ddd
    ../include/toonz/txshsoundtextlevel.h
Toshihiro Shimizu 890ddd
    ../include/toonz/txshzeraryfxlevel.h
Toshihiro Shimizu 890ddd
    ../include/toonz/vectorizerparameters.h
Toshihiro Shimizu 890ddd
    ../include/toonz/txshzeraryfxcolumn.h
Toshihiro Shimizu 890ddd
    ../include/toonz/tbinarizer.h
Toshihiro Shimizu 890ddd
    ../include/toonz/txshmeshcolumn.h
Toshihiro Shimizu 890ddd
    ../include/toonz/textureutils.h
Toshihiro Shimizu 890ddd
    ../include/toutputproperties.h
Toshihiro Shimizu 890ddd
    xshhandlemanager.h
Toshihiro Shimizu 890ddd
    sandor_fxs/blend.h
Toshihiro Shimizu 890ddd
    sandor_fxs/BlurMatrix.h
Toshihiro Shimizu 890ddd
    sandor_fxs/CallCircle.h
Toshihiro Shimizu 890ddd
    sandor_fxs/calligraph.h
Toshihiro Shimizu 890ddd
    sandor_fxs/CallParam.h
Toshihiro Shimizu 890ddd
    sandor_fxs/CIL.h
Toshihiro Shimizu 890ddd
    sandor_fxs/EraseContour.h
Toshihiro Shimizu 890ddd
    sandor_fxs/InputParam.h
Toshihiro Shimizu 890ddd
    sandor_fxs/Params.h
Toshihiro Shimizu 890ddd
    sandor_fxs/Pattern.h
Toshihiro Shimizu 890ddd
    sandor_fxs/patternmap.h
Toshihiro Shimizu 890ddd
    sandor_fxs/PatternMapParam.h
Toshihiro Shimizu 890ddd
    sandor_fxs/PatternPosition.h
Toshihiro Shimizu 890ddd
    sandor_fxs/SDef.h
Toshihiro Shimizu 890ddd
    sandor_fxs/SDirection.h
Toshihiro Shimizu 890ddd
    sandor_fxs/SError.h
Toshihiro Shimizu 890ddd
    sandor_fxs/STColSelPic.h
Toshihiro Shimizu 890ddd
    sandor_fxs/STPic.h
Toshihiro Shimizu 890ddd
    sandor_fxs/toonz4_6staff.h
Toshihiro Shimizu 890ddd
    sandor_fxs/YOMBInputParam.h
Toshihiro Shimizu 890ddd
    sandor_fxs/YOMBParam.h
Toshihiro Shimizu 890ddd
    texturemanager.h
Toshihiro Shimizu 890ddd
    imagebuilders.h)
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
set(HEADERS ${MOC_HEADERS})
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
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
Toshihiro Shimizu 890ddd
    namebuilder.cpp
Toshihiro Shimizu 890ddd
    Naa2TlvConverter.cpp
Toshihiro Shimizu 890ddd
    observer.cpp
Toshihiro Shimizu 890ddd
    onionskinmask.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
    screensavermaker.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
Toshihiro Shimizu 890ddd
    textureutils.cpp)
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
if(WIN32)
Toshihiro Shimizu 890ddd
    set(SOURCES ${SOURCES}
Toshihiro Shimizu 890ddd
        avicodecrestrictions.cpp)
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})
Campbell Barton f08982
if(APPLE)
Toshihiro Shimizu 890ddd
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,-install_name,@rpath/libtoonzlib.dylib")
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
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
Toshihiro Shimizu 890ddd
if(WIN32)
Toshihiro Shimizu 890ddd
    target_link_libraries(toonzlib
Toshihiro Shimizu 890ddd
        Qt5::Core Qt5::Gui Qt5::OpenGL Qt5::Script
Toshihiro Shimizu 890ddd
        ${GLUT_LIB} ${GL_LIB} vfw32.lib
Toshihiro Shimizu 890ddd
        tnzcore tnzbase tnzext)
Campbell Barton 22fd3b
elseif(APPLE)
Toshihiro Shimizu 890ddd
    set(EXTRA_LIBS
Toshihiro Shimizu 890ddd
        ${CMAKE_CURRENT_BINARY_DIR}/../tnzcore/libtnzcore.dylib
Toshihiro Shimizu 890ddd
        ${CMAKE_CURRENT_BINARY_DIR}/../tnzbase/libtnzbase.dylib
Toshihiro Shimizu 890ddd
        ${CMAKE_CURRENT_BINARY_DIR}/../tnzext/libtnzext.dylib
Toshihiro Shimizu 890ddd
        ${USB_LIB})
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
    target_link_libraries(toonzlib Qt5::Core Qt5::Gui Qt5::OpenGL Qt5::Script ${GLUT_LIB} ${GL_LIB} ${EXTRA_LIBS})
Campbell Barton 22fd3b
elseif(UNIX)
Campbell Barton 22fd3b
    _find_toonz_library(EXTRA_LIBS "tnzcore;tnzbase;tnzext")
Campbell Barton 22fd3b
Campbell Barton 22fd3b
    target_link_libraries(toonzlib Qt5::Core Qt5::Gui Qt5::OpenGL Qt5::Script ${GLUT_LIB} ${GL_LIB} ${EXTRA_LIBS})
Toshihiro Shimizu 890ddd
endif()