aboutsummaryrefslogtreecommitdiff
path: root/NvCloth/compiler/cmake/ios/NvCloth.cmake
diff options
context:
space:
mode:
authorMarijn Tamis <[email protected]>2018-05-03 18:22:48 +0200
committerMarijn Tamis <[email protected]>2018-05-03 18:22:48 +0200
commitca32c59a58d37c1822e185a2d5f3d0d3e8943593 (patch)
treeb06b9eec03f34344ef8fc31aa147b2714d3962ee /NvCloth/compiler/cmake/ios/NvCloth.cmake
parentForced rename of platform folders in cmake dir. Git didn't pick this up before. (diff)
downloadnvcloth-ca32c59a58d37c1822e185a2d5f3d0d3e8943593.tar.xz
nvcloth-ca32c59a58d37c1822e185a2d5f3d0d3e8943593.zip
NvCloth 1.1.4 Release. (24070740)
Diffstat (limited to 'NvCloth/compiler/cmake/ios/NvCloth.cmake')
-rw-r--r--NvCloth/compiler/cmake/ios/NvCloth.cmake59
1 files changed, 59 insertions, 0 deletions
diff --git a/NvCloth/compiler/cmake/ios/NvCloth.cmake b/NvCloth/compiler/cmake/ios/NvCloth.cmake
new file mode 100644
index 0000000..e837e4a
--- /dev/null
+++ b/NvCloth/compiler/cmake/ios/NvCloth.cmake
@@ -0,0 +1,59 @@
+#
+# Build NvCloth (PROJECT not SOLUTION)
+#
+
+MESSAGE("[NvCloth]cmake/ios/NvCloth.cmake")
+
+SET(GW_DEPS_ROOT $ENV{GW_DEPS_ROOT})
+FIND_PACKAGE(PxShared REQUIRED)
+
+
+#FIND_PACKAGE(nvToolsExt REQUIRED)
+
+SET(NVCLOTH_PLATFORM_INCLUDES
+ ${NVTOOLSEXT_INCLUDE_DIRS}
+)
+
+SET(NVCLOTH_PLATFORM_SOURCE_FILES
+ #${PROJECT_ROOT_DIR}/src/neon/NeonCollision.cpp
+ #${PROJECT_ROOT_DIR}/src/neon/NeonSelfCollision.cpp
+ #${PROJECT_ROOT_DIR}/src/neon/NeonSolverKernel.cpp
+ #${PROJECT_ROOT_DIR}/src/neon/SwCollisionHelpers.h
+)
+
+# Use generator expressions to set config specific preprocessor definitions
+SET(NVCLOTH_COMPILE_DEFS
+ NV_CLOTH_IMPORT=PX_DLL_EXPORT
+ NV_CLOTH_ENABLE_DX11=0
+ NV_CLOTH_ENABLE_CUDA=0
+
+ # Common to all configurations
+ ${PHYSX_IOS_COMPILE_DEFS};PX_PHYSX_CORE_EXPORTS
+
+ $<$<CONFIG:debug>:${PHYSX_IOS_DEBUG_COMPILE_DEFS};PX_PHYSX_DLL_NAME_POSTFIX=DEBUG;>
+ $<$<CONFIG:checked>:${PHYSX_IOS_CHECKED_COMPILE_DEFS};PX_PHYSX_DLL_NAME_POSTFIX=CHECKED;>
+ $<$<CONFIG:profile>:${PHYSX_IOS_PROFILE_COMPILE_DEFS};PX_PHYSX_DLL_NAME_POSTFIX=PROFILE;>
+ $<$<CONFIG:release>:${PHYSX_IOS_RELEASE_COMPILE_DEFS};>
+)
+
+SET(NVCLOTH_LIBTYPE STATIC)
+
+# include common PhysX settings
+INCLUDE(../common/NvCloth.cmake)
+
+
+# Add linked libraries
+# TARGET_LINK_LIBRARIES(NvCloth PUBLIC ${NVTOOLSEXT_LIBRARIES} LowLevel LowLevelAABB LowLevelCloth LowLevelDynamics LowLevelParticles PhysXCommon PhysXGpu PxFoundation PxPvdSDK PxTask SceneQuery SimulationController)
+
+TARGET_LINK_LIBRARIES(NvCloth PUBLIC PxFoundation)
+
+SET_TARGET_PROPERTIES(NvCloth PROPERTIES
+ LINK_FLAGS_DEBUG ""
+ LINK_FLAGS_CHECKED ""
+ LINK_FLAGS_PROFILE ""
+ LINK_FLAGS_RELEASE ""
+)
+
+# enable -fPIC so we can link static libs with the editor
+SET_TARGET_PROPERTIES(NvCloth PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
+MESSAGE("[NvCloth]cmake/ios/NvCloth.cmake END")