Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
link to correct SDL2 static libs
Browse files Browse the repository at this point in the history
  • Loading branch information
MGTheTrain committed Apr 20, 2024
1 parent e382ef7 commit 332e676
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion apps/video-player/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ find_package(SDL2 CONFIG REQUIRED)

include_directories(../include
../../../modules/video/include
${FFMPEG_INCLUDE_DIRS}
)
set(VIDEO_PLAYER_SRC video-player.cpp)

Expand All @@ -43,6 +44,6 @@ else()
message(WARNING "Unsupported platform")
endif()

target_link_libraries(${TARGET} PRIVATE video ${FFMPEG_LIBRARIES} SDL2::SDL2-static)
target_link_libraries(${TARGET} PRIVATE video ${FFMPEG_LIBRARIES} SDL2::SDL2)

install(TARGETS ${TARGET})
4 changes: 2 additions & 2 deletions modules/video/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ set(VIDEO_SRC
)

add_library(${TARGET} STATIC ${VIDEO_SRC})
target_link_libraries(${TARGET} PRIVATE ${FFMPEG_LIBRARIES} SDL2::SDL2-static)
target_link_libraries(${TARGET} PRIVATE ${FFMPEG_LIBRARIES} SDL2::SDL2)

add_library(${TARGET}_wrapper SHARED ${VIDEO_SRC}) # required for bindings
target_link_libraries(${TARGET}_wrapper PRIVATE ${FFMPEG_LIBRARIES} SDL2::SDL2-static)
target_link_libraries(${TARGET}_wrapper PRIVATE ${FFMPEG_LIBRARIES} SDL2::SDL2)

install(TARGETS ${TARGET} ${TARGET}_wrapper)

0 comments on commit 332e676

Please sign in to comment.