From 6a6ccb26ec4ba0224361c2a35167214ba70a8ae9 Mon Sep 17 00:00:00 2001 From: Phillip Thomas Date: Sun, 1 Mar 2020 16:16:54 +0100 Subject: Build: show draco library under extern folder in Visual Studio And other code tweaks to make this library more consistent with others. Differential Revision: https://developer.blender.org/D6864 --- extern/draco/CMakeLists.txt | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'extern') diff --git a/extern/draco/CMakeLists.txt b/extern/draco/CMakeLists.txt index 1355766960a..a3f9a8b9561 100644 --- a/extern/draco/CMakeLists.txt +++ b/extern/draco/CMakeLists.txt @@ -24,6 +24,21 @@ set(CMAKE_CXX_STANDARD 14) add_subdirectory(dracoenc) # Build blender-draco-exporter module. -add_library(extern_draco SHARED src/draco-compressor.cpp src/draco-compressor.h) -target_include_directories(extern_draco PUBLIC dracoenc/src) -target_link_libraries(extern_draco PUBLIC dracoenc) +set(SRC + src/draco-compressor.cpp + src/draco-compressor.h +) + +set(INC + dracoenc/src +) + +set(LIB + dracoenc +) + +add_library(extern_draco SHARED "${SRC}") +target_include_directories(extern_draco PUBLIC "${INC}") +target_link_libraries(extern_draco PUBLIC "${LIB}") + +blender_source_group(extern_draco "${SRC}") -- cgit v1.2.3