From de70f5c028820a6c61c0dc0f7dd7e7d474c90014 Mon Sep 17 00:00:00 2001 From: Alexandr Arutjunov Date: Sat, 13 Aug 2016 17:44:58 +0300 Subject: [PATCH] [+] Added link to RT library when using Open3DGC-compression. --- code/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt index 23456d1..44336b0 100644 --- a/code/CMakeLists.txt +++ b/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 ) -- 2.7.4