CMake minimum required lowered to 3.1
[flac.git] / src / flac / CMakeLists.txt
1 check_include_file("sys/ioctl.h" HAVE_SYS_IOCTL_H)
2 check_include_file("termios.h" HAVE_TERMIOS_H)
3
4 add_executable(flac
5     analyze.c
6     decode.c
7     encode.c
8     foreign_metadata.c
9     main.c
10     local_string_utils.c
11     utils.c
12     vorbiscomment.c)
13 target_link_libraries(flac
14     FLAC-static
15     getopt
16     grabbag
17     replaygain_synthesis
18     utf8)
19
20 install(TARGETS flac EXPORT targets
21     RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")