Created
May 29, 2019 16:18
-
-
Save sneppy/51233b8c281f4d21f0ec23efb2f229ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Variables | |
# ^^^^^^^^^ | |
# FbxSdk_FOUND | |
# FbxSdk_INCLUDE_DIR | |
# FbxSdk_LIBRARIES | |
# Find root dir | |
find_path(FBXSDK_ROOT_DIR | |
NAMES | |
include/fbxsdk.h | |
) | |
# Set include directory | |
set(FBXSDK_INCLUDE_DIR ${FBXSDK_ROOT_DIR}/include) | |
# Set correct build type | |
if (CMAKE_SIZEOF_VOID_P EQUAL 8) | |
# 64-bit | |
set(BUILD_ARCHITECTURE x64) | |
else() | |
# 32-bit | |
set(BUILD_ARCHITECTURE x86) | |
endif() | |
# Find library | |
find_library(FBXSDK_LIBRARIES | |
NAMES | |
libfbxsdk.a | |
fbxsdk | |
PATHS | |
${FBXSDK_ROOT_DIR}/lib/gcc4/${BUILD_ARCHITECTURE}/debug | |
${FBXSDK_ROOT_DIR}/lib/gcc4/${BUILD_ARCHITECTURE}/release | |
) | |
message("Found FBXSDK: ${FBXSDK_LIBRARIES}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment