Skip to content

This seems to build Shine on Windows (CMakeLists.txt) #45

@ar-visions

Description

@ar-visions

CMakeLists.txt

cmake_minimum_required(VERSION 3.20)
project(libshine)

include_directories(src src/lib src/bin)

add_library(
    shine STATIC
    src/lib/bitstream.c src/lib/huffman.c
    src/lib/l3bitstream.c
    src/lib/l3loop.c 
    src/lib/l3mdct.c 
    src/lib/l3subband.c
    src/lib/layer3.c
    src/lib/reservoir.c
    src/lib/tables.c)
                         
install(
    TARGETS shine
    LIBRARY DESTINATION lib  # for shared libs
    ARCHIVE DESTINATION lib) # for static libs

install(
    DIRECTORY       libshine/include/
    DESTINATION     include
    FILES_MATCHING  PATTERN "*.h")

I integrated shine into prefix, a cmake ci project system. project ion is using shine. it needs CMake projects or ones with an autoconfigure, and for this one I had a generative autotools.cmake; however cmake did not launch with the appropriate environment vars so that configure would generate and then invoke & succeed. So I made this one manually

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions