Skip to content

Commit

Permalink
[SensableEmulation] Update & clean code.
Browse files Browse the repository at this point in the history
  • Loading branch information
damienmarchal committed Feb 24, 2019
1 parent 952d966 commit a28fea2
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 247 deletions.
7 changes: 2 additions & 5 deletions applications/plugins/SensableEmulation/CMakeLists.txt
Expand Up @@ -3,27 +3,24 @@ project(SensableEmulation)


set(HEADER_FILES
# NewOmniDriverEmu.h
OmniDriverEmu.h
config.h
pthread/pthread.h
)

set(SOURCE_FILES
# NewOmniDriverEmu.cpp
OmniDriverEmu.cpp
initSensableEmulation.cpp
)

set(README_FILES PluginSensableEmulation.txt)

find_package(SofaGeneral REQUIRED)
find_package(SofaHaptics REQUIRED)
find_package(Boost QUIET COMPONENTS thread REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})

add_library(${PROJECT_NAME} SHARED ${HEADER_FILES} ${SOURCE_FILES} ${README_FILES})
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "-DSOFA_BUILD_SENSABLEEMULATIONPLUGIN")
target_link_libraries(${PROJECT_NAME} SofaComponentGeneral SofaHaptics ${Boost_LIBRARIES})
target_link_libraries(${PROJECT_NAME} SofaHaptics SofaOpenglVisual ${Boost_LIBRARIES})
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/..")

# Seems to be required by boost::asio
Expand Down
4 changes: 0 additions & 4 deletions applications/plugins/SensableEmulation/NewOmniDriverEmu.h
Expand Up @@ -23,10 +23,6 @@
#define SOFA_COMPONENT_CONTROLLER_OMNIEMU_H

//Sensable include
//#include <HD/hd.h>
//#include <HDU/hdu.h>
//#include <HDU/hduError.h>
//#include <HDU/hduVector.h>
#include <sofa/helper/LCPcalc.h>
#include <sofa/defaulttype/SolidTypes.h>

Expand Down

0 comments on commit a28fea2

Please sign in to comment.