cmake_minimum_required(VERSION 3.9) include(../../../cmake/maya_globals.cmake) project(MASH) set(SOURCE_FILES ffft/Array.h ffft/Array.hpp ffft/def.h ffft/DynArray.h ffft/DynArray.hpp ffft/FFTReal.h ffft/FFTReal.hpp ffft/FFTRealFixLen.h ffft/FFTRealFixLen.hpp ffft/FFTRealFixLenParam.h ffft/FFTRealPassDirect.h ffft/FFTRealPassDirect.hpp ffft/FFTRealPassInverse.h ffft/FFTRealPassInverse.hpp ffft/FFTRealSelect.h ffft/FFTRealSelect.hpp ffft/FFTRealUseTrigo.h ffft/FFTRealUseTrigo.hpp ffft/OscSinCos.h ffft/OscSinCos.hpp audio.cpp audio.h baseNode.cpp baseNode.h blendMeshDeformer.cpp blendMeshDeformer.h bulletOverride.cpp bulletOverride.hpp bulletSolverNode.cpp bulletSolverNode.h bulletSolverNodeInitialize.cpp BulletWorld.cpp BulletWorld.hpp channelRandomNode.cpp channelRandomNode.h cipCounter.cpp cipCounter.h colourNode.cpp colourNode.h constraintNode.cpp constraintNode.h curve.cpp curve.h deformer.cpp deformer.h delay.cpp delay.h distribute.cpp distribute.h dynamicShellDeformer.cpp dynamicShellDeformer.h dynamicsNode.cpp dynamicsNode.h dynamicsUtilities.cpp dynamicsUtilities.hpp dynInitialStateNode.cpp dynInitialStateNode.h explode.cpp explode.h falloff.cpp falloff.h falloffDrawOverride.cpp falloffDrawOverride.h FileRead.cpp FileRead.h Filter.h flightDrawOverride.cpp flightDrawOverride.h flightLN.cpp flightLN.h guide.cpp guide.h id.cpp id.h Iir.cpp Iir.h inheritance.cpp inheritance.h initialState.cpp initialState.h InstancedObjectsData.h jiggleDeformer.cpp jiggleDeformer.h kernels.h legacyConversionNode.cpp legacyConversionNode.h mash_math.h MASH_Repro.cpp MASH_Repro.h MASH_ReproCmd.h MASH_RerpoCmd.cpp MASHStrings.h mashUtils.cpp mashUtils.h maths.cpp maths.h MCAudio.cpp MCAudio.h MCCacheData.cpp MCCacheData.h MCClosestPoint.cpp MCClosestPoint.h MCCurveData.cpp MCCurveData.h MCData.cpp MCData.h MCDynamicsHelper.cpp MCDynamicsHelper.hpp MCEcosystem.cpp MCEcosystem.hpp MCExtract.cpp MCExtract.h MCFalloff.cpp MCFalloff.h MCFlocking.cpp MCFlocking.h MCInitialState.cpp MCInitialState.h MCLegacy.cpp MCLegacy.h MCMeshPlacement.cpp MCMeshPlacement.h MCNearestNeighbours.cpp MCNearestNeighbours.h MCPacking.cpp MCPacking.h MCPaintEffects.cpp MCPaintEffects.h MCSavedData.cpp MCSavedData.h MCSmoothing.cpp MCSmoothing.h MCStrength.cpp MCStrength.h merge.cpp merge.h meshFromPointsCmd.cpp meshFromPointsCmd.h muBreakoutNode.cpp muBreakoutNode.h multiCurve.cpp multiCurve.h mute.cpp mute.h nanoflann.hpp noise.cpp noise.h offset.cpp offset.h orient.cpp orient.h paintPointsTool.cpp paintPointsTool.h pfxToArray.cpp pfxToArray.h placerNode.cpp placerNode.h pluginMain.cpp pointCloudInfoCmd.cpp pointCloudInfoCmd.h points.cpp points.h pointsDrawOverride.cpp pointsDrawOverride.h pointsToCurve.cpp pointsToCurve.hpp pythonNode.cpp pythonNode.h random.cpp random.h replicator.cpp replicator.h reproComputeMesh.cpp reproComputeMesh.hpp reproGetMesh.cpp reproGetMesh.hpp setInitialStateCmd.cpp setInitialStateCmd.h signalNode.cpp signalNode.h simplexnoise.cpp simplexnoise.h spring.cpp spring.h srdnoise23.h Stk.cpp Stk.h strengthNode.cpp strengthNode.h symmetry.cpp symmetry.h threeDFont.cpp threeDFont.h threeDFontOverride.cpp threeDFontOverride.hpp timeNode.cpp timeNode.h trailsNode.cpp trailsNode.h transform.cpp transform.h trigonometry.cpp trigonometry.h uiDrawManagerData.h visibility.cpp visibility.h voxelise_helper.cpp voxelise_helper.h voxelise_tribox.cpp voxelise_tribox.h waiter.cpp waiter.h worldNode.cpp worldNode.h MCCallback.h MCCallback.cpp MCRandomProbability.cpp MCRandomProbability.h) # Bullet set(BULLET_INCLUDE_DIR ${AWM_INCLUDES}/Plugins) set(BULLET_BIN ${AWM_EXT_LIB}) if(WIN32) #Windows set(BULLET_LIBRARIES BulletCollision.lib BulletDynamics.lib LinearMath.lib) elseif(APPLE) #Apple set(BULLET_LIBRARIES libBulletCollision.a libBulletDynamics.a libLinearMath.a) else() #linux find_package(Bullet REQUIRED) endIf() find_qt() find_tbb() find_package(OpenGL REQUIRED) find_package(OpenCL REQUIRED) set(INCLUDE_DIRS ${QT5_INCLUDES} ${BULLET_INCLUDE_DIR}) set(LIBRARY_DIRS ${BULLET_BIN}) set(LIBRARIES ${OPENGL_LIBRARIES} ${TBB_LIBRARIES} ${BULLET_LIBRARIES} Qt5Core Qt5Gui Qt5Widgets) set(LIBRARY_OUTPUT_PATH ${AWM_RUNTIME}/plug-ins/MASH/plug-ins) BUILD_PLUGIN()