Merge remote-tracking branch 'public/release_candidate' into release
[CRYENGINE.git] / Tools / CMake / modules / FbxSdk.cmake
blobcdb5ac199baaf6335191222981610893f56adcc4
1 if(WINDOWS)
2         add_library(FbxSdk SHARED IMPORTED GLOBAL)
3         set_target_properties(FbxSdk PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${SDK_DIR}/FbxSdk/include")
4         set_target_properties(FbxSdk PROPERTIES INTERFACE_COMPILE_DEFINITIONS FBXSDK_NEW_API=1)
6         if (MSVC_VERSION GREATER 1900) # Visual Studio > 2015
7                 set(FBX_SUBFOLDER vs2015)
8         elseif (MSVC_VERSION EQUAL 1900) # Visual Studio 2015
9                 set(FBX_SUBFOLDER vs2015)
10         elseif (MSVC_VERSION EQUAL 1800) # Visual Studio 2013
11                 set(FBX_SUBFOLDER vs2013)
12         elseif (MSVC_VERSION EQUAL 1700) # Visual Studio 2012
13                 set(FBX_SUBFOLDER vs2012)
14         endif()
16         set_property(TARGET FbxSdk APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
17         set_target_properties(FbxSdk PROPERTIES
18                 IMPORTED_LOCATION_DEBUG "${SDK_DIR}/FbxSdk/lib/${FBX_SUBFOLDER}/x64/debug/libfbxsdk.dll"
19                 IMPORTED_IMPLIB_DEBUG "${SDK_DIR}/FbxSdk/lib/${FBX_SUBFOLDER}/x64/debug/libfbxsdk-md.lib")
21         set_property(TARGET FbxSdk APPEND PROPERTY IMPORTED_CONFIGURATIONS PROFILE)
22         set_target_properties(FbxSdk PROPERTIES
23                 IMPORTED_LOCATION_PROFILE "${SDK_DIR}/FbxSdk/lib/${FBX_SUBFOLDER}/x64/release/libfbxsdk.dll"
24                 IMPORTED_IMPLIB_PROFILE "${SDK_DIR}/FbxSdk/lib/${FBX_SUBFOLDER}/x64/release/libfbxsdk-md.lib")
26         set_property(TARGET FbxSdk APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
27         set_target_properties(FbxSdk PROPERTIES
28                 IMPORTED_LOCATION_RELEASE "${SDK_DIR}/FbxSdk/lib/${FBX_SUBFOLDER}/x64/release/libfbxsdk.dll"
29                 IMPORTED_IMPLIB_RELEASE "${SDK_DIR}/FbxSdk/lib/${FBX_SUBFOLDER}/x64/release/libfbxsdk-md.lib")
30 endif()