Skip to content

Commit 9341871

Browse files
authored
Merge pull request #149 from jcarpent/devel
Remove ${PROJECT_NAME}_export
2 parents f0236e8 + b7b8fda commit 9341871

File tree

8 files changed

+21
-39
lines changed

8 files changed

+21
-39
lines changed

CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,9 @@ INSTALL(TARGETS ${PROJECT_NAME}
174174
ADD_HEADER_GROUP(${PROJECT_NAME}_HEADERS)
175175
ADD_SOURCE_GROUP(${PROJECT_NAME}_SOURCES)
176176

177-
INCLUDE(GenerateExportHeader)
178-
GENERATE_EXPORT_HEADER(${PROJECT_NAME} EXPORT_FILE_NAME eigenpy/${PROJECT_NAME}_export.h)
179177
TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME} INTERFACE "$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>")
180178
SET(PUBLIC_HEADER ${${PROJECT_NAME}_HEADERS})
181179

182-
INSTALL(FILES
183-
${CMAKE_CURRENT_BINARY_DIR}/eigenpy/${PROJECT_NAME}_export.h
184-
DESTINATION include/eigenpy)
185-
186180
# Install package for ROS
187181
install(FILES package.xml DESTINATION share/eigenpy)
188182

include/eigenpy/computation-info.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
#include <Eigen/Core>
99
#include <boost/python.hpp>
1010

11-
#include "eigenpy/eigenpy_export.h"
11+
#include "eigenpy/config.hpp"
1212

