Toshihiro Shimizu 890ddd
set(MOC_HEADERS
otakuto 8181b0
    palettesscanpopup.h
otakuto 8181b0
    pluginhost.h
otakuto 8181b0
    stageobjectselection.h
otakuto 8181b0
    tdockwindows.h
Campbell Barton 3dcf6b
    ../include/toonzqt/addfxcontextmenu.h
otakuto 8181b0
    ../include/toonzqt/camerasettingswidget.h
Campbell Barton 3dcf6b
    ../include/toonzqt/checkbox.h
otakuto 8181b0
    ../include/toonzqt/cleanupcamerasettingswidget.h
Campbell Barton 3dcf6b
    ../include/toonzqt/colorfield.h
otakuto 8181b0
    ../include/toonzqt/combohistogram.h
Campbell Barton 3dcf6b
    ../include/toonzqt/doublefield.h
Campbell Barton 3dcf6b
    ../include/toonzqt/doublepairfield.h
Campbell Barton 3dcf6b
    ../include/toonzqt/dvdialog.h
Campbell Barton 3dcf6b
    ../include/toonzqt/dvscrollwidget.h
Campbell Barton 3dcf6b
    ../include/toonzqt/dvtextedit.h
Campbell Barton 3dcf6b
    ../include/toonzqt/expressionfield.h
Campbell Barton 3dcf6b
    ../include/toonzqt/filefield.h
Campbell Barton 3dcf6b
    ../include/toonzqt/flipconsole.h
Campbell Barton 3dcf6b
    ../include/toonzqt/framenavigator.h
Campbell Barton 3dcf6b
    ../include/toonzqt/functionkeyframenavigator.h
Campbell Barton 3dcf6b
    ../include/toonzqt/functionpanel.h
Campbell Barton 3dcf6b
    ../include/toonzqt/functionsegmentviewer.h
Campbell Barton 3dcf6b
    ../include/toonzqt/functionselection.h
Campbell Barton 3dcf6b
    ../include/toonzqt/functionsheet.h
Campbell Barton 3dcf6b
    ../include/toonzqt/functiontoolbar.h
Campbell Barton 3dcf6b
    ../include/toonzqt/functiontreeviewer.h
Campbell Barton 3dcf6b
    ../include/toonzqt/functionviewer.h
Campbell Barton 3dcf6b
    ../include/toonzqt/fxhistogramrender.h
Campbell Barton 3dcf6b
    ../include/toonzqt/fxschematicnode.h
Campbell Barton 3dcf6b
    ../include/toonzqt/fxschematicscene.h
Campbell Barton 3dcf6b
    ../include/toonzqt/fxselection.h
Campbell Barton 3dcf6b
    ../include/toonzqt/fxsettings.h
Campbell Barton 3dcf6b
    ../include/toonzqt/gutil.h
Campbell Barton 3dcf6b
    ../include/toonzqt/histogram.h
Campbell Barton 3dcf6b
    ../include/toonzqt/icongenerator.h
Campbell Barton 3dcf6b
    ../include/toonzqt/imageutils.h
Campbell Barton 3dcf6b
    ../include/toonzqt/infoviewer.h
Campbell Barton 3dcf6b
    ../include/toonzqt/intfield.h
Campbell Barton 3dcf6b
    ../include/toonzqt/intpairfield.h
Campbell Barton 3dcf6b
    ../include/toonzqt/keyframenavigator.h
Campbell Barton 3dcf6b
    ../include/toonzqt/lineedit.h
otakuto 8181b0
    ../include/toonzqt/marksbar.h
Campbell Barton 3dcf6b
    ../include/toonzqt/menubarcommand.h
Campbell Barton 3dcf6b
    ../include/toonzqt/paletteviewer.h
Campbell Barton 3dcf6b
    ../include/toonzqt/paletteviewergui.h
Campbell Barton 3dcf6b
    ../include/toonzqt/paramfield.h
Campbell Barton 3dcf6b
    ../include/toonzqt/popupbutton.h
Campbell Barton 3dcf6b
    ../include/toonzqt/schematicgroupeditor.h
otakuto 8181b0
    ../include/toonzqt/schematicnode.h
Campbell Barton 3dcf6b
    ../include/toonzqt/schematicviewer.h
otakuto 8181b0
    ../include/toonzqt/screenboard.h
Campbell Barton 3dcf6b
    ../include/toonzqt/scriptconsole.h
Campbell Barton 3dcf6b
    ../include/toonzqt/spectrumfield.h
Campbell Barton 3dcf6b
    ../include/toonzqt/spreadsheetviewer.h
Campbell Barton 3dcf6b
    ../include/toonzqt/stageschematicnode.h
Campbell Barton 3dcf6b
    ../include/toonzqt/stageschematicscene.h
Campbell Barton 3dcf6b
    ../include/toonzqt/studiopaletteviewer.h
Campbell Barton 3dcf6b
    ../include/toonzqt/styleeditor.h
Campbell Barton 3dcf6b
    ../include/toonzqt/styleindexlineedit.h
otakuto 8181b0
    ../include/toonzqt/stylenameeditor.h
Campbell Barton 3dcf6b
    ../include/toonzqt/swatchviewer.h
Campbell Barton 3dcf6b
    ../include/toonzqt/tabbar.h
otakuto 8181b0
    ../include/toonzqt/tmessageviewer.h
Campbell Barton 3dcf6b
    ../include/toonzqt/tonecurvefield.h
Campbell Barton 3dcf6b
    ../include/toonzqt/treemodel.h
Campbell Barton 3dcf6b
    ../include/toonzqt/tselectionhandle.h
Campbell Barton 3dcf6b
    ../include/toonzqt/updatechecker.h
Campbell Barton 3dcf6b
    ../include/toonzqt/validatedchoicedialog.h
Campbell Barton 9ece9c
)
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
set(HEADERS
Toshihiro Shimizu 890ddd
    ${MOC_HEADERS}
otakuto 8181b0
    docklayout.h
Campbell Barton 3dcf6b
    functionpaneltools.h
otakuto 8181b0
    fxdata.h
otakuto 8181b0
    palettedata.h
otakuto 8181b0
    plugin_fxnode_interface.h
otakuto 8181b0
    plugin_port_interface.h
otakuto 8181b0
    plugin_tile_interface.h
otakuto 8181b0
    styledata.h
Campbell Barton 3dcf6b
    toonz_hostif.h
Campbell Barton 3dcf6b
    toonz_plugin.h
otakuto 8181b0
    ../include/historytypes.h
otakuto 8181b0
    ../include/toonzqt/dvmimedata.h
otakuto 8181b0
    ../include/toonzqt/flipconsoleowner.h
otakuto 8181b0
    ../include/toonzqt/freelayout.h
otakuto 8181b0
    ../include/toonzqt/fxiconmanager.h
otakuto 8181b0
    ../include/toonzqt/fxtypes.h
otakuto 8181b0
    ../include/toonzqt/glwidget_for_highdpi.h
otakuto 8181b0
    ../include/toonzqt/lutcalibrator.h
otakuto 8181b0
    ../include/toonzqt/multipleselection.h
otakuto 8181b0
    ../include/toonzqt/pickrgbutils.h
otakuto 8181b0
    ../include/toonzqt/planeviewer.h
otakuto 8181b0
    ../include/toonzqt/rasterimagedata.h
otakuto 8181b0
    ../include/toonzqt/selection.h
otakuto 8181b0
    ../include/toonzqt/selectioncommandids.h
otakuto 8181b0
    ../include/toonzqt/stageobjectsdata.h
otakuto 8181b0
    ../include/toonzqt/strokesdata.h
otakuto 8181b0
    ../include/toonzqt/styleselection.h
otakuto 8181b0
    ../include/toonzqt/trepetitionguard.h
otakuto 8181b0
    ../include/toonzqt/viewcommandids.h
Campbell Barton 9ece9c
)
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
set(SOURCES
Campbell Barton 3dcf6b
    checkbox.cpp
Campbell Barton 3dcf6b
    colorfield.cpp
Campbell Barton 3dcf6b
    docklayout.cpp
Campbell Barton 3dcf6b
    dockwidget.cpp
Campbell Barton 3dcf6b
    doublefield.cpp
Campbell Barton 3dcf6b
    doublepairfield.cpp
Campbell Barton 3dcf6b
    dvdialog.cpp
Campbell Barton 3dcf6b
    dvscrollwidget.cpp
Campbell Barton 3dcf6b
    dvtextedit.cpp
Campbell Barton 3dcf6b
    expressionfield.cpp
Campbell Barton 3dcf6b
    filefield.cpp
Campbell Barton 3dcf6b
    flipconsole.cpp
Campbell Barton 3dcf6b
    framenavigator.cpp
Campbell Barton 3dcf6b
    freelayout.cpp
Campbell Barton 3dcf6b
    fxhistogramrender.cpp
Campbell Barton 3dcf6b
    fxsettings.cpp
Campbell Barton 3dcf6b
    gutil.cpp
Campbell Barton 3dcf6b
    histogram.cpp
Campbell Barton 3dcf6b
    icongenerator.cpp
Campbell Barton 3dcf6b
    imageutils.cpp
Campbell Barton 3dcf6b
    infoviewer.cpp
Campbell Barton 3dcf6b
    intfield.cpp
Campbell Barton 3dcf6b
    intpairfield.cpp
Campbell Barton 3dcf6b
    keyframenavigator.cpp
Campbell Barton 3dcf6b
    lineedit.cpp
Campbell Barton 3dcf6b
    menubarcommand.cpp
Campbell Barton 3dcf6b
    palettesscanpopup.cpp
Campbell Barton 3dcf6b
    paletteviewer.cpp
Campbell Barton 3dcf6b
    paletteviewergui.cpp
Campbell Barton 3dcf6b
    paramfield.cpp
Campbell Barton 3dcf6b
    planeviewer.cpp
Campbell Barton 3dcf6b
    popupbutton.cpp
Campbell Barton 3dcf6b
    rasterimagedata.cpp
Campbell Barton 3dcf6b
    scriptconsole.cpp
Campbell Barton 3dcf6b
    selection.cpp
Campbell Barton 3dcf6b
    stageobjectsdata.cpp
Campbell Barton 3dcf6b
    spectrumfield.cpp
Campbell Barton 3dcf6b
    spreadsheetviewer.cpp
Campbell Barton 3dcf6b
    strokesdata.cpp
Campbell Barton 3dcf6b
    studiopaletteviewer.cpp
Campbell Barton 3dcf6b
    styleeditor.cpp
Campbell Barton 3dcf6b
    styleindexlineedit.cpp
Campbell Barton 3dcf6b
    swatchviewer.cpp
Campbell Barton 3dcf6b
    tabbar.cpp
Campbell Barton 3dcf6b
    tdockwindows.cpp
Campbell Barton 3dcf6b
    tonecurvefield.cpp
Campbell Barton 3dcf6b
    treemodel.cpp
Campbell Barton 3dcf6b
    tselectionhandle.cpp
Campbell Barton 3dcf6b
    addfxcontextmenu.cpp
Campbell Barton 3dcf6b
    fxschematicnode.cpp
Campbell Barton 3dcf6b
    fxschematicscene.cpp
Campbell Barton 3dcf6b
    schematicnode.cpp
Campbell Barton 3dcf6b
    schematicviewer.cpp
Campbell Barton 3dcf6b
    schematicgroupeditor.cpp
Campbell Barton 3dcf6b
    stageschematicnode.cpp
Campbell Barton 3dcf6b
    stageschematicscene.cpp
Campbell Barton 3dcf6b
    functionselection.cpp
Campbell Barton 3dcf6b
    fxselection.cpp
Campbell Barton 3dcf6b
    stageobjectselection.cpp
Campbell Barton 3dcf6b
    styleselection.cpp
Campbell Barton 3dcf6b
    dvmimedata.cpp
Campbell Barton 3dcf6b
    fxdata.cpp
Campbell Barton 3dcf6b
    palettedata.cpp
Campbell Barton 3dcf6b
    styledata.cpp
Campbell Barton 3dcf6b
    functionkeyframenavigator.cpp
Campbell Barton 3dcf6b
    functionpanel.cpp
Campbell Barton 3dcf6b
    functionpaneltools.cpp
Campbell Barton 3dcf6b
    functionsegmentviewer.cpp
Campbell Barton 3dcf6b
    functionsheet.cpp
Campbell Barton 3dcf6b
    functiontoolbar.cpp
Campbell Barton 3dcf6b
    functiontreeviewer.cpp
Campbell Barton 3dcf6b
    functionviewer.cpp
Campbell Barton 3dcf6b
    updatechecker.cpp
Campbell Barton 3dcf6b
    validatedchoicedialog.cpp
Campbell Barton 3dcf6b
    trepetitionguard.cpp
Campbell Barton 3dcf6b
    camerasettingswidget.cpp
Campbell Barton 3dcf6b
    cleanupcamerasettingswidget.cpp
Campbell Barton 3dcf6b
    pickrgbutils.cpp
Campbell Barton 3dcf6b
    screenboard.cpp
Campbell Barton 3dcf6b
    marksbar.cpp
Campbell Barton 3dcf6b
    tmessageviewer.cpp
Campbell Barton 3dcf6b
    stylenameeditor.cpp
Campbell Barton 3dcf6b
    combohistogram.cpp
Campbell Barton 3dcf6b
    fxiconmanager.cpp
Campbell Barton 3dcf6b
    pluginhost.cpp
Campbell Barton 3dcf6b
    plugin_tile_interface.cpp
Campbell Barton 3dcf6b
    plugin_port_interface.cpp
Campbell Barton 3dcf6b
    plugin_fxnode_interface.cpp
Campbell Barton 3dcf6b
    plugin_param_interface.cpp
Campbell Barton 3dcf6b
    plugin_param_view_interface.cpp
Campbell Barton 3dcf6b
    plugin_ui_page_interface.cpp
Campbell Barton 9ece9c
    toonz_params.cpp
shun-iwasawa ad7711
	lutcalibrator.cpp
Campbell Barton 9ece9c
)
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
set(RESOURCES toonzqt.qrc)
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
add_translation(toonzqt ${HEADERS} ${SOURCES})
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
get_target_property(QW_LOC Qt5::Widgets INTERFACE_INCLUDE_DIRECTORIES)
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
set(CMAKE_INCLUDE_CURRENT_DIR ON)
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
set(incs)
Toshihiro Shimizu 890ddd
foreach(dir ${Qt5Widgets_INCLUDE_DIRS})
Campbell Barton fb6d38
    set(incs ${incs} -I${dir})
Toshihiro Shimizu 890ddd
endforeach()
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
qt5_add_resources(SOURCES ${RESOURCES})
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
qt5_wrap_cpp(SOURCES ${MOC_HEADERS} OPTIONS ${incs})
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
add_library(toonzqt SHARED ${HEADERS} ${SOURCES} ${RESOURCES})
429ee8
if(BUILD_ENV_APPLE)
Toshihiro Shimizu 890ddd
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,-install_name,@rpath/libtoonzqt.dylib")
shun-iwasawa 5a2ff6
    add_dependencies(toonzqt tnzcore tnzbase tnzext toonzlib sound)
Campbell Barton f08982
endif()
Toshihiro Shimizu 890ddd
Campbell Barton f2d492
add_definitions(
Campbell Barton f2d492
    -DQT_WIDGETS_LIB
Campbell Barton f2d492
    -DTOONZQT_EXPORTS
Campbell Barton f2d492
)
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
message("subdir: toonzqt")
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;tnzbase;tnzext;toonzlib;sound")
Toshihiro Shimizu 890ddd
429ee8
if(BUILD_ENV_MSVC)
Toshihiro Shimizu 890ddd
    set(EXTRA_LIBS ${EXTRA_LIBS}
Campbell Barton 9ece9c
        advapi32.lib
Campbell Barton 9ece9c
    )
429ee8
elseif(BUILD_ENV_UNIXLIKE)
429ee8
    if(BUILD_TARGET_WIN)
429ee8
        set(EXTRA_LIBS ${EXTRA_LIBS}
429ee8
            -ladvapi32
429ee8
        )
429ee8
    endif()
Toshihiro Shimizu 890ddd
endif()
Toshihiro Shimizu 890ddd
shun_iwasawa 3cc41f
target_link_libraries(toonzqt Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Network Qt5::OpenGL Qt5::Svg ${EXTRA_LIBS} ${GL_LIB})