## == Functions, packages and options ==
## =====================================
-FIND_PACKAGE(cpPlugins QUIET)
-IF(cpPlugins_DIR)
- OPTION(USE_cpPlugins "Build cpPlugins-based code" ON)
-ELSE(cpPlugins_DIR)
- OPTION(USE_cpPlugins "Build cpPlugins-based code" OFF)
- MARK_AS_ADVANCED(FORCE cpPlugins_DIR)
-ENDIF(cpPlugins_DIR)
+INCLUDE(cmake/BaseConfig.cmake)
+OPTION(USE_cpPlugins "Build cpPlugins-based code" OFF)
IF(USE_cpPlugins)
FIND_PACKAGE(cpPlugins)
MARK_AS_ADVANCED(CLEAR cpPlugins_DIR)
ENDIF(USE_cpPlugins)
-INCLUDE(cmake/BaseConfig.cmake)
INCLUDE(cmake/KitwareTools.cmake)
INCLUDE(cmake/QtTools.cmake)
INCLUDE(cmake/Functions.cmake)
## == Find Qt4 and check if it was well configured ==
## ==================================================
-## IF(BUILD_QT4_COMPONENTS)
+IF(BUILD_QT4_COMPONENTS)
FIND_PACKAGE(Qt4 REQUIRED)
INCLUDE(${QT_USE_FILE})
SET(
QVTKWidget
CACHE STRING "Base Qt4-based vtkRenderWindow"
)
- # ADD_DEFINITIONS(-DcpPlugins_QT4 -DcpExtensions_QT4)
-## ELSE(BUILD_QT4_COMPONENTS)
- # ADD_DEFINITIONS(-UcpPlugins_QT4 -UcpExtensions_QT4)
-## ENDIF(BUILD_QT4_COMPONENTS)
+ MARK_AS_ADVANCED(CLEAR cpPlugins_Qt4_VTKWidget)
+ENDIF(BUILD_QT4_COMPONENTS)
## eof - $RCSfile$
+++ /dev/null
-## =======================================================================
-## == Force c++11 language version ==
-## == NOTE: It seems that by default on Visual Studio Compiler supports ==
-## == c++11, so it only need to be tested on other OS. ==
-## =======================================================================
-
-IF(NOT MSVC)
- INCLUDE(CheckCXXCompilerFlag)
- CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
- IF(COMPILER_SUPPORTS_CXX11)
- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
- ELSE(COMPILER_SUPPORTS_CXX11)
- CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
- IF(COMPILER_SUPPORTS_CXX0X)
- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
- ELSE(COMPILER_SUPPORTS_CXX0X)
- MESSAGE(
- FATAL_ERROR
- "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support."
- )
- ENDIF(COMPILER_SUPPORTS_CXX0X)
- ENDIF(COMPILER_SUPPORTS_CXX11)
-ENDIF(NOT MSVC)
-
-## ===================================================
-## == Prepare header generator to build shared libs ==
-## ===================================================
-
-INCLUDE(GenerateExportHeader)
-
-## ==================================================
-## == Do not allow to build inside the source tree ==
-## ==================================================
-
-IF(PROJECT_BINARY_DIR STREQUAL ${PROJECT_SOURCE_DIR})
- MESSAGE(FATAL_ERROR "Building in the source tree is not allowed.")
-ENDIF(PROJECT_BINARY_DIR STREQUAL ${PROJECT_SOURCE_DIR})
-
-## =================================================
-## == Where to put targets (executables and libs) ==
-## =================================================
-
-SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})
-SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR})
-MARK_AS_ADVANCED(
- CMAKE_BACKWARDS_COMPATIBILITY
- EXECUTABLE_OUTPUT_PATH
- LIBRARY_OUTPUT_PATH
- )
-
-## eof - $RCSfile$
## == Build instances for cpPlugins ==
## ===================================
-IF(USE_cpPlugins)
- SUBDIRS(fpaInstances)
-ENDIF(USE_cpPlugins)
+SUBDIRS(fpaInstances)
## eof - $RCSfile$
## ===========================
## == Compile each instance ==
## ===========================
-
-INCLUDE_DIRECTORIES(
- ${PROJECT_SOURCE_DIR}/lib
- ${PROJECT_BINARY_DIR}/lib
- )
-SET(_pfx fpaInstaces)
-
-cpPlugins_BuildLibrary(${_pfx}DataObjects SHARED ${CMAKE_CURRENT_SOURCE_DIR}/DataObjects.i)
-cpPlugins_BuildLibrary(${_pfx}Filters SHARED ${CMAKE_CURRENT_SOURCE_DIR}/Filters.i)
-
-TARGET_LINK_LIBRARIES(${_pfx}DataObjects ${cpPlugins_AllInstances})
-TARGET_LINK_LIBRARIES(${_pfx}Filters ${_pfx}DataObjects)
-
-SET(
- fpa_AllInstances
- ${_pfx}DataObjects
- ${_pfx}Filters
- CACHE INTERNAL "All valid instances." FORCE
- )
+IF(USE_cpPlugins)
+ INCLUDE_DIRECTORIES(
+ ${PROJECT_SOURCE_DIR}/lib
+ ${PROJECT_BINARY_DIR}/lib
+ )
+ SET(_pfx fpaInstaces)
+ cpPlugins_BuildLibrary(
+ ${_pfx}DataObjects SHARED ${CMAKE_CURRENT_SOURCE_DIR}/DataObjects.i
+ )
+ cpPlugins_BuildLibrary(
+ ${_pfx}Filters SHARED ${CMAKE_CURRENT_SOURCE_DIR}/Filters.i
+ )
+ TARGET_LINK_LIBRARIES(${_pfx}DataObjects ${cpPlugins_AllInstances})
+ TARGET_LINK_LIBRARIES(${_pfx}Filters ${_pfx}DataObjects)
+ SET(
+ fpa_AllInstances
+ ${_pfx}DataObjects
+ ${_pfx}Filters
+ CACHE INTERNAL "All valid instances." FORCE
+ )
+ENDIF(USE_cpPlugins)
## eof - $RCSfile$
ENDIF(USE_cpPlugins)
-## eof - $RCSfile$
\ No newline at end of file
+## eof - $RCSfile$
#include <Experiments/InsertNoiseIntoPoints.h>
#include <cpInstances/DataObjects/Image.h>
-#include <cpInstances/Mesh.h>
+#include <cpInstances/DataObjects/Mesh.h>
#include <random>
#include <vtkImageData.h>
: Superclass( )
{
typedef cpInstances::DataObjects::Image _TImage;
- typedef cpInstances::Mesh _TMesh;
+ typedef cpInstances::DataObjects::Mesh _TMesh;
this->_ConfigureInput< _TMesh >( "Seeds", true, false );
this->_ConfigureInput< _TImage >( "DistanceMap", true, false );
#include <Experiments/SkeletonHausdorffDistance.h>
#include <cpInstances/DataObjects/Image.h>
-#include <cpInstances/Mesh.h>
+#include <cpInstances/DataObjects/Mesh.h>
#include <cpInstances/DataObjects/Skeleton.h>
#include <cpExtensions/DataStructures/Skeleton.h>
: Superclass( )
{
this->_ConfigureInput< cpInstances::DataObjects::Image >( "DistanceMap", true, false );
- this->_ConfigureInput< cpInstances::Mesh >( "Seeds", true, false );
- this->_ConfigureInput< cpInstances::Skeleton >( "Skeleton1", true, false );
- this->_ConfigureInput< cpInstances::Skeleton >( "Skeleton2", true, false );
+ this->_ConfigureInput< cpInstances::DataObjects::Mesh >( "Seeds", true, false );
+ this->_ConfigureInput< cpInstances::DataObjects::Skeleton >( "Skeleton1", true, false );
+ this->_ConfigureInput< cpInstances::DataObjects::Skeleton >( "Skeleton2", true, false );
}
// -------------------------------------------------------------------------
: Superclass( )
{
typedef cpInstances::DataObjects::Image _TImage;
- typedef cpInstances::Skeleton _TSkeleton;
+ typedef cpInstances::DataObjects::Skeleton _TSkeleton;
typedef cpPlugins::Pipeline::DataObject _TData;
this->_ConfigureInput< _TImage >( "Input", true, false );