Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion applications/plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ if(SOFA_BUILD_TESTS OR SOFA_BUILD_RELEASE_PACKAGE)
sofa_add_subdirectory(plugin SofaTest SofaTest)
endif()

#Should be first to enable all CUDA based modules in plugins
sofa_add_subdirectory(plugin SofaCUDA SofaCUDA)

sofa_add_subdirectory(plugin CollisionOBBCapsule CollisionOBBCapsule)
sofa_add_subdirectory(plugin HeadlessRecorder HeadlessRecorder)

Expand Down Expand Up @@ -59,7 +62,6 @@ if((${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU") AND (${CMAKE_SYSTEM_NAME} MATCHES "
sofa_add_subdirectory(plugin SofaPardisoSolver SofaPardisoSolver) # SofaPardisoSolver is only available under linux with gcc
endif()

sofa_add_subdirectory(plugin SofaCUDA SofaCUDA)

sofa_find_package(Sofa.GL QUIET)
if(Sofa.GL_FOUND)
Expand Down
10 changes: 5 additions & 5 deletions applications/plugins/SofaCUDA/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,10 @@ if(Sofa.GUI_FOUND)
list(APPEND SOURCE_FILES ${SOFACUDACORE_SOURCE_DIR}/sofa/gpu/gui/CudaMouseInteraction.cpp)
endif()

sofa_find_package(Sofa.GUI.Qt QUIET)
if(Sofa.GUI.Qt_FOUND)
sofa_find_package(Sofa.Qt QUIET)
if(Sofa.Qt_FOUND)
list(APPEND HEADER_FILES ${SOFACUDACORE_SOURCE_DIR}/sofa/gpu/gui/CudaDataWidget.h)
list(APPEND SOURCE_FILES${SOFACUDACORE_SOURCE_DIR}/ sofa/gpu/gui/CudaDataWidget.cpp)
list(APPEND SOURCE_FILES ${SOFACUDACORE_SOURCE_DIR}/sofa/gpu/gui/CudaDataWidget.cpp)
endif()

sofa_find_package(SofaValidation QUIET)
Expand Down Expand Up @@ -388,8 +388,8 @@ if(Sofa.GUI_FOUND)
endif()


if(Sofa.GUI.Qt_FOUND)
target_link_libraries(${PROJECT_NAME} Sofa.GUI.Qt)
if(Sofa.Qt_FOUND)
target_link_libraries(${PROJECT_NAME} Sofa.Qt)
endif()

if(SofaValidation_FOUND)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
#include <sofa/gpu/gui/CudaDataWidget.h>
#include <sofa/gpu/cuda/CudaTypes.h>
#include <sofa/helper/Factory.inl>
#include <sofa/gui/qt/DataWidget.h>
#include <sofa/gui/qt/SimpleDataWidget.h>
#include <sofa/gui/qt/TableDataWidget.h>
#include <sofa/qt/DataWidget.h>
#include <sofa/qt/SimpleDataWidget.h>
#include <sofa/qt/TableDataWidget.h>

namespace sofa::gui::qt
namespace sofa::qt
{
using sofa::helper::Creator;
using namespace sofa::type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
******************************************************************************/
#pragma once
#include <sofa/gpu/cuda/CudaTypes.h>
#include <sofa/gui/qt/QModelViewTableDataContainer.h>
#include <sofa/qt/QModelViewTableDataContainer.h>

namespace sofa::gui::qt
namespace sofa::qt
{
////////////////////////////////////////////////////////////////
/// variable-sized vectors support
Expand Down