Skip to content

Commit

Permalink
tools: Remove lodviewer
Browse files Browse the repository at this point in the history
gltfpack support for simplification output supersedes this; lodviewer
didn't support a lot of features a full-fledged viewer would need
anyway.
  • Loading branch information
zeux committed May 14, 2020
1 parent 99e59d8 commit 1a90520
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 727 deletions.
21 changes: 0 additions & 21 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ project(meshoptimizer VERSION 0.14 LANGUAGES CXX)

option(MESHOPT_BUILD_DEMO "Build demo" OFF)
option(MESHOPT_BUILD_GLTFPACK "Build gltfpack" OFF)
option(MESHOPT_BUILD_TOOLS "Build tools" OFF)
option(MESHOPT_BUILD_SHARED_LIBS "Build shared libraries" OFF)
set(MESHOPT_BUILD_TOOLS_GLFW_FOLDER_NAME "" CACHE STRING "Custom folder to look for GLFW")

# add_library() needs BUILD_SHARED_LIBS set to decide between static and
# shared. This also sets it back to OFF in case parent project has
Expand Down Expand Up @@ -96,25 +94,6 @@ if(MESHOPT_BUILD_GLTFPACK)
endif()
endif()

if(MESHOPT_BUILD_TOOLS)
if(NOT (MESHOPT_BUILD_TOOLS_GLFW_FOLDER_NAME STREQUAL ""))
message(STATUS "Using GLFW3 from: ${MESHOPT_BUILD_TOOLS_GLFW_FOLDER_NAME}")
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "")
set(GLFW_BUILD_TESTS OFF CACHE BOOL "")
set(GLFW_BUILD_DOCS OFF CACHE BOOL "")
set(GLFW_INSTALL OFF CACHE BOOL "")
add_subdirectory(${MESHOPT_BUILD_TOOLS_GLFW_FOLDER_NAME})
set(glfw3_FOUND TRUE)
else()
find_package(glfw3 3.3 QUIET)
endif()

if (glfw3_FOUND)
add_executable(lodviewer tools/lodviewer.cpp tools/meshloader.cpp)
target_link_libraries(lodviewer glfw meshoptimizer)
endif()
endif()

include(GNUInstallDirs)

install(TARGETS ${TARGETS} EXPORT meshoptimizerTargets
Expand Down
Loading

0 comments on commit 1a90520

Please sign in to comment.