2016-03-19 06:57:51 +13:00
|
|
|
set(MOC_HEADERS
|
|
|
|
controlpointselection.h
|
|
|
|
edittoolgadgets.h
|
2018-03-07 19:09:17 +13:00
|
|
|
filltool.h
|
2019-02-21 17:49:39 +13:00
|
|
|
fullcolorbrushtool.h
|
2019-06-23 04:13:38 +12:00
|
|
|
fullcolorfilltool.h
|
2019-02-21 17:49:39 +13:00
|
|
|
plastictool.h
|
2016-03-19 06:57:51 +13:00
|
|
|
skeletonsubtools.h
|
|
|
|
tooloptionscontrols.h
|
2019-02-21 17:49:39 +13:00
|
|
|
toonzrasterbrushtool.h
|
|
|
|
viewtools.h
|
|
|
|
../include/tools/imagegrouping.h
|
|
|
|
../include/tools/screenpicker.h
|
2016-03-19 06:57:51 +13:00
|
|
|
../include/tools/toolhandle.h
|
|
|
|
../include/tools/tooloptions.h
|
2016-07-23 06:59:47 +12:00
|
|
|
)
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2019-02-21 17:49:39 +13:00
|
|
|
set(HEADERS
|
|
|
|
${MOC_HEADERS}
|
2016-03-19 06:57:51 +13:00
|
|
|
autofill.h
|
|
|
|
bluredbrush.h
|
|
|
|
hookselection.h
|
2019-02-21 17:49:39 +13:00
|
|
|
mypainttoonzbrush.h
|
|
|
|
rasterselectiontool.h
|
|
|
|
rgbpickertool.h
|
|
|
|
rulertool.h
|
2016-03-19 06:57:51 +13:00
|
|
|
selectiontool.h
|
|
|
|
setsaveboxtool.h
|
2019-02-21 17:49:39 +13:00
|
|
|
shifttracetool.h
|
|
|
|
stylepickertool.h
|
|
|
|
toonzvectorbrushtool.h
|
2016-03-19 06:57:51 +13:00
|
|
|
vectorselectiontool.h
|
2019-02-21 17:49:39 +13:00
|
|
|
../include/tools/RGBpicker.h
|
|
|
|
../include/tools/cursormanager.h
|
|
|
|
../include/tools/cursors.h
|
|
|
|
../include/tools/levelselection.h
|
|
|
|
../include/tools/rasterselection.h
|
2016-03-19 06:57:51 +13:00
|
|
|
../include/tools/strokeselection.h
|
|
|
|
../include/tools/stylepicker.h
|
|
|
|
../include/tools/tool.h
|
|
|
|
../include/tools/toolcommandids.h
|
|
|
|
../include/tools/toolutils.h
|
2016-07-23 06:59:47 +12:00
|
|
|
)
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
set(SOURCES
|
|
|
|
autofillpli.cpp
|
|
|
|
autofilltlv.cpp
|
|
|
|
cursormanager.cpp
|
|
|
|
stylepicker.cpp
|
|
|
|
tool.cpp
|
|
|
|
toolhandle.cpp
|
|
|
|
toolutils.cpp
|
|
|
|
bendertool.cpp
|
|
|
|
bluredbrush.cpp
|
|
|
|
controlpointeditortool.cpp
|
|
|
|
cuttertool.cpp
|
|
|
|
edittool.cpp
|
|
|
|
edittoolgadgets.cpp
|
|
|
|
filltool.cpp
|
|
|
|
fullcolorbrushtool.cpp
|
|
|
|
fullcolorerasertool.cpp
|
2019-06-23 04:13:38 +12:00
|
|
|
fullcolorfilltool.cpp
|
2016-03-19 06:57:51 +13:00
|
|
|
geometrictool.cpp
|
|
|
|
hooktool.cpp
|
|
|
|
hookselection.cpp
|
|
|
|
imagegrouping.cpp
|
|
|
|
irontool.cpp
|
|
|
|
levelselection.cpp
|
|
|
|
magnettool.cpp
|
|
|
|
morphtool.cpp
|
|
|
|
paintbrushtool.cpp
|
|
|
|
pinchtool.cpp
|
|
|
|
plastictool.cpp
|
|
|
|
plastictool_animate.cpp
|
|
|
|
plastictool_build.cpp
|
|
|
|
plastictool_meshedit.cpp
|
|
|
|
plastictool_rigidity.cpp
|
|
|
|
pumptool.cpp
|
|
|
|
rastererasertool.cpp
|
|
|
|
rastertapetool.cpp
|
|
|
|
rasterselectiontool.cpp
|
2016-03-26 16:16:40 +13:00
|
|
|
rgbpickertool.cpp
|
2016-03-19 06:57:51 +13:00
|
|
|
selectiontool.cpp
|
|
|
|
setsaveboxtool.cpp
|
|
|
|
skeletonsubtools.cpp
|
|
|
|
skeletontool.cpp
|
|
|
|
stylepickertool.cpp
|
|
|
|
trackertool.cpp
|
|
|
|
typetool.cpp
|
|
|
|
tooloptionscontrols.cpp
|
|
|
|
tooloptions.cpp
|
|
|
|
vectorerasertool.cpp
|
|
|
|
vectorselectiontool.cpp
|
|
|
|
vectortapetool.cpp
|
|
|
|
viewtools.cpp
|
|
|
|
controlpointselection.cpp
|
|
|
|
rasterselection.cpp
|
|
|
|
strokeselection.cpp
|
|
|
|
screenpicker.cpp
|
2016-03-27 16:44:29 +13:00
|
|
|
fingertool.cpp
|
2016-07-23 06:59:47 +12:00
|
|
|
rulertool.cpp
|
2017-08-04 15:31:50 +12:00
|
|
|
mypainttoonzbrush.cpp
|
2018-09-11 17:35:02 +12:00
|
|
|
shifttracetool.cpp
|
2018-09-12 13:37:07 +12:00
|
|
|
toonzrasterbrushtool.cpp
|
|
|
|
toonzvectorbrushtool.cpp
|
2016-07-23 06:59:47 +12:00
|
|
|
)
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
set(RESOURCES tnztools.qrc)
|
|
|
|
|
|
|
|
qt5_add_resources(SOURCES ${RESOURCES})
|
|
|
|
|
2020-12-23 18:22:58 +13:00
|
|
|
if(WITH_TRANSLATION)
|
|
|
|
add_translation(tnztools ${HEADERS} ${SOURCES})
|
|
|
|
endif()
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
qt5_wrap_cpp(SOURCES ${MOC_HEADERS})
|
|
|
|
|
|
|
|
add_library(tnztools SHARED ${HEADERS} ${SOURCES} ${RESOURCES})
|
2016-07-03 00:23:18 +12:00
|
|
|
add_definitions(
|
|
|
|
-DTNZTOOLS_EXPORTS
|
|
|
|
)
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2017-05-26 18:00:05 +12:00
|
|
|
if(BUILD_ENV_APPLE)
|
2020-07-26 16:53:56 +12:00
|
|
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-install_name,@executable_path/libtnztools.dylib")
|
2017-11-24 17:10:45 +13:00
|
|
|
add_dependencies(tnztools tnzcore tnzbase tnzext toonzlib toonzqt)
|
2016-04-27 23:48:12 +12:00
|
|
|
endif()
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
message("subdir: tnztools")
|
|
|
|
message("Bin: " ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
2016-07-09 03:47:11 +12:00
|
|
|
include_directories(
|
|
|
|
SYSTEM
|
|
|
|
${SDKROOT}/superlu/SupperLU_4.1/SRC
|
|
|
|
)
|
|
|
|
include_directories(
|
|
|
|
../include/tools
|
|
|
|
)
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
_find_toonz_library(EXTRA_LIBS "tnzcore;tnzbase;tnzext;toonzlib;toonzqt")
|
|
|
|
|
2017-08-04 15:31:50 +12:00
|
|
|
target_link_libraries(tnztools Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Network Qt5::OpenGL ${GLUT_LIB} ${EXTRA_LIBS} ${GL_LIB} ${MYPAINT_LIB_LDFLAGS})
|