<commit_before># Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

cmake_minimum_required (VERSION 3.0)
project (usd_from_gltf)

# We don't use Python in this tool, but when the USD library is built with
# PXR_PYTHON_SUPPORT_ENABLED it references it anyway.
find_package(Python COMPONENTS Development)
if (NOT Python_FOUND)
  message(FATAL_ERROR "Missing python libs.")
endif (NOT Python_FOUND)

set(USD_INCLUDE_DIRS
  "${USD_DIR}/include"
  "${USD_DIR}/include/boost-1_61"
# Visual Studio 2017 requires boost 1.65.1.
  "${USD_DIR}/include/boost-1_65_1"
  ${Python_INCLUDE_DIRS}
)

link_directories(
  "${USD_DIR}/lib"
  ${Python_LIBRARY_DIRS}
)

if (MSVC)
set(USD_LIBS
  gf.lib
  plug.lib
  sdf.lib
  tf.lib
  usd.lib
  usdGeom.lib
  usdShade.lib
  usdSkel.lib
  usdUtils.lib
  vt.lib
)
elseif (APPLE)
set(USD_LIBS
  ${Python_LIBRARIES}
  -lpthread
  "${USD_DIR}/lib/libboost_python.dylib"
  libgf.dylib
  libplug.dylib
  libsdf.dylib
  libtf.dylib
  libusd.dylib
  libusdGeom.dylib
  libusdShade.dylib
  libusdSkel.dylib
  libusdUtils.dylib
  libvt.dylib
)
else ()
set(USD_LIBS
  ${Python_LIBRARIES}
  -lpthread
  "${USD_DIR}/lib/libboost_python.so"
  libgf.so
  libplug.so
  libsdf.so
  libtf.so
  libusd.so
  libusdGeom.so
  libusdShade.so
  libusdSkel.so
  libusdUtils.so
  libvt.so
)
endif ()

if (MSVC)
add_compile_definitions(<commit_msg>Internal change<commit_after># Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

cmake_minimum_required (VERSION 3.0)
project (usd_from_gltf)

# We don't use Python in this tool, but when the USD library is built with
# PXR_PYTHON_SUPPORT_ENABLED it references it anyway.
if (EXISTS "${USD_DIR}/lib/python/")
  find_package(Python COMPONENTS Development)
  if (NOT Python_FOUND)
    message(FATAL_ERROR "Missing python libs.")
  endif (NOT Python_FOUND)
endif (EXISTS "${USD_DIR}/lib/python/")

set(USD_INCLUDE_DIRS
  "${USD_DIR}/include"
  "${USD_DIR}/include/boost-1_61"
# Visual Studio 2017 requires boost 1.65.1.
  "${USD_DIR}/include/boost-1_65_1"
  ${Python_INCLUDE_DIRS}
)

link_directories(
  "${USD_DIR}/lib"
  ${Python_LIBRARY_DIRS}
)

if (MSVC)
set(USD_LIBS
  gf.lib
  plug.lib
  sdf.lib
  tf.lib
  usd.lib
  usdGeom.lib
  usdShade.lib
  usdSkel.lib
  usdUtils.lib
  vt.lib
)
elseif (APPLE)
set(USD_LIBS
  ${Python_LIBRARIES}
  -lpthread
  libgf.dylib
  libplug.dylib
  libsdf.dylib
  libtf.dylib
  libusd.dylib
  libusdGeom.dylib
  libusdShade.dylib
  libusdSkel.dylib
  libusdUtils.dylib
  libvt.dylib
)
if (Python_FOUND)
  list(APPEND USD_LIBS "${USD_DIR}/lib/libboost_python.dylib")
endif (Python_FOUND)
else ()
set(USD_LIBS
  ${Python_LIBRARIES}
  -lpthread
  libgf.so
  libplug.so
  libsdf.so
  libtf.so
  libusd.so
  libusdGeom.so
  libusdShade.so
  libusdSkel.so
  libusdUtils.so
  libvt.so
)
if (Python_FOUND)
  list(APPEND USD_LIBS "${USD_DIR}/lib/libboost_python.so")
endif (Python_FOUND)
endif ()

if (MSVC)
add_compile_definitions(
{'fraction_non_alphanumeric': 0.0962268928842745, 'fraction_numerical': 0.012661433274246644, 'mean_word_length': 4.170157068062827, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2703000', 'n_tokens_mistral': 1592, 'n_tokens_neox': 1507, 'n_words': 384}