From b1119ff46586d83b5873683f26e48837f0712cb0 Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Wed, 21 Jun 2017 20:10:54 -0700 Subject: [PATCH] more changes to get oven building on Linux --- tools/oven/CMakeLists.txt | 15 ++++++++++++++- tools/oven/src/Oven.cpp | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/tools/oven/CMakeLists.txt b/tools/oven/CMakeLists.txt index 24c8a9a0e2..f4fca3304c 100644 --- a/tools/oven/CMakeLists.txt +++ b/tools/oven/CMakeLists.txt @@ -4,15 +4,28 @@ setup_hifi_project(Widgets Gui Concurrent) link_hifi_libraries(networking shared image gpu ktx) +setup_memory_debugger() + if (WIN32) package_libraries_for_deployment() endif () +if (UNIX) + find_package(Threads REQUIRED) + if(THREADS_HAVE_PTHREAD_ARG) + target_compile_options(PUBLIC oven "-pthread") + endif() +endif () + # try to find the FBX SDK but fail silently if we don't # because this tool is not built by default find_package(FBX) if (FBX_FOUND) - target_link_libraries(${TARGET_NAME} ${FBX_LIBRARIES}) + if (CMAKE_THREAD_LIBS_INIT) + target_link_libraries(${TARGET_NAME} ${FBX_LIBRARIES} "${CMAKE_THREAD_LIBS_INIT}") + else () + target_link_libraries(${TARGET_NAME} ${FBX_LIBRARIES}) + endif () target_include_directories(${TARGET_NAME} SYSTEM PRIVATE ${FBX_INCLUDE_DIR}) endif () diff --git a/tools/oven/src/Oven.cpp b/tools/oven/src/Oven.cpp index a38aaa2b97..dc763cc82d 100644 --- a/tools/oven/src/Oven.cpp +++ b/tools/oven/src/Oven.cpp @@ -18,7 +18,7 @@ #include "ui/OvenMainWindow.h" #include "Oven.h" -#include "BakerCli.h" +#include "BakerCLI.h" static const QString OUTPUT_FOLDER = "/Users/birarda/code/hifi/lod/test-oven/export";