OpenToonz - An open-source full-featured 2D animation creation software
C
Cleanup: CMake style
Campbell Barton9ece9c0c9286
diff --git a/plugins/blur/CMakeLists.txt b/plugins/blur/CMakeLists.txtindex aa987e827..5d1bb209c 100644--- a/plugins/blur/CMakeLists.txt+++ b/plugins/blur/CMakeLists.txt@@ -4,10 +4,12 @@ set(PLUGINSDK_UTILS_PATH ../)set(HEADERS${PLUGINSDK_ROOT}/toonz_plugin.h- ${PLUGINSDK_ROOT}/toonz_hostif.h)+ ${PLUGINSDK_ROOT}/toonz_hostif.h+)set(SOURCES- blur.cpp)+ blur.cpp+)if(APPLE)set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++")@@ -17,6 +19,7 @@ add_library(blur SHARED ${HEADERS} ${SOURCES})set_target_properties(blur PROPERTIESPREFIX ""- SUFFIX ".plugin")+ SUFFIX ".plugin"+)include_directories(${PLUGINSDK_ROOT} ${PLUGINSDK_UTILS_PATH})diff --git a/plugins/geom/CMakeLists.txt b/plugins/geom/CMakeLists.txtindex 0fc639ec8..43a20288c 100644--- a/plugins/geom/CMakeLists.txt+++ b/plugins/geom/CMakeLists.txt@@ -5,10 +5,12 @@ set(PLUGINSDK_UTILS_PATH ../)set(HEADERS${PLUGINSDK_ROOT}/toonz_plugin.h- ${PLUGINSDK_ROOT}/toonz_hostif.h)+ ${PLUGINSDK_ROOT}/toonz_hostif.h+)set(SOURCES- geom.cpp)+ geom.cpp+)if(APPLE)set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++")@@ -18,6 +20,7 @@ add_library(geom SHARED ${HEADERS} ${SOURCES})set_target_properties(geom PROPERTIESPREFIX ""- SUFFIX ".plugin")+ SUFFIX ".plugin"+)include_directories(${PLUGINSDK_ROOT} ${PLUGINSDK_UTILS_PATH})diff --git a/plugins/multiplugin/CMakeLists.txt b/plugins/multiplugin/CMakeLists.txtindex 455985ca7..93e26403c 100644--- a/plugins/multiplugin/CMakeLists.txt+++ b/plugins/multiplugin/CMakeLists.txt@@ -4,10 +4,12 @@ set(PLUGINSDK_UTILS_PATH ../)set(HEADERS${PLUGINSDK_ROOT}/toonz_plugin.h- ${PLUGINSDK_ROOT}/toonz_hostif.h)+ ${PLUGINSDK_ROOT}/toonz_hostif.h+)set(SOURCES- multi.cpp)+ multi.cpp+)if(APPLE)set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++")@@ -17,6 +19,7 @@ add_library(multi SHARED ${HEADERS} ${SOURCES})set_target_properties(multi PROPERTIESPREFIX ""- SUFFIX ".plugin")+ SUFFIX ".plugin"+)include_directories(${PLUGINSDK_ROOT} ${PLUGINSDK_UTILS_PATH})diff --git a/toonz/sources/CMakeLists.txt b/toonz/sources/CMakeLists.txtindex 3cb7ff3a3..af8ea55cf 100644--- a/toonz/sources/CMakeLists.txt+++ b/toonz/sources/CMakeLists.txt@@ -145,7 +145,8 @@ find_package(Qt5 REQUIREDWidgetsPrintSupportLinguistTools- Multimedia)+ Multimedia+)if(WIN32)include_directories(@@ -200,15 +201,18 @@ if(WIN32)set(GL_LIB opengl32.lib)set(Z_LIBoptimized ${SDKROOT}/zlib-1.2.8/lib/zlib-1.2.8_${MSVC_LIB_VERSION}${PLATFORM2}.lib- debug ${SDKROOT}/zlib-1.2.8/lib/zlib-1.2.8_${MSVC_LIB_VERSION}${PLATFORM2}d.lib)+ debug ${SDKROOT}/zlib-1.2.8/lib/zlib-1.2.8_${MSVC_LIB_VERSION}${PLATFORM2}d.lib+ )set(JPEG_LIB ${SDKROOT}/LibJPEG/jpeg-9/lib/LibJPEG-9_${MSVC_LIB_VERSION}${PLATFORM2}.lib)set(TIFF_INCLUDE_DIR ${SDKROOT}/tiff-4.0.3/libtiff)set(TIFF_LIBoptimized ${SDKROOT}/tiff-4.0.3/lib/LibTIFF-4.0.3_${MSVC_LIB_VERSION}${PLATFORM2}.lib- debug ${SDKROOT}/tiff-4.0.3/lib/LibTIFF-4.0.3_${MSVC_LIB_VERSION}${PLATFORM2}d.lib)+ debug ${SDKROOT}/tiff-4.0.3/lib/LibTIFF-4.0.3_${MSVC_LIB_VERSION}${PLATFORM2}d.lib+ )set(PNG_LIBoptimized ${SDKROOT}/libpng-1.6.21/lib/libpng16_${MSVC_LIB_VERSION}${PLATFORM2}.lib- debug ${SDKROOT}/libpng-1.6.21/lib/libpng16_${MSVC_LIB_VERSION}${PLATFORM2}d.lib)+ debug ${SDKROOT}/libpng-1.6.21/lib/libpng16_${MSVC_LIB_VERSION}${PLATFORM2}d.lib+ )set(GLEW_LIB ${SDKROOT}/glew/glew-1.9.0/lib/glew${PLATFORM}.lib)set(LZ4_LIB ${SDKROOT}/Lz4/Lz4_131/lz4_${PLATFORM}.lib)set(SUPERLU_LIB ${SDKROOT}/superlu/SuperLU_${MSVC_LIB_VERSION}_${PLATFORM}.lib)@@ -421,14 +425,16 @@ function(add_translation module)set(name "${CMAKE_SOURCE_DIR}/translations/${lang}/${module}.ts")list(APPEND translation ${name})set_source_files_properties(${name} PROPERTIES- OUTPUT_LOCATION "${CMAKE_BINARY_DIR}/loc/${lang}")+ OUTPUT_LOCATION "${CMAKE_BINARY_DIR}/loc/${lang}"+ )endforeach()qt5_create_translation(message ${translation} ${ARGN})add_custom_target("translation_${module}" DEPENDS ${message})set_target_properties("translation_${module}" PROPERTIES- EXCLUDE_FROM_DEFAULT_BUILD TRUE)+ EXCLUDE_FROM_DEFAULT_BUILD TRUE+ )endfunction()set(CMAKE_C_FLAGS "${C_WARNINGS} ${CMAKE_C_FLAGS}")@@ -466,5 +472,6 @@ if(APPLE)add_custom_command(TARGET executablePOST_BUILD COMMAND${CMAKE_INSTALL_NAME_TOOL} -add_rpath ${CMAKE_INSTALL_RPATH}- $<TARGET_FILE:executable>)+ $<TARGET_FILE:executable>+ )endif()diff --git a/toonz/sources/colorfx/CMakeLists.txt b/toonz/sources/colorfx/CMakeLists.txtindex e73f0fba9..1ce0525aa 100644--- a/toonz/sources/colorfx/CMakeLists.txt+++ b/toonz/sources/colorfx/CMakeLists.txt@@ -4,7 +4,8 @@ set(HEADERSrasterstyles.hregionstyles.hstrokestyles.h- zigzagstyles.h)+ zigzagstyles.h+)set(SOURCEScolorfx.cpp@@ -12,7 +13,8 @@ set(SOURCESrasterstyles.cppregionstyles.cppstrokestyles.cpp- zigzagstyles.cpp)+ zigzagstyles.cpp+)add_translation(colorfx ${HEADERS} ${SOURCES})diff --git a/toonz/sources/image/CMakeLists.txt b/toonz/sources/image/CMakeLists.txtindex 656ec0f11..4b784f122 100644--- a/toonz/sources/image/CMakeLists.txt+++ b/toonz/sources/image/CMakeLists.txt@@ -20,7 +20,8 @@ set(HEADERS../include/tnzimage.hmov/tiio_mov_proxy.h3gp/tiio_3gp_proxy.h- mesh/tiio_mesh.h)+ mesh/tiio_mesh.h+)set(SOURCEStiio.cpp@@ -46,31 +47,38 @@ set(SOURCEStzl/tiio_tzl.cppmov/tiio_mov_proxy.cpp3gp/tiio_3gp_proxy.cpp- mesh/tiio_mesh.cpp)+ mesh/tiio_mesh.cpp+)if(WIN32)set(HEADERS ${HEADERS}avi/tiio_avi.hmov/tiio_mov.h- 3gp/tiio_3gp.h)+ 3gp/tiio_3gp.h+ )set(SOURCES ${SOURCES}avi/tiio_avi.cppmov/tiio_movW.cpp- 3gp/tiio_3gpW.cpp)+ 3gp/tiio_3gpW.cpp+ )else()set(HEADERS ${HEADERS}mov/tiio_movM.h- 3gp/tiio_3gpM.h)+ 3gp/tiio_3gpM.h+ )set(SOURCES ${SOURCES}mov/tiio_movM.cpp- 3gp/tiio_3gpM.cpp)+ 3gp/tiio_3gpM.cpp+ )elseif(UNIX)set(HEADERS ${HEADERS}3gp/tiio_3gp_proxy.h- mov/tiio_mov_proxy.h)+ mov/tiio_mov_proxy.h+ )set(SOURCES ${SOURCES}mov/tiio_mov_proxy.cpp- 3gp/tiio_3gp_proxy.cpp)+ 3gp/tiio_3gp_proxy.cpp+ )endif()add_library(image SHARED ${HEADERS} ${SOURCES})@@ -115,17 +123,19 @@ endif()if(WIN32)set(EXTRA_LIBS${TNZLIBS}- vfw32.lib)+ vfw32.lib+ )elseif(APPLE)if(PLATFORM EQUAL 32)find_library(CORE_SERVICES_LIB CoreServices)set(OSX_10_6_SDK_PATH "")if(NOT OSX_10_6_SDK_PATH)- message(FATAL_ERROR "Set variable 'OSX_10_6_SDK_PATH'")+ message(FATAL_ERROR "Set variable 'OSX_10_6_SDK_PATH'")endif()find_library(QD_LIB- NAMES QD- PATHS OSX10_6_SDK_PATH)+ NAMES QD+ PATHS OSX10_6_SDK_PATH+ )set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -F ${OSX_10_6_SDK_PATH}")endif()set(EXTRA_LIBS@@ -133,11 +143,13 @@ elseif(APPLE)${QT_LIB}${CARBON_LIB}${CORE_SERVICES_LIB}- ${QD_LIB})+ ${QD_LIB}+ )else()# Generic Unixset(EXTRA_LIBS- ${TNZLIBS})+ ${TNZLIBS}+ )endif()target_link_libraries(image Qt5::Core Qt5::Network ${Z_LIB} ${GLUT_LIB} ${GL_LIB} ${JPEG_LIB} ${TIFF_LIB} ${PNG_LIB} ${EXTRA_LIBS})diff --git a/toonz/sources/sound/CMakeLists.txt b/toonz/sources/sound/CMakeLists.txtindex 776916354..668fa13de 100644--- a/toonz/sources/sound/CMakeLists.txt+++ b/toonz/sources/sound/CMakeLists.txt@@ -3,14 +3,16 @@ set(HEADERSaiff/tsio_aiff.hraw/tsio_raw.h../include/tnzsound.h- tsio.h)+ tsio.h+)set(SOURCEStsio.cpptsioutils.cppwav/tsio_wav.cppaiff/tsio_aiff.cpp- raw/tsio_raw.cpp)+ raw/tsio_raw.cpp+)add_library(sound SHARED ${HEADERS} ${SOURCES})add_definitions(diff --git a/toonz/sources/stdfx/CMakeLists.txt b/toonz/sources/stdfx/CMakeLists.txtindex 273d8414c..3e45b437d 100644--- a/toonz/sources/stdfx/CMakeLists.txt+++ b/toonz/sources/stdfx/CMakeLists.txt@@ -70,7 +70,8 @@ set(HEADERSiwa_simplexnoise.hiwa_noise1234.hiwa_fresnel.h- iwa_pnperspectivefx.h)+ iwa_pnperspectivefx.h+)set(SOURCESadjustlevelsfx.cpp@@ -242,7 +243,8 @@ set(SOURCESiwa_tilefx.cppiwa_simplexnoise.cppiwa_noise1234.cpp- iwa_pnperspectivefx.cpp)+ iwa_pnperspectivefx.cpp+)set(OBJCSOURCES)diff --git a/toonz/sources/t32bitsrv/CMakeLists.txt b/toonz/sources/t32bitsrv/CMakeLists.txtindex 550ae76f3..5efe59303 100644--- a/toonz/sources/t32bitsrv/CMakeLists.txt+++ b/toonz/sources/t32bitsrv/CMakeLists.txt@@ -5,7 +5,8 @@ add_executable(t32bitsrvt32fontmsg.cppt32fontmsg.ht32movmsg.cpp- t32movmsg.h)+ t32movmsg.h+)if(WIN32)include_directories(@@ -18,7 +19,8 @@ target_link_libraries(t32bitsrvQt5::CoreQt5::Networktnzcore- image)+ image+)if(APPLE AND PLATFORM EQUAL 32)get_target_property(bin t32bitsrv LOCATION)@@ -33,5 +35,6 @@ if(APPLE AND PLATFORM EQUAL 32)add_custom_command(TARGET t32bitsrvPOST_BUILD COMMAND- ${CMAKE_INSTALL_NAME_TOOL} -add_rpath @executable_path/. ${bin})+ ${CMAKE_INSTALL_NAME_TOOL} -add_rpath @executable_path/. ${bin}+ )endif()diff --git a/toonz/sources/tcleanupper/CMakeLists.txt b/toonz/sources/tcleanupper/CMakeLists.txtindex 1dc23d67f..541bd9f74 100644--- a/toonz/sources/tcleanupper/CMakeLists.txt+++ b/toonz/sources/tcleanupper/CMakeLists.txt@@ -1,8 +1,10 @@add_executable(tcleanup- tcleanupper.cpp)+ tcleanupper.cpp+)target_link_libraries(tcleanupQt5::CoreQt5::Widgetstfarm- image)+ image+)diff --git a/toonz/sources/tcomposer/CMakeLists.txt b/toonz/sources/tcomposer/CMakeLists.txtindex 9d537fced..8e33bf947 100644--- a/toonz/sources/tcomposer/CMakeLists.txt+++ b/toonz/sources/tcomposer/CMakeLists.txt@@ -1,5 +1,6 @@add_executable(tcomposer- tcomposer.cpp)+ tcomposer.cpp+)target_link_libraries(tcomposerQt5::Core@@ -11,4 +12,5 @@ target_link_libraries(tcomposersoundimagecolorfx- toonzqt)+ toonzqt+)diff --git a/toonz/sources/tconverter/CMakeLists.txt b/toonz/sources/tconverter/CMakeLists.txtindex 20b7d7b2b..0d51f0ca5 100644--- a/toonz/sources/tconverter/CMakeLists.txt+++ b/toonz/sources/tconverter/CMakeLists.txt@@ -1,7 +1,9 @@add_executable(tconverter- tconverter.cpp)+ tconverter.cpp+)target_link_libraries(tconverterQt5::Coretoonzlib- image)+ image+)diff --git a/toonz/sources/tnzbase/CMakeLists.txt b/toonz/sources/tnzbase/CMakeLists.txtindex e5623ef64..d9993d69f 100644--- a/toonz/sources/tnzbase/CMakeLists.txt+++ b/toonz/sources/tnzbase/CMakeLists.txt@@ -1,6 +1,7 @@set(MOC_HEADERS../include/tcacheresourcepool.h- ../common/tfx/trendererP.h)+ ../common/tfx/trendererP.h+)set(HEADERS ${MOC_HEADERS}../common/twain/ttwain.h@@ -61,7 +62,8 @@ set(HEADERS ${MOC_HEADERS}../include/tparser.h../include/ttokenizer.h../include/tunit.h- ../include/tzeraryfx.h)+ ../include/tzeraryfx.h+)set(SOURCESpermissionsmanager.cpp@@ -109,14 +111,17 @@ set(SOURCES../common/expressions/ttokenizer.cpp../common/tunit/tunit.cpptscanner/tscannerutil.cpp- tscanner/tscannerepson.cpp)+ tscanner/tscannerepson.cpp+)if(WIN32)set(SOURCES ${SOURCES}- tscanner/TScannerIO/TUSBScannerIO_W.cpp)+ tscanner/TScannerIO/TUSBScannerIO_W.cpp+ )else()set(SOURCES ${SOURCES}- tscanner/TScannerIO/TUSBScannerIO_M.cpp)+ tscanner/TScannerIO/TUSBScannerIO_M.cpp+ )endif()set(OBJCSOURCES@@ -127,23 +132,27 @@ set(OBJCSOURCES../common/twain/ttwain_util.c../common/twain/ttwain_win.ctscanner/tscanner.cpp- tscanner/tscannertwain.cpp)+ tscanner/tscannertwain.cpp+)if(WIN32)set(OBJCSOURCES ${OBJCSOURCES}../common/twain/ttwain_stateW.c../common/twain/ttwain_utilW.c- ../common/twain/ttwain_winW.c)+ ../common/twain/ttwain_winW.c+ )elseif(APPLE)set(OBJCSOURCES ${OBJCSOURCES}../common/twain/ttwain_stateM.c../common/twain/ttwain_utilM.c- ../common/twain/ttwain_winM.c)+ ../common/twain/ttwain_winM.c+ )elseif(UNIX)set(OBJCSOURCES ${OBJCSOURCES}../common/twain/ttwain_stateX.c../common/twain/ttwain_utilX.c- ../common/twain/ttwain_winX.c)+ ../common/twain/ttwain_winX.c+ )endif()if(APPLE)@@ -182,7 +191,8 @@ include_directories(if(WIN32)set(EXTRA_LIBS- tnzcore)+ tnzcore+ )elseif(APPLE)find_library(TWAIN_LIB TWAIN)find_library(IOKIT_LIB IOKit)@@ -193,13 +203,15 @@ elseif(APPLE)${USB_LIB}${TWAIN_LIB}${IOKIT_LIB}- ${COCOA_LIB})+ ${COCOA_LIB}+ )target_link_libraries(tnzbase Qt5::Core Qt5::Gui)elseif(UNIX)_find_toonz_library(EXTRA_LIBS "tnzcore")set(EXTRA_LIBS ${EXTRA_LIBS}- ${SDL_LIB_LIBRARIES})+ ${SDL_LIB_LIBRARIES}+ )include_directories(SYSTEMdiff --git a/toonz/sources/tnzcore/CMakeLists.txt b/toonz/sources/tnzcore/CMakeLists.txtindex 673280577..f30d0224a 100644--- a/toonz/sources/tnzcore/CMakeLists.txt+++ b/toonz/sources/tnzcore/CMakeLists.txt@@ -5,7 +5,8 @@ set(MOC_HEADERS../include/tipcsrv.h../include/tipcsrvP.h../include/tmsgcore.h- ../include/tfunctorinvoker.h)+ ../include/tfunctorinvoker.h+)set(HEADERS ${MOC_HEADERS}../common/trop/loop_macros.h@@ -118,7 +119,8 @@ set(HEADERS ${MOC_HEADERS}../include/t32bitsrv_wrap.h../include/tenv.h../include/tmeshimage.h- ../include/tgldisplaylistsmanager.h)+ ../include/tgldisplaylistsmanager.h+)set(SOURCES../common/tcore/tdata.cpp@@ -240,25 +242,31 @@ set(SOURCES../common/tsystem/tsystempd.cpp../common/tapptools/tenv.cpp../common/tmeshimage/tmeshimage.cpp- ../common/tmsgcore.cpp)+ ../common/tmsgcore.cpp+)if(WIN32)set(SOURCES ${SOURCES}../common/tsound/tsound_nt.cpp- ../common/tvrender/tfont_nt.cpp)+ ../common/tvrender/tfont_nt.cpp+ )elseif(APPLE)set(SOURCES ${SOURCES}../common/tsound/tsound_mac.cpp- ../common/tvrender/tfont_mac.cpp)+ ../common/tvrender/tfont_mac.cpp+ )elseif(UNIX)set(SOURCES ${SOURCES}- ../common/tvrender/tfont_qt.cpp)+ ../common/tvrender/tfont_qt.cpp+ )if(SDL_LIB_FOUND)set(SOURCES ${SOURCES}- ../common/tsound/tsound_sdl.cpp)+ ../common/tsound/tsound_sdl.cpp+ )else()set(SOURCES ${SOURCES}- ../common/tsound/tsound_x.cpp)+ ../common/tsound/tsound_x.cpp+ )endif()endif()@@ -313,7 +321,8 @@ if(WIN32)mpr.libwinmm.libopengl32.lib- glu32.lib)+ glu32.lib+ )elseif(APPLE)find_library(AUDIOUNIT_LIB AudioUnit)find_library(AUDIOTB_LIB AudioToolbox)@@ -322,7 +331,8 @@ elseif(APPLE)set(EXTRA_LIBS${AUDIOUNIT_LIB}${AUDIOTB_LIB}- ${CARBON_LIB})+ ${CARBON_LIB}+ )elseif(UNIX)set(QT_LIB) # avoid warninginclude_directories(@@ -330,10 +340,12 @@ elseif(UNIX)${FREETYPE_INCLUDE_DIRS})set(EXTRA_LIBS- ${GLU_LIB})+ ${GLU_LIB}+ )endif()target_link_libraries(tnzcoreQt5::OpenGL Qt5::Network${GL_LIB} ${GLUT_LIB} ${QT_LIB} ${Z_LIB} ${JPEG_LIB} ${LZ4_LIB}- ${EXTRA_LIBS})+ ${EXTRA_LIBS}+)diff --git a/toonz/sources/tnzext/CMakeLists.txt b/toonz/sources/tnzext/CMakeLists.txtindex 44ffce5d1..9fd2f0dc7 100644--- a/toonz/sources/tnzext/CMakeLists.txt+++ b/toonz/sources/tnzext/CMakeLists.txt@@ -34,7 +34,8 @@ set(HEADERS../include/tlin/tlin_matrix.h../include/tlin/tlin_sparsemat.h../include/tlin/tlin_superlu_wrap.h- ../include/tlin/tlin_vector.h)+ ../include/tlin/tlin_vector.h+)set(SOURCESContextStatus.cpp@@ -65,7 +66,8 @@ set(SOURCESplasticskeletondeformation.cppttexturesstorage.cpptlin/tlin_cblas_wrap.cpp- tlin/tlin_superlu_wrap.cpp)+ tlin/tlin_superlu_wrap.cpp+)set(OBJCSOURCES)@@ -101,15 +103,18 @@ if(WIN32)target_link_libraries(tnzextQt5::Core Qt5::Gui Qt5::OpenGL Qt5::Network${GLUT_LIB} ${GL_LIB} ${SUPERLU_LIB} ${OPENBLAS_LIB} ${EXTRA_LIBS}- tnzcore tnzbase)+ tnzcore tnzbase+ )elseif(APPLE)set(EXTRA_LIBS${CMAKE_CURRENT_BINARY_DIR}/../tnzcore/libtnzcore.dylib- ${CMAKE_CURRENT_BINARY_DIR}/../tnzbase/libtnzbase.dylib)+ ${CMAKE_CURRENT_BINARY_DIR}/../tnzbase/libtnzbase.dylib+ )target_link_libraries(tnzextQt5::Core Qt5::Gui Qt5::OpenGL Qt5::Network- ${ACCE_LIB} ${GLUT_LIB} ${GL_LIB} ${SUPERLU_LIB} ${EXTRA_LIBS})+ ${ACCE_LIB} ${GLUT_LIB} ${GL_LIB} ${SUPERLU_LIB} ${EXTRA_LIBS}+ )elseif(UNIX)_find_toonz_library(EXTRA_LIBS "tnzcore;tnzbase")@@ -117,5 +122,6 @@ elseif(UNIX)target_link_libraries(tnzextQt5::Core Qt5::Gui Qt5::OpenGL Qt5::Network- ${GLUT_LIB} ${GL_LIB} ${SUPERLU_LIB} ${EXTRA_LIBS})+ ${GLUT_LIB} ${GL_LIB} ${SUPERLU_LIB} ${EXTRA_LIBS}+ )endif()diff --git a/toonz/sources/tnztools/CMakeLists.txt b/toonz/sources/tnztools/CMakeLists.txtindex 34ff960a0..b3d55258f 100644--- a/toonz/sources/tnztools/CMakeLists.txt+++ b/toonz/sources/tnztools/CMakeLists.txt@@ -10,7 +10,8 @@ set(MOC_HEADERS../include/tools/tooloptions.h../include/tools/screenpicker.hrgbpickertool.h- rulertool.h)+ rulertool.h+)set(HEADERS ${MOC_HEADERS}autofill.h@@ -30,7 +31,8 @@ set(HEADERS ${MOC_HEADERS}../include/tools/tool.h../include/tools/toolcommandids.h../include/tools/toolutils.h- ../include/tools/RGBpicker.h)+ ../include/tools/RGBpicker.h+)set(SOURCESautofillpli.cpp@@ -88,7 +90,8 @@ set(SOURCESstrokeselection.cppscreenpicker.cppfingertool.cpp- rulertool.cpp)+ rulertool.cpp+)set(RESOURCES tnztools.qrc)diff --git a/toonz/sources/toonz/CMakeLists.txt b/toonz/sources/toonz/CMakeLists.txtindex c3d76c87c..f430c1a60 100644--- a/toonz/sources/toonz/CMakeLists.txt+++ b/toonz/sources/toonz/CMakeLists.txt@@ -145,7 +145,8 @@ set(MOC_HEADERSmetnum.hObjectTracker.hpredict3d.h- processor.h)+ processor.h+)set(HEADERS ${MOC_HEADERS})@@ -301,7 +302,8 @@ set(SOURCESdummyprocessor.cppmetnum.cppObjectTracker.cpp- predict3d.cpp)+ predict3d.cpp+)add_translation(toonz ${HEADERS} ${SOURCES})@@ -374,9 +376,11 @@ endif()if(WIN32)target_link_libraries(OpenToonz_${VERSION}- Qt5::WinMain Qt5::Core Qt5::Gui Qt5::Network Qt5::OpenGL Qt5::Svg Qt5::Xml Qt5::Script Qt5::Widgets Qt5::PrintSupport Qt5::Multimedia+ Qt5::WinMain Qt5::Core Qt5::Gui Qt5::Network Qt5::OpenGL Qt5::Svg Qt5::Xml+ Qt5::Script Qt5::Widgets Qt5::PrintSupport Qt5::Multimedia${GL_LIB} ${GLUT_LIB}- tnzcore tnzbase toonzlib colorfx tnzext image sound toonzqt tnztools tnzstdfx tfarm)+ tnzcore tnzbase toonzlib colorfx tnzext image sound toonzqt tnztools tnzstdfx tfarm+ )elseif(APPLE)find_library(COCOA_LIB Cocoa)@@ -386,7 +390,12 @@ elseif(APPLE)set(EXTRA_LIBS ${EXTRA_LIBS} "$<TARGET_FILE:tnzstdfx>" "$<TARGET_FILE:tfarm>")- target_link_libraries(OpenToonz_${VERSION} Qt5::Core Qt5::Gui Qt5::Network Qt5::OpenGL Qt5::Svg Qt5::Xml Qt5::Script Qt5::Widgets Qt5::PrintSupport Qt5::Multimedia ${GL_LIB} ${GLUT_LIB} ${COCOA_LIB} ${EXTRA_LIBS} mousedragfilter)+ target_link_libraries(OpenToonz_${VERSION}+ Qt5::Core Qt5::Gui Qt5::Network Qt5::OpenGL Qt5::Svg Qt5::Xml+ Qt5::Script Qt5::Widgets Qt5::PrintSupport Qt5::Multimedia+ ${GL_LIB} ${GLUT_LIB}+ ${COCOA_LIB} ${EXTRA_LIBS} mousedragfilter+ )elseif(UNIX)_find_toonz_library(EXTRA_LIBS "tnzcore;tnzbase;toonzlib;colorfx;tnzext;image;sound;toonzqt;tnztools")@@ -396,7 +405,12 @@ elseif(UNIX)set(EXTRA_LIBS ${EXTRA_LIBS} ${Boost_LIBRARIES} ${OPENBLAS_LIB})- target_link_libraries(OpenToonz_${VERSION} Qt5::Core Qt5::Gui Qt5::Network Qt5::OpenGL Qt5::Svg Qt5::Xml Qt5::Script Qt5::Widgets Qt5::PrintSupport Qt5::Multimedia ${GL_LIB} ${GLUT_LIB} ${GLU_LIB} ${EXTRA_LIBS})+ target_link_libraries(+ OpenToonz_${VERSION} Qt5::Core Qt5::Gui Qt5::Network Qt5::OpenGL Qt5::Svg Qt5::Xml+ Qt5::Script Qt5::Widgets Qt5::PrintSupport Qt5::Multimedia+ ${GL_LIB} ${GLUT_LIB} ${GLU_LIB}+ ${EXTRA_LIBS}+ )endif()if(APPLE)@@ -423,10 +437,12 @@ if(APPLE)add_custom_command(TARGET OpenToonz_${VERSION}POST_BUILD COMMAND- ${CMAKE_INSTALL_NAME_TOOL} -add_rpath @executable_path/. ${bin})+ ${CMAKE_INSTALL_NAME_TOOL} -add_rpath @executable_path/. ${bin}+ )add_custom_command(TARGET OpenToonz_${VERSION}POST_BUILD COMMAND- ${CMAKE_INSTALL_NAME_TOOL} -add_rpath ${CMAKE_INSTALL_RPATH} ${bin})+ ${CMAKE_INSTALL_NAME_TOOL} -add_rpath ${CMAKE_INSTALL_RPATH} ${bin}+ )add_custom_command(TARGET OpenToonz_${VERSION} POST_BUILD COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/OpenToonz_${VERSION}.app/Contents/Resources)add_custom_command(TARGET OpenToonz_${VERSION} POST_BUILD COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/OpenToonz_${VERSION}.app/Contents/Resources)diff --git a/toonz/sources/toonzfarm/tfarm/CMakeLists.txt b/toonz/sources/toonzfarm/tfarm/CMakeLists.txtindex 458190511..099c5c1de 100644--- a/toonz/sources/toonzfarm/tfarm/CMakeLists.txt+++ b/toonz/sources/toonzfarm/tfarm/CMakeLists.txt@@ -6,7 +6,8 @@ set(HEADERS../include/tfarmproxy.h../../include/tfarmserver.h../../include/tfarmtask.h- ../include/tlog.h)+ ../include/tlog.h+)set(SOURCESservice.cpp@@ -18,7 +19,8 @@ set(SOURCEStfarmtask.cpptlog.cppttcpipclient.cpp- ttcpipserver.cpp)+ ttcpipserver.cpp+)add_library(tfarm SHARED ${HEADERS} ${SOURCES})add_definitions(@@ -39,16 +41,19 @@ include_directories(if(WIN32)set(EXTRA_LIBStnzcore tnzbase toonzlib- ws2_32.lib)+ ws2_32.lib+ )elseif(APPLE)set(EXTRA_LIBS${CMAKE_CURRENT_BINARY_DIR}/../../tnzcore/libtnzcore.dylib${CMAKE_CURRENT_BINARY_DIR}/../../tnzbase/libtnzbase.dylib- ${CMAKE_CURRENT_BINARY_DIR}/../../toonzlib/libtoonzlib.dylib)+ ${CMAKE_CURRENT_BINARY_DIR}/../../toonzlib/libtoonzlib.dylib+ )elseif(UNIX)_find_toonz_library(EXTRA_LIBS "tnzcore;tnzbase;toonzlib;tnzext")endif()target_link_libraries(tfarmQt5::Core Qt5::Gui Qt5::OpenGL Qt5::Network- ${GLUT_LIB} ${GL_LIB} ${EXTRA_LIBS})+ ${GLUT_LIB} ${GL_LIB} ${EXTRA_LIBS}+)diff --git a/toonz/sources/toonzfarm/tfarmcontroller/CMakeLists.txt b/toonz/sources/toonzfarm/tfarmcontroller/CMakeLists.txtindex 604062ff4..ca9e700b8 100644--- a/toonz/sources/toonzfarm/tfarmcontroller/CMakeLists.txt+++ b/toonz/sources/toonzfarm/tfarmcontroller/CMakeLists.txt@@ -3,8 +3,10 @@ include_directories()add_executable(tfarmcontroller- tfarmcontroller.cpp)+ tfarmcontroller.cpp+)target_link_libraries(tfarmcontrollerQt5::Core- tfarm)+ tfarm+)diff --git a/toonz/sources/toonzfarm/tfarmserver/CMakeLists.txt b/toonz/sources/toonzfarm/tfarmserver/CMakeLists.txtindex 80b1549a8..d4168e650 100644--- a/toonz/sources/toonzfarm/tfarmserver/CMakeLists.txt+++ b/toonz/sources/toonzfarm/tfarmserver/CMakeLists.txt@@ -3,8 +3,10 @@ include_directories()add_executable(tfarmserver- tfarmserver.cpp)+ tfarmserver.cpp+)target_link_libraries(tfarmserverQt5::Core- tfarm)+ tfarm+)diff --git a/toonz/sources/toonzlib/CMakeLists.txt b/toonz/sources/toonzlib/CMakeLists.txtindex 49e329df1..dbfb82664 100644--- a/toonz/sources/toonzlib/CMakeLists.txt+++ b/toonz/sources/toonzlib/CMakeLists.txt@@ -151,7 +151,8 @@ set(MOC_HEADERSsandor_fxs/YOMBInputParam.hsandor_fxs/YOMBParam.htexturemanager.h- imagebuilders.h)+ imagebuilders.h+)set(HEADERS ${MOC_HEADERS})@@ -308,11 +309,13 @@ set(SOURCEStbinarizer.cppplasticdeformerfx.cpptxshmeshcolumn.cpp- textureutils.cpp)+ textureutils.cpp+)if(WIN32)set(SOURCES ${SOURCES}- avicodecrestrictions.cpp)+ avicodecrestrictions.cpp+ )endif()add_translation(toonzlib ${HEADERS} ${SOURCES})@@ -343,13 +346,15 @@ if(WIN32)target_link_libraries(toonzlibQt5::Core Qt5::Gui Qt5::OpenGL Qt5::Script${GLUT_LIB} ${GL_LIB} vfw32.lib- tnzcore tnzbase tnzext)+ tnzcore tnzbase tnzext+ )elseif(APPLE)set(EXTRA_LIBS${CMAKE_CURRENT_BINARY_DIR}/../tnzcore/libtnzcore.dylib${CMAKE_CURRENT_BINARY_DIR}/../tnzbase/libtnzbase.dylib${CMAKE_CURRENT_BINARY_DIR}/../tnzext/libtnzext.dylib- ${USB_LIB})+ ${USB_LIB}+ )target_link_libraries(toonzlib Qt5::Core Qt5::Gui Qt5::OpenGL Qt5::Script ${GLUT_LIB} ${GL_LIB} ${EXTRA_LIBS})elseif(UNIX)diff --git a/toonz/sources/toonzqt/CMakeLists.txt b/toonz/sources/toonzqt/CMakeLists.txtindex 4a7d31e9a..9509daa1a 100644--- a/toonz/sources/toonzqt/CMakeLists.txt+++ b/toonz/sources/toonzqt/CMakeLists.txt@@ -86,7 +86,8 @@ set(MOC_HEADERS../include/toonzqt/flipconsoleowner.h../include/toonzqt/combohistogram.h../include/toonzqt/fxiconmanager.h- pluginhost.h)+ pluginhost.h+)set(HEADERS${MOC_HEADERS}@@ -95,7 +96,8 @@ set(HEADERStoonz_plugin.hplugin_tile_interface.hplugin_port_interface.h- plugin_fxnode_interface.h)+ plugin_fxnode_interface.h+)set(SOURCEScheckbox.cpp@@ -189,7 +191,8 @@ set(SOURCESplugin_param_interface.cppplugin_param_view_interface.cppplugin_ui_page_interface.cpp- toonz_params.cpp)+ toonz_params.cpp+)set(RESOURCES toonzqt.qrc)@@ -226,7 +229,8 @@ _find_toonz_library(EXTRA_LIBS "tnzcore;tnzbase;tnzext;toonzlib;sound")if(WIN32)set(EXTRA_LIBS ${EXTRA_LIBS}- advapi32.lib)+ advapi32.lib+ )endif()target_link_libraries(toonzqt Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Network Qt5::OpenGL ${EXTRA_LIBS} ${GL_LIB})