aboutsummaryrefslogtreecommitdiff
path: root/tools
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 /tools
parentBlast 1.1 release (windows / linux) (diff)
downloadblast-883afed713a7b6508c9847a1a3d7670811b43026.tar.xz
blast-883afed713a7b6508c9847a1a3d7670811b43026.zip
* fix .gitignore
* added missing cmake files
Diffstat (limited to 'tools')
-rw-r--r--tools/compiler/cmake/LegacyConverter.cmake63
-rw-r--r--tools/compiler/cmake/Windows/LegacyConverter.cmake22
2 files changed, 85 insertions, 0 deletions
diff --git a/tools/compiler/cmake/LegacyConverter.cmake b/tools/compiler/cmake/LegacyConverter.cmake
new file mode 100644
index 0000000..dde63d0
--- /dev/null
+++ b/tools/compiler/cmake/LegacyConverter.cmake
@@ -0,0 +1,63 @@
+#
+# Build LegacyConverter common
+#
+
+SET(LEGACYCONVERTER_SOURCE_DIR ${PROJECT_SOURCE_DIR}/LegacyConverter/src)
+
+FIND_PACKAGE(tclap $ENV{PM_tclap_VERSION} REQUIRED)
+FIND_PACKAGE(PhysXSDK $ENV{PM_PhysX_VERSION} REQUIRED)
+FIND_PACKAGE(PxSharedSDK $ENV{PM_PxShared_VERSION} REQUIRED)
+
+# Include here after the directories are defined so that the platform specific file can use the variables.
+include(${PROJECT_CMAKE_FILES_DIR}/${TARGET_BUILD_PLATFORM}/LegacyConverter.cmake)
+
+SET(COMMON_FILES
+ ${LEGACYCONVERTER_PLATFORM_COMMON_FILES}
+
+ ${LEGACYCONVERTER_SOURCE_DIR}/Main.cpp
+)
+
+ADD_EXECUTABLE(LegacyConverter
+ ${COMMON_FILES}
+)
+
+set_target_properties(LegacyConverter
+ PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX}
+ CHECKED_POSTFIX ${CMAKE_CHECKED_POSTFIX}
+ RELEASE_POSTFIX ${CMAKE_RELEASE_POSTFIX}
+ PROFILE_POSTFIX ${CMAKE_PROFILE_POSTFIX}
+)
+
+
+SOURCE_GROUP("src" FILES ${COMMON_FILES})
+
+# Target specific compile options
+
+TARGET_INCLUDE_DIRECTORIES(LegacyConverter
+ PRIVATE ${LEGACYCONVERTER_PLATFORM_INCLUDES}
+ PRIVATE ${PXSHAREDSDK_INCLUDE_DIRS}
+ PRIVATE ${BLAST_ROOT_DIR}/source/common
+
+ PRIVATE ${TCLAP_INCLUDE_DIRS}
+)
+
+TARGET_COMPILE_DEFINITIONS(LegacyConverter
+ PRIVATE ${LEGACYCONVERTER_COMPILE_DEFS}
+)
+
+SET_TARGET_PROPERTIES(LegacyConverter PROPERTIES
+ PDB_NAME_DEBUG "LegacyConverter${CMAKE_DEBUG_POSTFIX}"
+ PDB_NAME_CHECKED "LegacyConverter${CMAKE_CHECKED_POSTFIX}"
+ PDB_NAME_PROFILE "LegacyConverter${CMAKE_PROFILE_POSTFIX}"
+ PDB_NAME_RELEASE "LegacyConverter${CMAKE_RELEASE_POSTFIX}"
+)
+
+# Do final direct sets after the target has been defined
+TARGET_LINK_LIBRARIES(LegacyConverter NvBlast NvBlastTk NvBlastExtPhysX NvBlastExtImport NvBlastExtExporter NvBlastExtSerialization NvBlastExtTkSerialization NvBlastExtPxSerialization)
+
+
+ADD_CUSTOM_COMMAND(TARGET LegacyConverter POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy_if_different
+ ${PHYSXSDK_DLLS} ${PXSHAREDSDK_DLLS}
+ ${BL_EXE_OUTPUT_DIR}
+)
diff --git a/tools/compiler/cmake/Windows/LegacyConverter.cmake b/tools/compiler/cmake/Windows/LegacyConverter.cmake
new file mode 100644
index 0000000..1a99def
--- /dev/null
+++ b/tools/compiler/cmake/Windows/LegacyConverter.cmake
@@ -0,0 +1,22 @@
+#
+# Build LegacyConverter Windows
+#
+
+SET(LEGACYCONVERTER_PLATFORM_COMMON_FILES
+)
+
+SET(LEGACYCONVERTER_PLATFORM_INCLUDES
+)
+
+SET(LEGACYCONVERTER_COMPILE_DEFS
+ # Common to all configurations
+ ${BLASTTOOLS_SLN_COMPILE_DEFS};_CONSOLE
+
+ $<$<CONFIG:debug>:${BLASTTOOLS_SLN_DEBUG_COMPILE_DEFS}>
+ $<$<CONFIG:checked>:${BLASTTOOLS_SLN_CHECKED_COMPILE_DEFS}>
+ $<$<CONFIG:profile>:${BLASTTOOLS_SLN_PROFILE_COMPILE_DEFS}>
+ $<$<CONFIG:release>:${BLASTTOOLS_SLN_RELEASE_COMPILE_DEFS}>
+)
+
+#TARGET_LINK_LIBRARIES(NvBlast PUBLIC ${NVTOOLSEXT_LIBRARIES})
+#SET_TARGET_PROPERTIES(NvBlast PROPERTIES LINK_FLAGS "/MAP" )