Skip to content

Commit 1619a82

Browse files
committed
Add shared library exports
1 parent 24d6e75 commit 1619a82

File tree

2 files changed

+81
-62
lines changed

2 files changed

+81
-62
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,13 @@ target_compile_options(opusfile
7878
)
7979
target_compile_definitions(opusfile
8080
PRIVATE
81+
OP_BUILD
8182
$<$<BOOL:${OP_DISABLE_FLOAT_API}>:OP_DISABLE_FLOAT_API>
8283
$<$<BOOL:${OP_FIXED_POINT}>:OP_FIXED_POINT>
8384
$<$<BOOL:${OP_ENABLE_ASSERTIONS}>:OP_ENABLE_ASSERTIONS>
8485
$<$<BOOL:${OP_HAVE_LRINTF}>:OP_HAVE_LRINTF>
86+
PUBLIC
87+
$<$<BOOL:${BUILD_SHARED_LIBS}>:OP_BUILD_SHARED>
8588
)
8689
install(TARGETS opusfile
8790
EXPORT OpusFileTargets

0 commit comments

Comments
 (0)