Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 9f468a63 authored by Olivier Commowick's avatar Olivier Commowick
Browse files

Add exports for IPF

parent 5368375a
No related branches found
No related tags found
No related merge requests found
......@@ -231,6 +231,11 @@ endif(NOT ${PROJECT_NAME}_INSTALL_NO_DEVELOPMENT)
set(TTK_REQUIRED_C_FLAGS)
set(TTK_REQUIRED_CXX_FLAGS)
include(${TTK_SOURCE_DIR}/ttkIncludeDirectories.cmake)
include_directories(
${TTK_INCLUDE_DIRS_BUILD_TREE}
${TTK_INCLUDE_DIRS_SYSTEM}
)
add_subdirectory(IPF)
find_package(IPF)
......@@ -239,12 +244,6 @@ include(${IPF_USE_FILE})
include(${ITK_USE_FILE})
include(${VTK_USE_FILE})
include(${TTK_SOURCE_DIR}/ttkIncludeDirectories.cmake)
include_directories(
${TTK_INCLUDE_DIRS_BUILD_TREE}
${TTK_INCLUDE_DIRS_SYSTEM}
)
set(TTK_BUILD_TYPE
STATIC
)
......
......@@ -2,7 +2,6 @@ project(IPF)
cmake_minimum_required(VERSION 2.6)
# On Visual Studio 8 MS deprecated C. This removes all 1.276E1265 security
# warnings. Copied from ITK CMakeLists.
IF(WIN32)
......@@ -79,14 +78,7 @@ include(${ITK_USE_FILE})
# set IPF_DIR so it can be used by subprojects
SET(IPF_DIR "${PROJECT_BINARY_DIR}" CACHE INTERNAL "IPF_DIR variable to be used by subprojects")
set(LIBRARY_STYLE)
if (ITK_BUILD_SHARED)
set (LIBRARY_STYLE "SHARED")
else (ITK_BUILD_SHARED)
set (LIBRARY_STYLE "STATIC")
endif (ITK_BUILD_SHARED)
add_library(ITKProgramFactory ${LIBRARY_STYLE}
add_library(ITKProgramFactory
itkCommandObjectBase.cxx
itkCommandObjectFactory.cxx
)
......@@ -95,6 +87,13 @@ target_link_libraries(ITKProgramFactory
${ITK_LIBRARIES}
)
include(GenerateExportHeader)
generate_export_header(ITKProgramFactory
STATIC_DEFINE ITKProgramFactory_BUILT_AS_STATIC
EXPORT_FILE_NAME "ITKProgramFactoryExport.h"
)
add_executable(programFactoryTest
itkHelloWorldCommand.cxx
itkHelloWorldCommandFactory.cxx
......
......@@ -19,13 +19,15 @@
#include "itkProcessObject.h"
#include "ITKProgramFactoryExport.h"
/**
*/
namespace itk
{
class CommandObjectBase : public ProcessObject
class ITKPROGRAMFACTORY_EXPORT CommandObjectBase : public ProcessObject
{
public:
typedef CommandObjectBase Self;
......
......@@ -19,11 +19,12 @@
#include "itkObject.h"
#include "itkCommandObjectBase.h"
#include "ITKProgramFactoryExport.h"
namespace itk
{
class CommandObjectFactory : public Object
class ITKPROGRAMFACTORY_EXPORT CommandObjectFactory : public Object
{
public:
/** Standard class typedefs. */
......
......@@ -32,7 +32,7 @@ ENDIF(Boost_FOUND)
#-----------------------------------------------------------------------------
# Include directories from the build tree.
SET(TTK_INCLUDE_DIRS_BUILD_TREE ${PROJECT_BINARY_DIR})
SET(TTK_INCLUDE_DIRS_BUILD_TREE ${PROJECT_BINARY_DIR} ${PROJECT_BINARY_DIR}/IPF)
# These directories are always needed.
SET(TTK_INCLUDE_DIRS_BUILD_TREE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment