Commit dec8b78 1 parent e400f8d commit dec8b78 Copy full SHA for dec8b78
File tree 2 files changed +8
-2
lines changed
interop/dl/include/alpaqa/dl
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -204,9 +204,14 @@ if (ALPAQA_WITH_DL)
204
204
target_link_libraries (dl-loader
205
205
PUBLIC alpaqa::alpaqa alpaqa::dl-api
206
206
PRIVATE ${CMAKE_DL_LIBS} alpaqa::warnings)
207
+ alpaqa_configure_visibility(dl-loader)
207
208
set_target_properties (dl-loader PROPERTIES SOVERSION ${PROJECT_VERSION} )
208
209
add_library (alpaqa::dl-loader ALIAS dl-loader)
209
210
list (APPEND ALPAQA_INSTALL_TARGETS dl-loader)
211
+ generate_export_header(dl-loader
212
+ EXPORT_FILE_NAME export/alpaqa/dl-loader-export.h)
213
+ target_include_directories (dl-loader PUBLIC
214
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR} /export>)
210
215
endif ()
211
216
212
217
if (ALPAQA_WITH_CUTEST AND CMAKE_DL_LIBS )
Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
3
3
#include < alpaqa/config/config.hpp>
4
+ #include < alpaqa/dl-loader-export.h>
4
5
#include < alpaqa/dl/dl-problem.h>
5
6
#include < alpaqa/problem/box-constr-problem.hpp>
6
7
#include < alpaqa/problem/sparsity.hpp>
@@ -90,7 +91,7 @@ class ExtraFuncs {
90
91
// / @see @ref TypeErasedProblem
91
92
// / @see @ref alpaqa_problem_functions_t
92
93
// / @see @ref alpaqa_problem_register_t
93
- class DLProblem : public BoxConstrProblem <DefaultConfig> {
94
+ class DL_LOADER_EXPORT DLProblem : public BoxConstrProblem<DefaultConfig> {
94
95
public:
95
96
USING_ALPAQA_CONFIG (DefaultConfig);
96
97
using Sparsity = alpaqa::Sparsity<config_t >;
@@ -198,7 +199,7 @@ class DLProblem : public BoxConstrProblem<DefaultConfig> {
198
199
// /
199
200
// / @ingroup grp_Problems
200
201
// / @see @ref TypeErasedControlProblem
201
- class DLControlProblem {
202
+ class DL_LOADER_EXPORT DLControlProblem {
202
203
public:
203
204
USING_ALPAQA_CONFIG (DefaultConfig);
204
205
using Box = alpaqa::Box<config_t >;
You can’t perform that action at this time.
0 commit comments