summaryrefslogtreecommitdiff
path: root/src/flac/CMakeLists.txt
blob: 3fb2e2f7a7181cecf3613d9b4a5c0721b7ba0607 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cmake_minimum_required(VERSION 3.12)

check_include_file("sys/ioctl.h" HAVE_SYS_IOCTL_H)
check_include_file("termios.h" HAVE_TERMIOS_H)

add_compile_definitions(
    $<$<BOOL:${HAVE_SYS_IOCTL_H}>:HAVE_SYS_IOCTL_H>
    $<$<BOOL:${HAVE_TERMIOS_H}>:HAVE_TERMIOS_H>)

add_executable(flac
    analyze.c
    decode.c
    encode.c
    foreign_metadata.c
    main.c
    local_string_utils.c
    utils.c
    vorbiscomment.c)
target_link_libraries(flac
    FLAC-static
    getopt
    grabbag
    replaygain_synthesis
    utf8)

install(TARGETS flac EXPORT targets
    RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")