Explorar o código

[+] Added link to RT library when using Open3DGC-compression.

Alexandr Arutjunov %!s(int64=9) %!d(string=hai) anos
pai
achega
de70f5c028
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      code/CMakeLists.txt

+ 5 - 1
code/CMakeLists.txt

@@ -1,4 +1,4 @@
-# Open Asset Import Library (assimp)
+# Open Asset Import Library (assimp)
 # ----------------------------------------------------------------------
 #
 # Copyright (c) 2006-2016, assimp team
@@ -767,6 +767,10 @@ SET( assimp_src
 )
 ADD_DEFINITIONS( -DOPENDDLPARSER_BUILD )
 
+if (open3dgc_SRCS)
+	SET(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -lrt")
+endif (open3dgc_SRCS)
+
 INCLUDE_DIRECTORIES(
   ../contrib/openddlparser/include
 )