aboutsummaryrefslogtreecommitdiff
path: root/NvCloth/compiler/cmake/mac/NvCloth.cmake
diff options
context:
space:
mode:
authorMarijn Tamis <[email protected]>2018-01-09 17:11:34 +0100
committerMarijn Tamis <[email protected]>2018-01-09 17:11:34 +0100
commit95c45778e80cefbb600d5795dfef3403a54ad6a4 (patch)
tree631cf95265e91fb8fc4eb451b9d7d047892fbdd6 /NvCloth/compiler/cmake/mac/NvCloth.cmake
parentNvCloth 1.1.3 Release. (23014067) (diff)
downloadnvcloth-95c45778e80cefbb600d5795dfef3403a54ad6a4.tar.xz
nvcloth-95c45778e80cefbb600d5795dfef3403a54ad6a4.zip
Forced rename of platform folders in cmake dir. Git didn't pick this up before.
Diffstat (limited to 'NvCloth/compiler/cmake/mac/NvCloth.cmake')
-rw-r--r--NvCloth/compiler/cmake/mac/NvCloth.cmake59
1 files changed, 59 insertions, 0 deletions
diff --git a/NvCloth/compiler/cmake/mac/NvCloth.cmake b/NvCloth/compiler/cmake/mac/NvCloth.cmake
new file mode 100644
index 0000000..faea6fd
--- /dev/null
+++ b/NvCloth/compiler/cmake/mac/NvCloth.cmake
@@ -0,0 +1,59 @@
+#
+# Build NvCloth (PROJECT not SOLUTION)
+#
+
+MESSAGE("[NvCloth]cmake/mac/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_MAC_COMPILE_DEFS};PX_PHYSX_CORE_EXPORTS
+
+ $<$<CONFIG:debug>:${PHYSX_MAC_DEBUG_COMPILE_DEFS};PX_PHYSX_DLL_NAME_POSTFIX=DEBUG;>
+ $<$<CONFIG:checked>:${PHYSX_MAC_CHECKED_COMPILE_DEFS};PX_PHYSX_DLL_NAME_POSTFIX=CHECKED;>
+ $<$<CONFIG:profile>:${PHYSX_MAC_PROFILE_COMPILE_DEFS};PX_PHYSX_DLL_NAME_POSTFIX=PROFILE;>
+ $<$<CONFIG:release>:${PHYSX_MAC_RELEASE_COMPILE_DEFS};>
+)
+
+SET(NVCLOTH_LIBTYPE SHARED)
+
+# 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/mac/NvCloth.cmake END") \ No newline at end of file