view win95kggui/dep/ft2play/CMakeLists.txt @ 132:71df0cf3aa05 default tip

add create.py this is a script to render out video files from entire albums, singles, or EPs. eventually it can be edited to be more robust (such as automatically finding discogs/musicbrainz links) but I think it's pretty damn good for now. It's basically just an ffmpeg frontend with a few hardcoded options that are suitable for this kind of thing.
author Paper <paper@tflc.us>
date Fri, 02 Jan 2026 10:35:03 -0500
parents 8e4ee43d3b81
children
line wrap: on
line source

cmake_minimum_required(VERSION 3.7)

project(ft2play C)

find_package(SDL2 REQUIRED)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${ft2play_SOURCE_DIR}/ft2play/release/other/")

file(GLOB ft2play_SRC
    "${ft2play_SOURCE_DIR}/audiodrivers/sdl/*.c"
    "${ft2play_SOURCE_DIR}/*.c"
    "${ft2play_SOURCE_DIR}/ft2play/src/*.c"
)

add_executable(ft2play ${ft2play_SRC})

target_include_directories(ft2play SYSTEM
    PRIVATE ${SDL2_INCLUDE_DIRS})

if("${SDL2_LIBRARIES}" STREQUAL "")
    message(WARNING "SDL2_LIBRARIES wasn't set, manually setting to SDL2::SDL2")
    set(SDL2_LIBRARIES "SDL2::SDL2")
endif()

target_link_libraries(ft2play
    PRIVATE m pthread ${SDL2_LIBRARIES})

target_compile_definitions(ft2play
    PRIVATE AUDIODRIVER_SDL)

install(TARGETS ft2play
    RUNTIME DESTINATION bin)