Commit c2380eca authored by Pierre Kraemer's avatar Pierre Kraemer

SCHNApps: finished plugins compilation update

parent 1b27e734
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
SET( PLUGIN_NAME DifferentialProperties )
SET( PLUGIN_ROOT_DIR ${SCHNApps_ROOT_DIR}/Plugins/differentialProperties )
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${SCHNApps_ROOT_DIR}/include ${PLUGIN_ROOT_DIR}/include
${SCHNApps_ROOT_DIR}/Plugins/differentialProperties/include
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
) )
SET( PLUGIN_SRC file(
${SCHNApps_ROOT_DIR}/Plugins/differentialProperties/src/differentialProperties.cpp GLOB_RECURSE
${SCHNApps_ROOT_DIR}/Plugins/differentialProperties/src/computeNormalDialog.cpp PLUGIN_FILES
${SCHNApps_ROOT_DIR}/Plugins/differentialProperties/src/computeCurvatureDialog.cpp ${PLUGIN_ROOT_DIR}/src/*.cpp
${PLUGIN_ROOT_DIR}/include/*.h
) )
SET( PLUGIN_H file(
${SCHNApps_ROOT_DIR}/Plugins/differentialProperties/include/differentialProperties.h GLOB_RECURSE
${SCHNApps_ROOT_DIR}/Plugins/differentialProperties/include/computeNormalDialog.h PLUGIN_UI_FILES
${SCHNApps_ROOT_DIR}/Plugins/differentialProperties/include/computeCurvatureDialog.h ${PLUGIN_ROOT_DIR}/forms/*.ui
) )
SET( PLUGIN_FORM SET(
${SCHNApps_ROOT_DIR}/Plugins/differentialProperties/forms/computeNormalDialog.ui PLUGIN_QOBJECT_FILES
${SCHNApps_ROOT_DIR}/Plugins/differentialProperties/forms/computeCurvatureDialog.ui ${PLUGIN_ROOT_DIR}/include/differentialProperties.h
${PLUGIN_ROOT_DIR}/include/computeNormalDialog.h
${PLUGIN_ROOT_DIR}/include/computeCurvatureDialog.h
) )
IF( ${CMAKE_BUILD_TYPE} STREQUAL Debug ) include( ${SCHNApps_ROOT_DIR}/Plugins/plugins_cmake.txt )
ADD_DEFINITIONS(-DDEBUG)
IF(WIN32)
link_directories( ${CGoGN_ROOT_DIR}/lib/Release )
ELSE (WIN32)
link_directories( ${CGoGN_ROOT_DIR}/lib/Debug ${CGoGN_ROOT_DIR}/lib/Release )
ENDIF (WIN32)
QT4_WRAP_UI( PLUGIN_UI ${PLUGIN_FORM} )
QT4_WRAP_CPP( PLUGIN_MOC ${PLUGIN_H} )
ADD_LIBRARY( DifferentialPropertiesD SHARED
${PLUGIN_SRC}
${PLUGIN_UI}
${PLUGIN_MOC}
)
TARGET_LINK_LIBRARIES( DifferentialPropertiesD
${CGoGN_LIBS_D}
${COMMON_LIBS}
)
ADD_DEPENDENCIES( DifferentialPropertiesD SCHNAppsD )
SET_TARGET_PROPERTIES( DifferentialPropertiesD PROPERTIES COMPILE_DEFINITIONS "DEBUG" )
ELSE ( ${CMAKE_BUILD_TYPE} STREQUAL Debug )
IF(WIN32)
link_directories( ${CGoGN_ROOT_DIR}/lib/Release )
ELSE (WIN32)
link_directories( ${CGoGN_ROOT_DIR}/lib/Release )
ENDIF (WIN32)
QT4_WRAP_UI( PLUGIN_UI ${PLUGIN_FORM} )
QT4_WRAP_CPP( PLUGIN_MOC ${PLUGIN_H} )
ADD_LIBRARY( DifferentialProperties SHARED
${PLUGIN_SRC}
${PLUGIN_UI}
${PLUGIN_MOC}
)
TARGET_LINK_LIBRARIES( DifferentialProperties
${CGoGN_LIBS_R}
${COMMON_LIBS}
)
ADD_DEPENDENCIES( DifferentialProperties SCHNApps )
ENDIF ( ${CMAKE_BUILD_TYPE} STREQUAL Debug )
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
SET( PLUGIN_NAME ImportSurface )
SET( PLUGIN_ROOT_DIR ${SCHNApps_ROOT_DIR}/Plugins/importSurface )
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${SCHNApps_ROOT_DIR}/include ${PLUGIN_ROOT_DIR}/include
${SCHNApps_ROOT_DIR}/Plugins/importSurface
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
) )
SET( PLUGIN_SRC file(
${SCHNApps_ROOT_DIR}/Plugins/importSurface/importSurface.cpp GLOB_RECURSE
PLUGIN_FILES
${PLUGIN_ROOT_DIR}/src/*.cpp
${PLUGIN_ROOT_DIR}/include/*.h
) )
SET( PLUGIN_H file(
${SCHNApps_ROOT_DIR}/Plugins/importSurface/importSurface.h GLOB_RECURSE
PLUGIN_UI_FILES
${PLUGIN_ROOT_DIR}/forms/*.ui
) )
IF( ${CMAKE_BUILD_TYPE} STREQUAL Debug ) SET(
PLUGIN_QOBJECT_FILES
ADD_DEFINITIONS(-DDEBUG) ${PLUGIN_ROOT_DIR}/include/importSurface.h
)
IF(WIN32)
link_directories( ${CGoGN_ROOT_DIR}/lib/Release )
ELSE (WIN32)
link_directories( ${CGoGN_ROOT_DIR}/lib/Debug ${CGoGN_ROOT_DIR}/lib/Release )
ENDIF (WIN32)
# QT4_WRAP_UI( PLUGIN_UI ${PLUGIN_FORM} )
QT4_WRAP_CPP( PLUGIN_MOC ${PLUGIN_H} )
ADD_LIBRARY( ImportSurfaceD SHARED
${PLUGIN_SRC}
${PLUGIN_UI}
${PLUGIN_MOC}
)
TARGET_LINK_LIBRARIES( ImportSurfaceD
${CGoGN_LIBS_D}
${COMMON_LIBS}
)
ADD_DEPENDENCIES( ImportSurfaceD SCHNAppsD )
SET_TARGET_PROPERTIES( ImportSurfaceD PROPERTIES COMPILE_DEFINITIONS "DEBUG" )
ELSE ( ${CMAKE_BUILD_TYPE} STREQUAL Debug )
IF(WIN32)
link_directories( ${CGoGN_ROOT_DIR}/lib/Release )
ELSE (WIN32)
link_directories( ${CGoGN_ROOT_DIR}/lib/Release )
ENDIF (WIN32)
# QT4_WRAP_UI( PLUGIN_UI ${PLUGIN_FORM} )
QT4_WRAP_CPP( PLUGIN_MOC ${PLUGIN_H} )
ADD_LIBRARY( ImportSurface SHARED
${PLUGIN_SRC}
${PLUGIN_UI}
${PLUGIN_MOC}
)
TARGET_LINK_LIBRARIES( ImportSurface
${CGoGN_LIBS_R}
${COMMON_LIBS}
)
ADD_DEPENDENCIES( ImportSurface SCHNApps ) include( ${SCHNApps_ROOT_DIR}/Plugins/plugins_cmake.txt )
ENDIF ( ${CMAKE_BUILD_TYPE} STREQUAL Debug )
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
SET( PLUGIN_NAME ImportVolume )
SET( PLUGIN_ROOT_DIR ${SCHNApps_ROOT_DIR}/Plugins/importVolume )
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${SCHNApps_ROOT_DIR}/include ${PLUGIN_ROOT_DIR}/include
${SCHNApps_ROOT_DIR}/Plugins/importVolume
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
) )
SET( PLUGIN_SRC file(
${SCHNApps_ROOT_DIR}/Plugins/importVolume/importVolume.cpp GLOB_RECURSE
PLUGIN_FILES
${PLUGIN_ROOT_DIR}/src/*.cpp
${PLUGIN_ROOT_DIR}/include/*.h
) )
SET( PLUGIN_H file(
${SCHNApps_ROOT_DIR}/Plugins/importVolume/importVolume.h GLOB_RECURSE
PLUGIN_UI_FILES
${PLUGIN_ROOT_DIR}/forms/*.ui
) )
IF( ${CMAKE_BUILD_TYPE} STREQUAL Debug ) SET(
PLUGIN_QOBJECT_FILES
ADD_DEFINITIONS(-DDEBUG) ${PLUGIN_ROOT_DIR}/include/importVolume.h
)
IF(WIN32)
link_directories( ${CGoGN_ROOT_DIR}/lib/Release )
ELSE (WIN32)
link_directories( ${CGoGN_ROOT_DIR}/lib/Debug ${CGoGN_ROOT_DIR}/lib/Release )
ENDIF (WIN32)
# QT4_WRAP_UI( PLUGIN_UI ${PLUGIN_FORM} )
QT4_WRAP_CPP( PLUGIN_MOC ${PLUGIN_H} )
ADD_LIBRARY( ImportVolumeD SHARED
${PLUGIN_SRC}
${PLUGIN_UI}
${PLUGIN_MOC}
)
TARGET_LINK_LIBRARIES( ImportVolumeD
${CGoGN_LIBS_D}
${COMMON_LIBS}
${QGLVIEWER_LIBRARIES}
)
ADD_DEPENDENCIES( ImportVolumeD SCHNAppsD )
SET_TARGET_PROPERTIES( ImportVolumeD PROPERTIES COMPILE_DEFINITIONS "DEBUG" )
ELSE ( ${CMAKE_BUILD_TYPE} STREQUAL Debug )
IF(WIN32)
link_directories( ${CGoGN_ROOT_DIR}/lib/Release )
ELSE (WIN32)
link_directories( ${CGoGN_ROOT_DIR}/lib/Release )
ENDIF (WIN32)
# QT4_WRAP_UI( PLUGIN_UI ${PLUGIN_FORM} )
QT4_WRAP_CPP( PLUGIN_MOC ${PLUGIN_H} )
ADD_LIBRARY( ImportVolume SHARED
${PLUGIN_SRC}
${PLUGIN_UI}
${PLUGIN_MOC}
)
TARGET_LINK_LIBRARIES( ImportVolume
${CGoGN_LIBS_R}
${COMMON_LIBS}
${QGLVIEWER_LIBRARIES}
)
ADD_DEPENDENCIES( ImportVolume SCHNApps ) include( ${SCHNApps_ROOT_DIR}/Plugins/plugins_cmake.txt )
ENDIF ( ${CMAKE_BUILD_TYPE} STREQUAL Debug )
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
SET( PLUGIN_NAME Render )
SET( PLUGIN_ROOT_DIR ${SCHNApps_ROOT_DIR}/Plugins/render )
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${SCHNApps_ROOT_DIR}/include ${PLUGIN_ROOT_DIR}/include
${SCHNApps_ROOT_DIR}/Plugins/render
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
) )
SET( PLUGIN_SRC file(
${SCHNApps_ROOT_DIR}/Plugins/render/render.cpp GLOB_RECURSE
PLUGIN_FILES
${PLUGIN_ROOT_DIR}/src/*.cpp
${PLUGIN_ROOT_DIR}/include/*.h
) )
SET( PLUGIN_H file(
${SCHNApps_ROOT_DIR}/Plugins/render/render.h GLOB_RECURSE
PLUGIN_UI_FILES
${PLUGIN_ROOT_DIR}/forms/*.ui
) )
SET( PLUGIN_FORM SET(
${SCHNApps_ROOT_DIR}/Plugins/render/render.ui PLUGIN_QOBJECT_FILES
${PLUGIN_ROOT_DIR}/include/render.h
) )
IF( ${CMAKE_BUILD_TYPE} STREQUAL Debug ) include( ${SCHNApps_ROOT_DIR}/Plugins/plugins_cmake.txt )
ADD_DEFINITIONS(-DDEBUG)
IF(WIN32)
link_directories( ${CGoGN_ROOT_DIR}/lib/Release )
ELSE (WIN32)
link_directories( ${CGoGN_ROOT_DIR}/lib/Debug ${CGoGN_ROOT_DIR}/lib/Release )
ENDIF (WIN32)
QT4_WRAP_UI( PLUGIN_UI ${PLUGIN_FORM} )
QT4_WRAP_CPP( PLUGIN_MOC ${PLUGIN_H} )
ADD_LIBRARY( RenderD SHARED
${PLUGIN_SRC}
${PLUGIN_UI}
${PLUGIN_MOC}
)
TARGET_LINK_LIBRARIES( RenderD
${CGoGN_LIBS_D}
${COMMON_LIBS}
)
ADD_DEPENDENCIES( RenderD SCHNAppsD )
SET_TARGET_PROPERTIES( RenderD PROPERTIES COMPILE_DEFINITIONS "DEBUG" )
ELSE ( ${CMAKE_BUILD_TYPE} STREQUAL Debug )
IF(WIN32)
link_directories( ${CGoGN_ROOT_DIR}/lib/Release )
ELSE (WIN32)
link_directories( ${CGoGN_ROOT_DIR}/lib/Release )
ENDIF (WIN32)
QT4_WRAP_UI( PLUGIN_UI ${PLUGIN_FORM} )
QT4_WRAP_CPP( PLUGIN_MOC ${PLUGIN_H} )
ADD_LIBRARY( Render SHARED
${PLUGIN_SRC}
${PLUGIN_UI}
${PLUGIN_MOC}
)
TARGET_LINK_LIBRARIES( Render
${CGoGN_LIBS_R}
${COMMON_LIBS}
)
ADD_DEPENDENCIES( Render SCHNApps )
ENDIF ( ${CMAKE_BUILD_TYPE} STREQUAL Debug )
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
SET( PLUGIN_NAME RenderExplod )
SET( PLUGIN_ROOT_DIR ${SCHNApps_ROOT_DIR}/Plugins/renderExplod )
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${SCHNApps_ROOT_DIR}/include ${PLUGIN_ROOT_DIR}/include
${SCHNApps_ROOT_DIR}/Plugins/renderExplod
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
) )
SET( PLUGIN_SRC file(
${SCHNApps_ROOT_DIR}/Plugins/renderExplod/renderExplod.cpp GLOB_RECURSE
PLUGIN_FILES
${PLUGIN_ROOT_DIR}/src/*.cpp
${PLUGIN_ROOT_DIR}/include/*.h
) )
SET( PLUGIN_H file(
${SCHNApps_ROOT_DIR}/Plugins/renderExplod/renderExplod.h GLOB_RECURSE
PLUGIN_UI_FILES
${PLUGIN_ROOT_DIR}/forms/*.ui
) )
SET( PLUGIN_FORM SET(
${SCHNApps_ROOT_DIR}/Plugins/renderExplod/renderExplod.ui PLUGIN_QOBJECT_FILES
${PLUGIN_ROOT_DIR}/include/renderExplod.h
) )
IF( ${CMAKE_BUILD_TYPE} STREQUAL Debug ) include( ${SCHNApps_ROOT_DIR}/Plugins/plugins_cmake.txt )
ADD_DEFINITIONS(-DDEBUG)
IF(WIN32)
link_directories( ${CGoGN_ROOT_DIR}/lib/Release )
ELSE (WIN32)
link_directories( ${CGoGN_ROOT_DIR}/lib/Debug ${CGoGN_ROOT_DIR}/lib/Release )
ENDIF (WIN32)
QT4_WRAP_UI( PLUGIN_UI ${PLUGIN_FORM} )
QT4_WRAP_CPP( PLUGIN_MOC ${PLUGIN_H} )
ADD_LIBRARY( RenderExplodD SHARED
${PLUGIN_SRC}
${PLUGIN_UI}
${PLUGIN_MOC}
)
TARGET_LINK_LIBRARIES( RenderExplodD
${CGoGN_LIBS_D}
${COMMON_LIBS}
${QGLVIEWER_LIBRARIES}
)
ADD_DEPENDENCIES( RenderExplodD SCHNAppsD )
SET_TARGET_PROPERTIES( RenderExplodD PROPERTIES COMPILE_DEFINITIONS "DEBUG" )
ELSE ( ${CMAKE_BUILD_TYPE} STREQUAL Debug )
IF(WIN32)
link_directories( ${CGoGN_ROOT_DIR}/lib/Release )
ELSE (WIN32)
link_directories( ${CGoGN_ROOT_DIR}/lib/Release )
ENDIF (WIN32)
QT4_WRAP_UI( PLUGIN_UI ${PLUGIN_FORM} )
QT4_WRAP_CPP( PLUGIN_MOC ${PLUGIN_H} )
ADD_LIBRARY( RenderExplod SHARED
${PLUGIN_SRC}
${PLUGIN_UI}
${PLUGIN_MOC}
)
TARGET_LINK_LIBRARIES( RenderExplod
${CGoGN_LIBS_R}
${COMMON_LIBS}
${QGLVIEWER_LIBRARIES}
)
ADD_DEPENDENCIES( RenderExplod SCHNApps )
ENDIF ( ${CMAKE_BUILD_TYPE} STREQUAL Debug )
...@@ -24,7 +24,7 @@ file( ...@@ -24,7 +24,7 @@ file(
SET( SET(
PLUGIN_QOBJECT_FILES PLUGIN_QOBJECT_FILES
${SCHNApps_ROOT_DIR}/Plugins/renderVector/renderVector.h ${PLUGIN_ROOT_DIR}/include/renderVector.h
) )
include( ${SCHNApps_ROOT_DIR}/Plugins/plugins_cmake.txt ) include( ${SCHNApps_ROOT_DIR}/Plugins/plugins_cmake.txt )
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
SET( PLUGIN_NAME SubdivideSurface )
SET( PLUGIN_ROOT_DIR ${SCHNApps_ROOT_DIR}/Plugins/subdivideSurface )
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${SCHNApps_ROOT_DIR}/include ${PLUGIN_ROOT_DIR}/include
${SCHNApps_ROOT_DIR}/Plugins/subdivideSurface/include
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
) )
SET( PLUGIN_SRC file(
${SCHNApps_ROOT_DIR}/Plugins/subdivideSurface/src/subdivideSurface.cpp GLOB_RECURSE
${SCHNApps_ROOT_DIR}/Plugins/subdivideSurface/src/subdivideSurfaceDialog.cpp PLUGIN_FILES
${PLUGIN_ROOT_DIR}/src/*.cpp
${PLUGIN_ROOT_DIR}/include/*.h
) )
SET( PLUGIN_H file(
${SCHNApps_ROOT_DIR}/Plugins/subdivideSurface/include/subdivideSurface.h GLOB_RECURSE
${SCHNApps_ROOT_DIR}/Plugins/subdivideSurface/include/subdivideSurfaceDialog.h PLUGIN_UI_FILES
${PLUGIN_ROOT_DIR}/forms/*.ui
) )
SET( PLUGIN_FORM SET(
${SCHNApps_ROOT_DIR}/Plugins/subdivideSurface/forms/subdivideSurfaceDialog.ui PLUGIN_QOBJECT_FILES
${PLUGIN_ROOT_DIR}/include/subdivideSurface.h
${PLUGIN_ROOT_DIR}/include/subdivideSurfaceDialog.h
) )
IF( ${CMAKE_BUILD_TYPE} STREQUAL Debug ) include( ${SCHNApps_ROOT_DIR}/Plugins/plugins_cmake.txt )
ADD_DEFINITIONS(-DDEBUG)
IF(WIN32)
link_directories( ${CGoGN_ROOT_DIR}/lib/Release )
ELSE (WIN32)
link_directories( ${CGoGN_ROOT_DIR}/lib/Debug ${CGoGN_ROOT_DIR}/lib/Release )
ENDIF (WIN32)
QT4_WRAP_UI( PLUGIN_UI ${PLUGIN_FORM} )
QT4_WRAP_CPP( PLUGIN_MOC ${PLUGIN_H} )
ADD_LIBRARY( SubdivideSurfaceD SHARED
${PLUGIN_SRC}
${PLUGIN_UI}
${PLUGIN_MOC}
)
TARGET_LINK_LIBRARIES( SubdivideSurfaceD
${CGoGN_LIBS_D}
${COMMON_LIBS}
)
ADD_DEPENDENCIES( SubdivideSurfaceD SCHNAppsD )
SET_TARGET_PROPERTIES( SubdivideSurfaceD PROPERTIES COMPILE_DEFINITIONS "DEBUG" )
ELSE ( ${CMAKE_BUILD_TYPE} STREQUAL Debug )
IF(WIN32)
link_directories( ${CGoGN_ROOT_DIR}/lib/Release )
ELSE (WIN32)
link_directories( ${CGoGN_ROOT_DIR}/lib/Release )
ENDIF (WIN32)
QT4_WRAP_UI( PLUGIN_UI ${PLUGIN_FORM} )
QT4_WRAP_CPP( PLUGIN_MOC ${PLUGIN_H} )
ADD_LIBRARY( SubdivideSurface SHARED
${PLUGIN_SRC}
${PLUGIN_UI}
${PLUGIN_MOC}
)
TARGET_LINK_LIBRARIES( SubdivideSurface
${CGoGN_LIBS_R}
${COMMON_LIBS}
)
ADD_DEPENDENCIES( SubdivideSurface SCHNApps )
ENDIF ( ${CMAKE_BUILD_TYPE} STREQUAL Debug )
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
SET( PLUGIN_NAME SurfaceDeformation )