1313
namespace eigenpy
1414
{
15-
inline void EIGENPY_EXPORT exposeComputationInfo()
15+
inline void EIGENPY_DLLEXPORT exposeComputationInfo()
1616
{
1717
boost::python::enum_<Eigen::ComputationInfo>("ComputationInfo")
1818
.value("Success",Eigen::Success)

include/eigenpy/decompositions/decompositions.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
#ifndef __eigenpy_decompositions_decompositions_hpp__
66
#define __eigenpy_decompositions_decompositions_hpp__
77

8-
#include "eigenpy/eigenpy_export.h"
8+
#include "eigenpy/config.hpp"
99

1010
namespace eigenpy
1111
{
12-
void EIGENPY_EXPORT exposeDecompositions();
12+
void EIGENPY_DLLEXPORT exposeDecompositions();
1313
} // namespace eigenpy
1414

1515
#endif // define __eigenpy_decompositions_decompositions_hpp__

include/eigenpy/eigenpy.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/*
22
* Copyright 2014-2019, CNRS
3-
* Copyright 2018-2019, INRIA
3+
* Copyright 2018-2020, INRIA
44
*/
55

66
#ifndef __eigenpy_eigenpy_hpp__
77
#define __eigenpy_eigenpy_hpp__
88

99
#include "eigenpy/fwd.hpp"
1010
#include "eigenpy/deprecated.hpp"
11-
#include "eigenpy/eigenpy_export.h"
11+
#include "eigenpy/config.hpp"
1212

1313
#if EIGEN_VERSION_AT_LEAST(3,2,0)
1414
#include "eigenpy/ref.hpp"
@@ -28,7 +28,7 @@ namespace eigenpy
2828
{
2929

3030
/* Enable Eigen-Numpy serialization for a set of standard MatrixBase instance. */
31-
void EIGENPY_EXPORT enableEigenPy();
31+
void EIGENPY_DLLEXPORT enableEigenPy();
3232

3333
template<typename MatType>
3434
void enableEigenPySpecific();

include/eigenpy/geometry.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
/*
22
* Copyright 2014-2019, CNRS
3-
* Copyright 2018-2019, INRIA
3+
* Copyright 2018-2020, INRIA
44
*/
55

66
#ifndef __eigenpy_geometry_hpp__
77
#define __eigenpy_geometry_hpp__
88

9-
#include "eigenpy/eigenpy_export.h"
9+
#include "eigenpy/config.hpp"
1010

1111
namespace eigenpy
1212
{
1313

14-
void EIGENPY_EXPORT exposeQuaternion();
15-
void EIGENPY_EXPORT exposeAngleAxis();
14+
void EIGENPY_DLLEXPORT exposeQuaternion();
15+
void EIGENPY_DLLEXPORT exposeAngleAxis();
1616

17-
void EIGENPY_EXPORT exposeGeometryConversion();
17+
void EIGENPY_DLLEXPORT exposeGeometryConversion();
1818

1919
} // namespace eigenpy
2020

include/eigenpy/solvers/preconditioners.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
#ifndef __eigenpy_preconditioners_hpp__
1818
#define __eigenpy_preconditioners_hpp__
1919

20-
#include "eigenpy/eigenpy_export.h"
20+
#include "eigenpy/config.hpp"
2121

2222
namespace eigenpy
2323
{
2424

25-
void EIGENPY_EXPORT exposePreconditioners();
25+
void EIGENPY_DLLEXPORT exposePreconditioners();
2626

2727
} // namespace eigenpy
2828

include/eigenpy/solvers/solvers.hpp

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,17 @@
11
/*
2-
* Copyright 2017, Justin Carpentier, LAAS-CNRS
3-
*
4-
* This file is part of eigenpy.
5-
* eigenpy is free software: you can redistribute it and/or
6-
* modify it under the terms of the GNU Lesser General Public License
7-
* as published by the Free Software Foundation, either version 3 of
8-
* the License, or (at your option) any later version.
9-
* eigenpy is distributed in the hope that it will be
10-
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
11-
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12-
* GNU Lesser General Public License for more details. You should
13-
* have received a copy of the GNU Lesser General Public License along
14-
* with eigenpy. If not, see <http://www.gnu.org/licenses/>.
2+
* Copyright 2017-2020 CNRS INRIA
153
*/
164

175
#ifndef __eigenpy_solvers_hpp__
186
#define __eigenpy_solvers_hpp__
197

20-
#include "eigenpy/eigenpy_export.h"
8+
#include "eigenpy/config.hpp"
219

2210
namespace eigenpy
2311
{
2412
struct SolversScope {};
2513

26-
void EIGENPY_EXPORT exposeSolvers();
14+
void EIGENPY_DLLEXPORT exposeSolvers();
2715

2816
} // namespace eigenpy
2917

include/eigenpy/version.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//
2-
// Copyright (c) 2019 INRIA
2+
// Copyright (c) 2019-2020 INRIA
33
//
44

55
#ifndef __eigenpy_version_hpp__
66
#define __eigenpy_version_hpp__
77

88
#include "eigenpy/config.hpp"
9-
#include "eigenpy/eigenpy_export.h"
9+
#include "eigenpy/config.hpp"
1010

1111
#include <string>
1212

@@ -18,7 +18,7 @@ namespace eigenpy
1818
/// the following standard:
1919
/// EIGENPY_MINOR_VERSION.EIGENPY_MINOR_VERSION.EIGENPY_PATCH_VERSION
2020
///
21-
std::string EIGENPY_EXPORT printVersion(const std::string & delimiter = ".");
21+
std::string EIGENPY_DLLEXPORT printVersion(const std::string & delimiter = ".");
2222

2323
///
2424
/// \brief Checks if the current version of EigenPy is at least the version provided
@@ -31,7 +31,7 @@ namespace eigenpy
3131
/// \returns true if the current version of EigenPy is greater than the version provided
3232
/// by the input arguments.
3333
///
34-
bool EIGENPY_EXPORT checkVersionAtLeast(unsigned int major_version,
34+
bool EIGENPY_DLLEXPORT checkVersionAtLeast(unsigned int major_version,
3535
unsigned int minor_version,
3636
unsigned int patch_version);
3737
}

0 commit comments

Comments
 (0)