Skip to content

Commit

Permalink
remove needless cmake option
Browse files Browse the repository at this point in the history
  • Loading branch information
Bauumm committed Oct 24, 2024
1 parent 1f32159 commit 4b982e5
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,22 @@ cmake_minimum_required(VERSION 3.17)
set(CMAKE_INSTALL_PREFIX ..)

# -------------- video encoding library --------------
option(VIDEO_EXPORT "Compile the library for video export." TRUE)
if(VIDEO_EXPORT)
project(encode DESCRIPTION "library for encoding video files from lua using ffi")
project(encode DESCRIPTION "library for encoding video files from lua using ffi")

find_package(PkgConfig REQUIRED)
pkg_check_modules(LIBAV REQUIRED IMPORTED_TARGET
libavformat
libavcodec
libswresample
libswscale
libavutil
)
find_package(PkgConfig REQUIRED)
pkg_check_modules(LIBAV REQUIRED IMPORTED_TARGET
libavformat
libavcodec
libswresample
libswscale
libavutil
)

add_library(encode SHARED
game_handler/video/encode.c
)
target_link_libraries(encode
PkgConfig::LIBAV
)
add_library(encode SHARED
game_handler/video/encode.c
)
target_link_libraries(encode
PkgConfig::LIBAV
)

install(TARGETS encode RUNTIME DESTINATION lib)
endif()
install(TARGETS encode RUNTIME DESTINATION lib)

0 comments on commit 4b982e5

Please sign in to comment.