forked from jengelh/SVT-AV1
51 lines
2.1 KiB
Diff
51 lines
2.1 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 1855a5b..505060d 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -8,8 +8,8 @@ set(project_name "svt-av1")
|
|
|
|
project(${project_name} C CXX ASM_NASM)
|
|
|
|
-set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_BUILD_TYPE}/lib)
|
|
-set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_BUILD_TYPE}/lib)
|
|
+set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_BUILD_TYPE}/lib${LIB_SUFFIX})
|
|
+set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_BUILD_TYPE}/lib${LIB_SUFFIX})
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_BUILD_TYPE}/bin)
|
|
|
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
|
diff --git a/Source/Lib/Decoder/Codec/CMakeLists.txt b/Source/Lib/Decoder/Codec/CMakeLists.txt
|
|
index 70ddbd0..88b4a5c 100644
|
|
--- a/Source/Lib/Decoder/Codec/CMakeLists.txt
|
|
+++ b/Source/Lib/Decoder/Codec/CMakeLists.txt
|
|
@@ -38,6 +38,8 @@ file(GLOB all_files
|
|
add_library(SvtAv1Dec SHARED
|
|
${all_files}
|
|
)
|
|
+
|
|
+SET_TARGET_PROPERTIES(SvtAv1Dec PROPERTIES SOVERSION suse1)
|
|
|
|
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
|
target_link_libraries(SvtAv1Dec
|
|
@@ -69,4 +71,4 @@ endif()
|
|
configure_file(../pkg-config.pc.in ${CMAKE_BINARY_DIR}/SvtAv1Dec.pc @ONLY)
|
|
install(FILES ${CMAKE_BINARY_DIR}/SvtAv1Dec.pc DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
|
|
install(TARGETS SvtAv1Dec DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|
|
-install(DIRECTORY ../../../API/ DESTINATION "${CMAKE_INSTALL_PREFIX}/include/svt-av1" FILES_MATCHING PATTERN "*.h")
|
|
\ No newline at end of file
|
|
+install(DIRECTORY ../../../API/ DESTINATION "${CMAKE_INSTALL_PREFIX}/include/svt-av1" FILES_MATCHING PATTERN "*.h")
|
|
diff --git a/Source/Lib/Encoder/Codec/CMakeLists.txt b/Source/Lib/Encoder/Codec/CMakeLists.txt
|
|
index 018f1f6..e51e11c 100644
|
|
--- a/Source/Lib/Encoder/Codec/CMakeLists.txt
|
|
+++ b/Source/Lib/Encoder/Codec/CMakeLists.txt
|
|
@@ -38,7 +38,9 @@ file(GLOB all_files
|
|
add_library(SvtAv1Enc SHARED
|
|
${all_files}
|
|
)
|
|
-
|
|
+
|
|
+SET_TARGET_PROPERTIES(SvtAv1Enc PROPERTIES SOVERSION suse1)
|
|
+
|
|
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
|
target_link_libraries(SvtAv1Enc
|
|
COMMON_CODEC
|