aboutsummaryrefslogtreecommitdiff
path: root/sdk/compiler/cmake/linux
diff options
context:
space:
mode:
authorAnton Novoselov <[email protected]>2017-08-01 13:20:34 +0300
committerAnton Novoselov <[email protected]>2017-08-01 13:20:34 +0300
commit883afed713a7b6508c9847a1a3d7670811b43026 (patch)
treea58d155fc9422e836d8b33ee39880dc1491f7828 /sdk/compiler/cmake/linux
parentBlast 1.1 release (windows / linux) (diff)
downloadblast-883afed713a7b6508c9847a1a3d7670811b43026.tar.xz
blast-883afed713a7b6508c9847a1a3d7670811b43026.zip
* fix .gitignore
* added missing cmake files
Diffstat (limited to 'sdk/compiler/cmake/linux')
-rw-r--r--sdk/compiler/cmake/linux/NvBlastExtAssetUtils.cmake27
-rw-r--r--sdk/compiler/cmake/linux/NvBlastExtPxSerialization.cmake29
-rw-r--r--sdk/compiler/cmake/linux/NvBlastExtStress.cmake11
-rw-r--r--sdk/compiler/cmake/linux/NvBlastExtTkSerialization.cmake27
-rw-r--r--sdk/compiler/cmake/linux/NvBlastGlobals.cmake15
5 files changed, 109 insertions, 0 deletions
diff --git a/sdk/compiler/cmake/linux/NvBlastExtAssetUtils.cmake b/sdk/compiler/cmake/linux/NvBlastExtAssetUtils.cmake
new file mode 100644
index 0000000..71ff1aa
--- /dev/null
+++ b/sdk/compiler/cmake/linux/NvBlastExtAssetUtils.cmake
@@ -0,0 +1,27 @@
+#
+# Build NvBlastExtAssetUtils Windows
+#
+
+SET(BLASTEXTASSETUTILS_PLATFORM_COMMON_FILES
+# No Linux counterpart
+# ${COMMON_SOURCE_DIR}/NvBlastIncludeWindows.h
+)
+
+SET(BLASTEXTASSETUTILS_PLATFORM_INCLUDES
+)
+
+SET(BLASTEXTASSETUTILS_COMPILE_DEFS
+ # Common to all configurations
+ ${BLAST_SLN_COMPILE_DEFS};_CONSOLE;
+
+ $<$<CONFIG:debug>:${BLAST_SLN_DEBUG_COMPILE_DEFS}>
+ $<$<CONFIG:checked>:${BLAST_SLN_CHECKED_COMPILE_DEFS}>
+ $<$<CONFIG:profile>:${BLAST_SLN_PROFILE_COMPILE_DEFS}>
+ $<$<CONFIG:release>:${BLAST_SLN_RELEASE_COMPILE_DEFS}>
+)
+
+SET(BLASTEXTASSETUTILS_LIB_TYPE SHARED)
+
+
+SET(BLASTEXTASSETUTILS_COMPILE_OPTIONS "")
+
diff --git a/sdk/compiler/cmake/linux/NvBlastExtPxSerialization.cmake b/sdk/compiler/cmake/linux/NvBlastExtPxSerialization.cmake
new file mode 100644
index 0000000..8507ea2
--- /dev/null
+++ b/sdk/compiler/cmake/linux/NvBlastExtPxSerialization.cmake
@@ -0,0 +1,29 @@
+#
+# Build NvBlastExtPxSerialization Linux
+#
+
+SET(BLASTEXTPXSERIALIZATION_PLATFORM_COMMON_FILES
+)
+
+SET(BLASTEXTPXSERIALIZATION_PLATFORM_INCLUDES
+)
+
+SET(BLASTEXTPXSERIALIZATION_COMPILE_DEFS
+ # Common to all configurations
+ ${BLAST_SLN_COMPILE_DEFS};
+
+ $<$<CONFIG:debug>:${BLAST_SLN_DEBUG_COMPILE_DEFS}>
+ $<$<CONFIG:checked>:${BLAST_SLN_CHECKED_COMPILE_DEFS}>
+ $<$<CONFIG:profile>:${BLAST_SLN_PROFILE_COMPILE_DEFS}>
+ $<$<CONFIG:release>:${BLAST_SLN_RELEASE_COMPILE_DEFS}>
+)
+
+SET(BLASTEXTPXSERIALIZATION_LIB_TYPE SHARED)
+
+IF (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+ SET(BLASTEXTPXSERIALIZATION_COMPILE_OPTIONS "-Wno-sign-compare")
+ELSE()
+ SET(BLASTEXTPXSERIALIZATION_COMPILE_OPTIONS "-Wno-sign-compare" "-Wno-return-type-c-linkage" "-Wno-unused-parameter")
+ENDIF()
+
+
diff --git a/sdk/compiler/cmake/linux/NvBlastExtStress.cmake b/sdk/compiler/cmake/linux/NvBlastExtStress.cmake
new file mode 100644
index 0000000..96fe6a0
--- /dev/null
+++ b/sdk/compiler/cmake/linux/NvBlastExtStress.cmake
@@ -0,0 +1,11 @@
+#
+# Build NvBlast Linux
+#
+
+SET(BLASTTK_LIBTYPE SHARED)
+
+IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+ SET(BLASTEXTSTRESS_PLATFORM_COMPILE_OPTIONS "-Wno-return-type-c-linkage" "-pedantic")
+ELSE()
+ SET(BLASTEXTSTRESS_PLATFORM_COMPILE_OPTIONS "-pedantic")
+ENDIF()
diff --git a/sdk/compiler/cmake/linux/NvBlastExtTkSerialization.cmake b/sdk/compiler/cmake/linux/NvBlastExtTkSerialization.cmake
new file mode 100644
index 0000000..12ade81
--- /dev/null
+++ b/sdk/compiler/cmake/linux/NvBlastExtTkSerialization.cmake
@@ -0,0 +1,27 @@
+#
+# Build NvBlastExtTkSerialization Linux
+#
+
+SET(BLASTEXTTKSERIALIZATION_PLATFORM_COMMON_FILES
+)
+
+SET(BLASTEXTTKSERIALIZATION_PLATFORM_INCLUDES
+)
+
+SET(BLASTEXTTKSERIALIZATION_COMPILE_DEFS
+ # Common to all configurations
+ ${BLAST_SLN_COMPILE_DEFS};
+
+ $<$<CONFIG:debug>:${BLAST_SLN_DEBUG_COMPILE_DEFS}>
+ $<$<CONFIG:checked>:${BLAST_SLN_CHECKED_COMPILE_DEFS}>
+ $<$<CONFIG:profile>:${BLAST_SLN_PROFILE_COMPILE_DEFS}>
+ $<$<CONFIG:release>:${BLAST_SLN_RELEASE_COMPILE_DEFS}>
+)
+
+SET(BLASTEXTTKSERIALIZATION_LIB_TYPE SHARED)
+
+IF (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+ SET(BLASTEXTTKSERIALIZATION_COMPILE_OPTIONS "-Wno-sign-compare")
+ELSE()
+ SET(BLASTEXTTKSERIALIZATION_COMPILE_OPTIONS "-Wno-sign-compare" "-Wno-return-type-c-linkage" "-Wno-unused-parameter")
+ENDIF()
diff --git a/sdk/compiler/cmake/linux/NvBlastGlobals.cmake b/sdk/compiler/cmake/linux/NvBlastGlobals.cmake
new file mode 100644
index 0000000..163d4b9
--- /dev/null
+++ b/sdk/compiler/cmake/linux/NvBlastGlobals.cmake
@@ -0,0 +1,15 @@
+#
+# Build NvBlastGlobals Linux
+#
+
+SET(BLASTGLOBALS_COMPILE_DEFS
+ # Common to all configurations
+ ${BLAST_SLN_COMPILE_DEFS};
+
+ $<$<CONFIG:debug>:${BLAST_SLN_DEBUG_COMPILE_DEFS}>
+ $<$<CONFIG:checked>:${BLAST_SLN_CHECKED_COMPILE_DEFS}>
+ $<$<CONFIG:profile>:${BLAST_SLN_PROFILE_COMPILE_DEFS}>
+ $<$<CONFIG:release>:${BLAST_SLN_RELEASE_COMPILE_DEFS}>
+)
+
+SET(BLASTGLOBALS_PLATFORM_COMPILE_OPTIONS "-pedantic") \ No newline at end of file