Skip to content

Commit

Permalink
Merge branch 'tfman_static' of github.com:data-man/notcurses into dat…
Browse files Browse the repository at this point in the history
…a-man-tfman_static
  • Loading branch information
dankamongmen committed Dec 31, 2024
2 parents 83e6a0a + edfb5d6 commit b442fab
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -772,13 +773,22 @@ 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
"${libdeflate}"
"${ZLIB_LIBRARIES}"
)
endif()
endif()

############################################################################
# ncneofetch
Expand Down

0 comments on commit b442fab

Please sign in to comment.