blob: 2956d672704d480c890d20bf28145ed52025d8e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
This file is part of MXE. See LICENSE.md for licensing information.
This patch has been taken from:
https://github.com/georgmartius/vid.stab/pull/19
From 1b6d48225e6c0c2c04598782582c9a0f1ea1d8e4 Mon Sep 17 00:00:00 2001
From: Timothy Gu <timothygu99@gmail.com>
Date: Fri, 8 Aug 2014 14:56:19 -0700
Subject: [PATCH] Support changing lib type through BUILD_SHARED_LIBS
---
CMakeLists.txt | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f310e4d..e9a2af4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,6 +12,9 @@ set(MINOR_VERSION 0)
set(PATCH_VERSION 0)
set(VIDSTAB_VERSION ${MAJOR_VERSION}.${MINOR_VERSION}${PATCH_VERSION})
+option(BUILD_SHARED_LIBS "build shared libraries instead of static libraries"
+ ON)
+
add_definitions( -Wall -O3 -g -Wno-pointer-sign -fPIC -std=gnu99)
# add_definitions( -Wall -O0 -g -Wno-pointer-sign )
@@ -43,8 +46,7 @@ set(HEADERS src/frameinfo.h src/transformtype.h src/libvidstab.h
# Create the vidstab library
-# add_library (vidstab STATIC ${SOURCES})
-add_library (vidstab SHARED ${SOURCES})
+add_library (vidstab ${SOURCES})
#set version of lib
set_target_properties(vidstab PROPERTIES SOVERSION ${MAJOR_VERSION}.${MINOR_VERSION})
--
2.0.3
|