Skip to content

Commit 282d423

Browse files
bakpaulhugtalbot
andauthored
[SofaCUDA] Reorder inclusion of SofaCUDA plugin and fix name of Sofa.Qt target (#5509)
* Reoder inclusion of SofaCUDA plugin and fix name of Sofa.Qt target * Fix includes and namespaces * Fix missing --------- Co-authored-by: Hugo <hugo.talbot@sofa-framework.org>
1 parent 1a38648 commit 282d423

4 files changed

Lines changed: 14 additions & 12 deletions

File tree

applications/plugins/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ if(SOFA_BUILD_TESTS OR SOFA_BUILD_RELEASE_PACKAGE)
77
sofa_add_subdirectory(plugin SofaTest SofaTest)
88
endif()
99

10+
#Should be first to enable all CUDA based modules in plugins
11+
sofa_add_subdirectory(plugin SofaCUDA SofaCUDA)
12+
1013
sofa_add_subdirectory(plugin CollisionOBBCapsule CollisionOBBCapsule)
1114
sofa_add_subdirectory(plugin HeadlessRecorder HeadlessRecorder)
1215

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

62-
sofa_add_subdirectory(plugin SofaCUDA SofaCUDA)
6365

6466
sofa_find_package(Sofa.GL QUIET)
6567
if(Sofa.GL_FOUND)

applications/plugins/SofaCUDA/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,10 @@ if(Sofa.GUI_FOUND)
283283
list(APPEND SOURCE_FILES ${SOFACUDACORE_SOURCE_DIR}/sofa/gpu/gui/CudaMouseInteraction.cpp)
284284
endif()
285285

286-
sofa_find_package(Sofa.GUI.Qt QUIET)
287-
if(Sofa.GUI.Qt_FOUND)
286+
sofa_find_package(Sofa.Qt QUIET)
287+
if(Sofa.Qt_FOUND)
288288
list(APPEND HEADER_FILES ${SOFACUDACORE_SOURCE_DIR}/sofa/gpu/gui/CudaDataWidget.h)
289-
list(APPEND SOURCE_FILES${SOFACUDACORE_SOURCE_DIR}/ sofa/gpu/gui/CudaDataWidget.cpp)
289+
list(APPEND SOURCE_FILES ${SOFACUDACORE_SOURCE_DIR}/sofa/gpu/gui/CudaDataWidget.cpp)
290290
endif()
291291

292292
sofa_find_package(SofaValidation QUIET)
@@ -388,8 +388,8 @@ if(Sofa.GUI_FOUND)
388388
endif()
389389

390390

391-
if(Sofa.GUI.Qt_FOUND)
392-
target_link_libraries(${PROJECT_NAME} Sofa.GUI.Qt)
391+
if(Sofa.Qt_FOUND)
392+
target_link_libraries(${PROJECT_NAME} Sofa.Qt)
393393
endif()
394394

395395
if(SofaValidation_FOUND)

applications/plugins/SofaCUDA/src/sofa/gpu/gui/CudaDataWidget.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
#include <sofa/gpu/gui/CudaDataWidget.h>
2323
#include <sofa/gpu/cuda/CudaTypes.h>
2424
#include <sofa/helper/Factory.inl>
25-
#include <sofa/gui/qt/DataWidget.h>
26-
#include <sofa/gui/qt/SimpleDataWidget.h>
27-
#include <sofa/gui/qt/TableDataWidget.h>
25+
#include <sofa/qt/DataWidget.h>
26+
#include <sofa/qt/SimpleDataWidget.h>
27+
#include <sofa/qt/TableDataWidget.h>
2828

29-
namespace sofa::gui::qt
29+
namespace sofa::qt
3030
{
3131
using sofa::helper::Creator;
3232
using namespace sofa::type;

applications/plugins/SofaCUDA/src/sofa/gpu/gui/CudaDataWidget.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
******************************************************************************/
2222
#pragma once
2323
#include <sofa/gpu/cuda/CudaTypes.h>
24-
#include <sofa/gui/qt/QModelViewTableDataContainer.h>
24+
#include <sofa/qt/QModelViewTableDataContainer.h>
2525

26-
namespace sofa::gui::qt
26+
namespace sofa::qt
2727
{
2828
////////////////////////////////////////////////////////////////
2929
/// variable-sized vectors support

0 commit comments

Comments
 (0)