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
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
    selectiontool.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
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
shun-iwasawa 98926d
	toonzvectorbrushtool.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
Toshihiro Shimizu 890ddd
add_translation(tnztools ${HEADERS} ${SOURCES})
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})