From 5ac597c935c2830b3ecb1b9f25b65cd2fb6d498e Mon Sep 17 00:00:00 2001 From: svn Date: Thu, 31 Aug 2023 21:03:07 +0100 Subject: [PATCH] Add CMakeLists for cross platform FBXNative build --- AssetStudioCLI/AssetStudioCLI.csproj | 11 +++++++++++ AssetStudioFBXNative/CMakeLists.txt | 22 ++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 AssetStudioFBXNative/CMakeLists.txt diff --git a/AssetStudioCLI/AssetStudioCLI.csproj b/AssetStudioCLI/AssetStudioCLI.csproj index 326ad44a..05c1d90b 100644 --- a/AssetStudioCLI/AssetStudioCLI.csproj +++ b/AssetStudioCLI/AssetStudioCLI.csproj @@ -26,12 +26,16 @@ + + + + @@ -59,17 +63,20 @@ + + + @@ -77,21 +84,25 @@ + + + + diff --git a/AssetStudioFBXNative/CMakeLists.txt b/AssetStudioFBXNative/CMakeLists.txt new file mode 100644 index 00000000..f90011db --- /dev/null +++ b/AssetStudioFBXNative/CMakeLists.txt @@ -0,0 +1,22 @@ +# Set the minimum version of CMake that can be used +cmake_minimum_required (VERSION 3.8) + +# Set the project name +project("AssetStudioFBXNative") + +# Set the C++ standard to C++ 14 +set(CMAKE_CXX_STANDARD 14) + +# Generate the shared library from the library sources +add_library(AssetStudioFBXNative SHARED + asfbx_skin_context.cpp + asfbx_morph_context.cpp + api.cpp + utils.cpp + asfbx_context.cpp + asfbx_anim_context.cpp) + +# Add the given directories to those the compiler uses to search for include files +target_include_directories(AssetStudioFBXNative PRIVATE .) + +target_link_libraries(AssetStudioFBXNative PRIVATE fbxsdk xml2) \ No newline at end of file