From 65509e777eae1185991853bb21edf56b2aa7aaba Mon Sep 17 00:00:00 2001 From: Gabriel Hege Date: Tue, 15 Oct 2024 10:28:14 +0200 Subject: [PATCH] cmake: add cache variables for BUILD_SHARED_LIBS & VVDEC_LIBRARY_ONLY closes #202 --- CMakeLists.txt | 4 ++++ cmake/modules/vvdecInstall.cmake | 20 ++++++++++++-------- source/App/vvdecapp/CMakeLists.txt | 3 +++ 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d045019f..084be76b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -123,6 +123,10 @@ set( VVDEC_ENABLE_LOCAL_BITSTREAM_DOWNLOAD OFF CACHE BOOL "Enable or disable # also install the test executable vvdecapp instead of the libraries and headers only set( VVDEC_INSTALL_VVDECAPP OFF CACHE BOOL "Enable or disable installing the test vvdecapp" ) +set( VVDEC_LIBRARY_ONLY OFF CACHE BOOL "Build libvvdec only (no vvdecapp)" ) + +set( BUILD_SHARED_LIBS OFF CACHE BOOL "Build libvvdec as a shared library" ) + # enable postfix set( VVDEC_ENABLE_BUILD_TYPE_POSTFIX OFF CACHE BOOL "Enable or disable build type postfix for apps and libs" ) diff --git a/cmake/modules/vvdecInstall.cmake b/cmake/modules/vvdecInstall.cmake index 7408c0f0..b138fb0f 100644 --- a/cmake/modules/vvdecInstall.cmake +++ b/cmake/modules/vvdecInstall.cmake @@ -58,15 +58,19 @@ target_include_directories( vvdec SYSTEM INTERFACE $