mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
Add USE_TFMAN_STATIC option
This commit is contained in:
parent
83e6a0a43e
commit
11b45d4c27
@ -28,6 +28,7 @@ option(BUILD_FFI_LIBRARY "Build ffi library (containing all symbols which are st
|
||||
option(USE_POC "Build small, uninstalled proof-of-concept binaries" ON)
|
||||
option(USE_QRCODEGEN "Enable libqrcodegen QR code support" OFF)
|
||||
option(USE_STATIC "Build static libraries (in addition to shared)" ON)
|
||||
option(USE_TFMAN_STATIC "Link tfman with notcurses statically" ON)
|
||||
set(USE_MULTIMEDIA "ffmpeg" CACHE STRING "Multimedia engine, one of 'ffmpeg', 'oiio', or 'none'")
|
||||
set_property(CACHE USE_MULTIMEDIA PROPERTY STRINGS ffmpeg oiio none)
|
||||
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
||||
@ -772,6 +773,14 @@ target_include_directories(tfman
|
||||
"${libdeflate_INCLUDE_DIRS}"
|
||||
"${ZLIB_INCLUDE_DIRS}"
|
||||
)
|
||||
if(USE_TFMAN_STATIC AND USE_STATIC)
|
||||
target_link_libraries(tfman
|
||||
PRIVATE
|
||||
notcurses-core-static
|
||||
"${libdeflate}"
|
||||
"${ZLIB_LIBRARIES}"
|
||||
)
|
||||
else()
|
||||
target_link_libraries(tfman
|
||||
PRIVATE
|
||||
notcurses-core
|
||||
@ -779,6 +788,7 @@ target_link_libraries(tfman
|
||||
"${ZLIB_LIBRARIES}"
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
############################################################################
|
||||
# ncneofetch
|
||||
|
Loading…
x
Reference in New Issue
Block a user