Skip to content

Commit 0807457

Browse files
committed
[cmake] Add config.h.in file
1 parent 918f99c commit 0807457

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

src/ConstraintGeometry/config.h.in

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#pragma once
2+
3+
#include <sofa/config.h>
4+
#include <sofa/config/sharedlibrary_defines.h>
5+
6+
#define CONSTRAINTGEOMETRY_VERSION @PROJECT_VERSION@
7+
8+
#ifdef SOFA_BUILD_CONSTRAINTGEOMETRY
9+
# define SOFA_TARGET @PROJECT_NAME@
10+
# define SOFA_CONSTRAINTGEOMETRY_API SOFA_EXPORT_DYNAMIC_LIBRARY
11+
#else
12+
# define SOFA_CONSTRAINTGEOMETRY_API SOFA_IMPORT_DYNAMIC_LIBRARY
13+
#endif
14+
15+
namespace sofa::constraintgeometry
16+
{
17+
constexpr const char* MODULE_NAME = "@PROJECT_NAME@";
18+
constexpr const char* MODULE_VERSION = "@PROJECT_VERSION@";
19+
}

0 commit comments

Comments
 (0)