Skip to content

Commit 326d7f2

Browse files
committed
Enable Converter library
1 parent 928ea1d commit 326d7f2

File tree

3 files changed

+43
-37
lines changed

3 files changed

+43
-37
lines changed
Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
#
22
# For more information, please see: http://software.sci.utah.edu
3-
#
3+
#
44
# The MIT License
5-
#
5+
#
66
# Copyright (c) 2012 Scientific Computing and Imaging Institute,
77
# University of Utah.
8-
#
9-
#
8+
#
9+
#
1010
# Permission is hereby granted, free of charge, to any person obtaining a
1111
# copy of this software and associated documentation files (the "Software"),
1212
# to deal in the Software without restriction, including without limitation
1313
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
1414
# and/or sell copies of the Software, and to permit persons to whom the
1515
# Software is furnished to do so, subject to the following conditions:
16-
#
16+
#
1717
# The above copyright notice and this permission notice shall be included
18-
# in all copies or substantial portions of the Software.
19-
#
18+
# in all copies or substantial portions of the Software.
19+
#
2020
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
2121
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2222
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
@@ -28,5 +28,6 @@
2828

2929
ADD_SUBDIRECTORY(Fields)
3030
ADD_SUBDIRECTORY(DataIO)
31+
ADD_SUBDIRECTORY(Converter)
3132
#ADD_SUBDIRECTORY(Math)
3233
ADD_SUBDIRECTORY(FiniteElements)

src/Core/Algorithms/Legacy/Converter/CMakeLists.txt

Lines changed: 33 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
#
22
# For more information, please see: http://software.sci.utah.edu
3-
#
3+
#
44
# The MIT License
5-
#
5+
#
66
# Copyright (c) 2009 Scientific Computing and Imaging Institute,
77
# University of Utah.
8-
#
9-
#
8+
#
9+
#
1010
# Permission is hereby granted, free of charge, to any person obtaining a
1111
# copy of this software and associated documentation files (the "Software"),
1212
# to deal in the Software without restriction, including without limitation
1313
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
1414
# and/or sell copies of the Software, and to permit persons to whom the
1515
# Software is furnished to do so, subject to the following conditions:
16-
#
16+
#
1717
# The above copyright notice and this permission notice shall be included
1818
# in all copies or substantial portions of the Software.
19-
#
19+
#
2020
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
2121
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2222
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
@@ -28,33 +28,38 @@
2828

2929
# Sources of Core/Algorithms/Converter classes
3030

31-
SET(Core_Algorithms_Converter_SRCS
31+
SET(Core_Algorithms_Legacy_Converter_SRCS
3232
ConverterAlgo.cc
33-
MatrixToField.cc
34-
NrrdToField.cc
35-
FieldToNrrd.cc
36-
ConvertToNrrd.cc
37-
MatricesToDipoleField.cc
38-
ConvertBundleToField.cc
33+
#MatrixToField.cc
34+
#NrrdToField.cc
35+
#FieldToNrrd.cc
36+
#ConvertToNrrd.cc
37+
#MatricesToDipoleField.cc
38+
#ConvertBundleToField.cc
39+
)
40+
41+
SET(Core_Algorithms_Legacy_Converter_HEADERS
42+
ConverterAlgo.h
3943
)
4044

41-
SCIRUN_ADD_LIBRARY(Core_Algorithms_Converter ${Core_Algorithms_Converter_SRCS})
45+
ADD_LIBRARY(Core_Algorithms_Legacy_Converter
46+
${Core_Algorithms_Legacy_Converter_SRCS}
47+
${Core_Algorithms_Legacy_Converter_HEADERS})
4248

43-
TARGET_LINK_LIBRARIES(Core_Algorithms_Converter
44-
Core_Algorithms_Util
45-
Core_Datatypes
46-
Core_Util
47-
Core_Exceptions
48-
Core_Thread
49-
Core_Geom
50-
Core_Geometry
51-
Core_Persistent
52-
Core_Basis
53-
${M_LIBRARY}
54-
${SCI_TEEM_LIBRARY}
49+
TARGET_LINK_LIBRARIES(Core_Algorithms_Legacy_Converter
50+
Algorithms_Base
51+
Core_Datatypes
52+
#Core_Util
53+
#Core_Exceptions
54+
#Core_Thread
55+
#Core_Geom
56+
#Core_Geometry
57+
#Core_Persistent
58+
#Core_Basis
59+
#${M_LIBRARY}
60+
#${SCI_TEEM_LIBRARY}
5561
)
5662

5763
IF(BUILD_SHARED_LIBS)
58-
ADD_DEFINITIONS(-DBUILD_Core_Algorithms_Converter)
64+
ADD_DEFINITIONS(-DBUILD_Core_Algorithms_Legacy_Converter)
5965
ENDIF(BUILD_SHARED_LIBS)
60-

src/Core/Algorithms/Legacy/Converter/share.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Copyright (c) 2009 Scientific Computing and Imaging Institute,
77
University of Utah.
88
9-
9+
1010
Permission is hereby granted, free of charge, to any person obtaining a
1111
copy of this software and associated documentation files (the "Software"),
1212
to deal in the Software without restriction, including without limitation
@@ -29,7 +29,7 @@
2929
#undef SCISHARE
3030

3131
#if defined(_WIN32) && !defined(BUILD_SCIRUN_STATIC)
32-
#ifdef BUILD_Core_Algorithms_Converter
32+
#ifdef BUILD_Core_Algorithms_Legacy_Converter
3333
#define SCISHARE __declspec(dllexport)
3434
#else
3535
#define SCISHARE __declspec(dllimport)

0 commit comments

Comments
 (0)