Commit 028949ab authored by T.J. Corona's avatar T.J. Corona

smtkConfig.cmake.in: Fix CMake module path and add Qt dependency

parent a6f727b1
......@@ -21,7 +21,7 @@ if(IS_DIRECTORY "${smtk_module_dir}")
endif()
unset(smtk_module_dir)
set(smtk_cmake_dir ${CMAKE_CURRENT_LIST_DIR})
set(smtk_cmake_dir @SMTK_MODULE_DIR@)
#When building documentation internally we re-import ourselves, which
#doesnt work and generates CMake warnings. So we will only look for SMTK
......@@ -34,8 +34,14 @@ else()
find_package(nlohmann_json REQUIRED)
find_package(MOAB REQUIRED)
set(SMTK_ENABLE_QT_SUPPORT @SMTK_ENABLE_QT_SUPPORT@)
if(SMTK_ENABLE_QT_SUPPORT)
find_package(Qt5 REQUIRED COMPONENTS Core OpenGL Widgets)
endif()
set(SMTK_ENABLE_PARAVIEW_SUPPORT @SMTK_ENABLE_PARAVIEW_SUPPORT@)
if(SMTK_ENABLE_PARAVIEW_SUPPORT)
find_package(Qt5 REQUIRED COMPONENTS OpenGL)
find_package(ParaView)
endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment