[F] Removed unneeded definitions.

[F] Add library for linker.
pull/972/head
Alexandr Arutjunov 2016-09-15 20:39:39 +03:00
parent 65048d1ef7
commit a9284e5a95
1 changed files with 1 additions and 5 deletions

View File

@ -739,12 +739,8 @@ FIND_PACKAGE(RT QUIET)
IF (RT_FOUND OR MSVC) IF (RT_FOUND OR MSVC)
SET( ASSIMP_IMPORTER_GLTF_USE_OPEN3DGC 1 ) SET( ASSIMP_IMPORTER_GLTF_USE_OPEN3DGC 1 )
ADD_DEFINITIONS( -DASSIMP_IMPORTER_GLTF_USE_OPEN3DGC=1 ) ADD_DEFINITIONS( -DASSIMP_IMPORTER_GLTF_USE_OPEN3DGC=1 )
IF (NOT RT_FOUND)
SET (RT_LIBRARY "")
ENDIF (NOT RT_FOUND)
ELSE () ELSE ()
SET (open3dgc_SRCS "") SET (open3dgc_SRCS "")
SET (RT_LIBRARY "")
MESSAGE (INFO " RT-extension not found. glTF import/export will be built without Open3DGC-compression.") MESSAGE (INFO " RT-extension not found. glTF import/export will be built without Open3DGC-compression.")
#!TODO: off course is better to remove statistics timers from o3dgc codec. Or propose to choose what to use. #!TODO: off course is better to remove statistics timers from o3dgc codec. Or propose to choose what to use.
ENDIF () ENDIF ()
@ -874,7 +870,7 @@ endif (UNZIP_FOUND)
# Add RT-extension library for glTF importer with Open3DGC-compression. # Add RT-extension library for glTF importer with Open3DGC-compression.
IF (RT_FOUND AND ASSIMP_IMPORTER_GLTF_USE_OPEN3DGC) IF (RT_FOUND AND ASSIMP_IMPORTER_GLTF_USE_OPEN3DGC)
SET_PROPERTY(TARGET assimp APPEND PROPERTY LINK_FLAGS ${RT_LIBRARY}) TARGET_LINK_LIBRARIES(assimp ${RT_LIBRARY})
ENDIF (RT_FOUND AND ASSIMP_IMPORTER_GLTF_USE_OPEN3DGC) ENDIF (RT_FOUND AND ASSIMP_IMPORTER_GLTF_USE_OPEN3DGC)
INSTALL( TARGETS assimp INSTALL( TARGETS assimp