Toshihiro Shimizu 890ddd
set(MOC_HEADERS
Toshihiro Shimizu 890ddd
    controlpointselection.h
Toshihiro Shimizu 890ddd
    edittoolgadgets.h
Jeremy Bullock e122a9
    filltool.h
otakuto 8181b0
    fullcolorbrushtool.h
shun-iwasawa 14c787
    fullcolorfilltool.h
otakuto 8181b0
    plastictool.h
Toshihiro Shimizu 890ddd
    skeletonsubtools.h
Toshihiro Shimizu 890ddd
    tooloptionscontrols.h
otakuto 8181b0
    toonzrasterbrushtool.h
otakuto 8181b0
    viewtools.h
manongjohn 19dec5
    selectiontool.h
manongjohn 19dec5
    edittool.h
shun-iwasawa 0842da
    controlpointeditortool.h
shun-iwasawa a5c4f3
    geometrictool.h
otakuto 8181b0
    ../include/tools/imagegrouping.h
otakuto 8181b0
    ../include/tools/screenpicker.h
Toshihiro Shimizu 890ddd
    ../include/tools/toolhandle.h
Toshihiro Shimizu 890ddd
    ../include/tools/tooloptions.h
Campbell Barton 9ece9c
)
Toshihiro Shimizu 890ddd
otakuto 8181b0
set(HEADERS
otakuto 8181b0
    ${MOC_HEADERS}
Toshihiro Shimizu 890ddd
    autofill.h
Toshihiro Shimizu 890ddd
    bluredbrush.h
Toshihiro Shimizu 890ddd
    hookselection.h
otakuto 8181b0
    mypainttoonzbrush.h
otakuto 8181b0
    rasterselectiontool.h
otakuto 8181b0
    rgbpickertool.h
otakuto 8181b0
    rulertool.h
Toshihiro Shimizu 890ddd
    setsaveboxtool.h
otakuto 8181b0
    shifttracetool.h
otakuto 8181b0
    stylepickertool.h
otakuto 8181b0
    toonzvectorbrushtool.h
Toshihiro Shimizu 890ddd
    vectorselectiontool.h
otakuto 8181b0
    ../include/tools/RGBpicker.h
otakuto 8181b0
    ../include/tools/cursormanager.h
otakuto 8181b0
    ../include/tools/cursors.h
otakuto 8181b0
    ../include/tools/levelselection.h
otakuto 8181b0
    ../include/tools/rasterselection.h
Toshihiro Shimizu 890ddd
    ../include/tools/strokeselection.h
Toshihiro Shimizu 890ddd
    ../include/tools/stylepicker.h
Toshihiro Shimizu 890ddd
    ../include/tools/tool.h
Toshihiro Shimizu 890ddd
    ../include/tools/toolcommandids.h
Toshihiro Shimizu 890ddd
    ../include/tools/toolutils.h
2b429e
    ../include/tools/tooltimer.h
2b429e
    ../include/tools/keyhistory.h
efa14d
    ../include/tools/inputstate.h
2b429e
    ../include/tools/track.h
49945e
    ../include/tools/inputmanager.h
9cf8be
    ../include/tools/assistant.h
b52c5a
    ../include/tools/replicator.h
7a5892
    ../include/tools/modifiers/modifierassistants.h
b52c5a
    ../include/tools/modifiers/modifierclone.h
7a5892
    ../include/tools/modifiers/modifierline.h
d8eddc
    ../include/tools/modifiers/modifiersegmentation.h
fa009d
    ../include/tools/modifiers/modifiersimplify.h
f278a5
    ../include/tools/modifiers/modifiersmooth.h
fa009d
    ../include/tools/modifiers/modifiertangents.h
fa009d
    ../include/tools/modifiers/modifiertest.h
d5090c
    ../include/tools/assistants/guidelineline.h
d5090c
    ../include/tools/assistants/guidelineellipse.h
Campbell Barton 9ece9c
)
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
set(SOURCES
Toshihiro Shimizu 890ddd
    autofillpli.cpp
Toshihiro Shimizu 890ddd
    autofilltlv.cpp
Toshihiro Shimizu 890ddd
    cursormanager.cpp
Toshihiro Shimizu 890ddd
    stylepicker.cpp
Toshihiro Shimizu 890ddd
    tool.cpp
Toshihiro Shimizu 890ddd
    toolhandle.cpp
Toshihiro Shimizu 890ddd
    toolutils.cpp
Toshihiro Shimizu 890ddd
    bendertool.cpp
Toshihiro Shimizu 890ddd
    bluredbrush.cpp
Toshihiro Shimizu 890ddd
    controlpointeditortool.cpp
Toshihiro Shimizu 890ddd
    cuttertool.cpp
Toshihiro Shimizu 890ddd
    edittool.cpp
Toshihiro Shimizu 890ddd
    edittoolgadgets.cpp
Toshihiro Shimizu 890ddd
    filltool.cpp
Toshihiro Shimizu 890ddd
    fullcolorbrushtool.cpp
Toshihiro Shimizu 890ddd
    fullcolorerasertool.cpp
shun-iwasawa 14c787
    fullcolorfilltool.cpp
Toshihiro Shimizu 890ddd
    geometrictool.cpp
Toshihiro Shimizu 890ddd
    hooktool.cpp
Toshihiro Shimizu 890ddd
    hookselection.cpp
Toshihiro Shimizu 890ddd
    imagegrouping.cpp
Toshihiro Shimizu 890ddd
    irontool.cpp
Toshihiro Shimizu 890ddd
    levelselection.cpp
Toshihiro Shimizu 890ddd
    magnettool.cpp
Toshihiro Shimizu 890ddd
    morphtool.cpp
Toshihiro Shimizu 890ddd
    paintbrushtool.cpp
Toshihiro Shimizu 890ddd
    pinchtool.cpp
Toshihiro Shimizu 890ddd
    plastictool.cpp
Toshihiro Shimizu 890ddd
    plastictool_animate.cpp
Toshihiro Shimizu 890ddd
    plastictool_build.cpp
Toshihiro Shimizu 890ddd
    plastictool_meshedit.cpp
Toshihiro Shimizu 890ddd
    plastictool_rigidity.cpp
Toshihiro Shimizu 890ddd
    pumptool.cpp
Toshihiro Shimizu 890ddd
    rastererasertool.cpp
Toshihiro Shimizu 890ddd
    rastertapetool.cpp
Toshihiro Shimizu 890ddd
    rasterselectiontool.cpp
Arseniy Shestakov 5e9e96
    rgbpickertool.cpp
Toshihiro Shimizu 890ddd
    selectiontool.cpp
Toshihiro Shimizu 890ddd
    setsaveboxtool.cpp
Toshihiro Shimizu 890ddd
    skeletonsubtools.cpp
Toshihiro Shimizu 890ddd
    skeletontool.cpp
Toshihiro Shimizu 890ddd
    stylepickertool.cpp
Toshihiro Shimizu 890ddd
    trackertool.cpp
Toshihiro Shimizu 890ddd
    typetool.cpp
Toshihiro Shimizu 890ddd
    tooloptionscontrols.cpp
Toshihiro Shimizu 890ddd
    tooloptions.cpp
Toshihiro Shimizu 890ddd
    vectorerasertool.cpp
Toshihiro Shimizu 890ddd
    vectorselectiontool.cpp
Toshihiro Shimizu 890ddd
    vectortapetool.cpp
Toshihiro Shimizu 890ddd
    viewtools.cpp
Toshihiro Shimizu 890ddd
    controlpointselection.cpp
Toshihiro Shimizu 890ddd
    rasterselection.cpp
Toshihiro Shimizu 890ddd
    strokeselection.cpp
Toshihiro Shimizu 890ddd
    screenpicker.cpp
Campbell Barton 3dcf6b
    fingertool.cpp
Campbell Barton 9ece9c
    rulertool.cpp
bf1d82
    mypainttoonzbrush.cpp
shun-iwasawa 1d5937
    shifttracetool.cpp
shun-iwasawa 98926d
    toonzrasterbrushtool.cpp
2b429e
    toonzvectorbrushtool.cpp
2b429e
    tooltimer.cpp
efa14d
    inputstate.cpp
2b429e
    track.cpp
49945e
    inputmanager.cpp
911124
    assistant.cpp
b52c5a
    replicator.cpp
7a5892
    modifiers/modifierassistants.cpp
b52c5a
    modifiers/modifierclone.cpp
7a5892
    modifiers/modifierline.cpp
9cf8be
    modifiers/modifiersegmentation.cpp
fa009d
    modifiers/modifiersimplify.cpp
f278a5
    modifiers/modifiersmooth.cpp
fa009d
    modifiers/modifiertangents.cpp
fa009d
    modifiers/modifiertest.cpp
4df9cd
    assistants/guidelineline.cpp
9a49d4
    assistants/guidelineellipse.cpp
4df9cd
    assistants/assistantvanishingpoint.cpp
166af2
    assistants/assistantline.cpp
9a49d4
    assistants/assistantellipse.cpp
b52c5a
    assistants/replicatoraffine.cpp
249386
    editassistantstool.cpp
Campbell Barton 9ece9c
)
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
set(RESOURCES tnztools.qrc)
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
qt5_add_resources(SOURCES ${RESOURCES})
Toshihiro Shimizu 890ddd
shun-iwasawa 799a29
if(WITH_TRANSLATION)
shun-iwasawa 799a29
    add_translation(tnztools ${HEADERS} ${SOURCES})
shun-iwasawa 799a29
endif()
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
qt5_wrap_cpp(SOURCES ${MOC_HEADERS})
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
add_library(tnztools SHARED ${HEADERS} ${SOURCES} ${RESOURCES})
Campbell Barton f2d492
add_definitions(
Campbell Barton f2d492
    -DTNZTOOLS_EXPORTS
Campbell Barton f2d492
)
Toshihiro Shimizu 890ddd
429ee8
if(BUILD_ENV_APPLE)
Tact Yoshida 8d13ab
    set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-install_name,@executable_path/libtnztools.dylib")
shun-iwasawa 5a2ff6
    add_dependencies(tnztools tnzcore tnzbase tnzext toonzlib toonzqt)
Campbell Barton f08982
endif()
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
message("subdir: tnztools")
Toshihiro Shimizu 890ddd
message("Bin: " ${CMAKE_CURRENT_BINARY_DIR})
Toshihiro Shimizu 890ddd
Campbell Barton a9c3da
include_directories(
Campbell Barton a9c3da
    SYSTEM
Campbell Barton a9c3da
    ${SDKROOT}/superlu/SupperLU_4.1/SRC
Campbell Barton a9c3da
)
Campbell Barton a9c3da
include_directories(
Campbell Barton a9c3da
    ../include/tools
Campbell Barton a9c3da
)
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
_find_toonz_library(EXTRA_LIBS "tnzcore;tnzbase;tnzext;toonzlib;toonzqt")
Toshihiro Shimizu 890ddd
bf1d82
target_link_libraries(tnztools Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Network Qt5::OpenGL ${GLUT_LIB} ${EXTRA_LIBS} ${GL_LIB} ${MYPAINT_LIB_LDFLAGS})