File: build-shared-library.patch

package info (click to toggle)
qcodeeditor 1.0%2B1gitdc644d-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 520 kB
  • sloc: cpp: 2,502; xml: 731; python: 11; makefile: 9
file content (19 lines) | stat: -rw-r--r-- 544 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 40d5617..35d7029 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -79,11 +79,13 @@ find_package(Qt5Core    CONFIG REQUIRED)
 find_package(Qt5Widgets CONFIG REQUIRED)
 find_package(Qt5Gui     CONFIG REQUIRED)
 
-add_library(QCodeEditor STATIC
+add_library(QCodeEditor SHARED
     ${RESOURCES_FILE}
     ${SOURCE_FILES}
     ${INCLUDE_FILES}
 )
+set_target_properties( QCodeEditor PROPERTIES
+                       SOVERSION 0 )
 
 target_include_directories(QCodeEditor PUBLIC
     include