linux meshoptimizer fix
This commit is contained in:
@@ -34,6 +34,8 @@ set (SOURCE_FILES
|
||||
xatlas.cpp
|
||||
)
|
||||
|
||||
add_subdirectory(meshoptimizer)
|
||||
|
||||
if (WIN32)
|
||||
list (APPEND SOURCE_FILES
|
||||
Editor.rc
|
||||
@@ -42,7 +44,8 @@ if (WIN32)
|
||||
add_executable(WickedEngineEditor WIN32 ${SOURCE_FILES})
|
||||
|
||||
target_link_libraries(WickedEngineEditor PUBLIC
|
||||
WickedEngine_Windows
|
||||
WickedEngine_Windows
|
||||
meshoptimizer
|
||||
)
|
||||
|
||||
set_property(TARGET WickedEngineEditor PROPERTY VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
@@ -52,6 +55,7 @@ else ()
|
||||
target_link_libraries(WickedEngineEditor PUBLIC
|
||||
WickedEngine
|
||||
Threads::Threads
|
||||
meshoptimizer
|
||||
)
|
||||
|
||||
# Copy shaders to build and source folders just to be safe:
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
set (SOURCE_FILES
|
||||
allocator.cpp
|
||||
clusterizer.cpp
|
||||
indexcodec.cpp
|
||||
indexgenerator.cpp
|
||||
overdrawanalyzer.cpp
|
||||
overdrawoptimizer.cpp
|
||||
simplifier.cpp
|
||||
spatialorder.cpp
|
||||
stripifier.cpp
|
||||
vcacheanalyzer.cpp
|
||||
vcacheoptimizer.cpp
|
||||
vertexcodec.cpp
|
||||
vertexfilter.cpp
|
||||
vfetchanalyzer.cpp
|
||||
vfetchoptimizer.cpp
|
||||
)
|
||||
|
||||
add_library(meshoptimizer STATIC ${SOURCE_FILES})
|
||||
Reference in New Issue
Block a user