改进
This commit is contained in:
@@ -26,7 +26,11 @@ if (@RENDERIVE_INSTALL_3D@)
|
||||
find_dependency(tinyobjloader CONFIG)
|
||||
find_dependency(ZLIB)
|
||||
if (WIN32)
|
||||
set(_Renderive_saved_module_path "${CMAKE_MODULE_PATH}")
|
||||
list(PREPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/modules")
|
||||
find_dependency(PThreads4W)
|
||||
set(CMAKE_MODULE_PATH "${_Renderive_saved_module_path}")
|
||||
unset(_Renderive_saved_module_path)
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
|
||||
@@ -34,6 +34,12 @@ install(FILES
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/RenderiveConfigVersion.cmake"
|
||||
DESTINATION "${Renderive_install_cmake_dir}")
|
||||
|
||||
if (RENDERIVE_INSTALL_3D AND WIN32)
|
||||
install(FILES
|
||||
"${PROJECT_SOURCE_DIR}/render_3D/cmake/module/FindPThreads4W.cmake"
|
||||
DESTINATION "${Renderive_install_cmake_dir}/modules")
|
||||
endif ()
|
||||
|
||||
if (RENDERIVE_INSTALL_QT)
|
||||
install(FILES "${PROJECT_SOURCE_DIR}/export.h"
|
||||
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
||||
|
||||
Reference in New Issue
Block a user