Commit e4b94e31 authored by evpobr's avatar evpobr Committed by Erik de Castro Lopo

Fix Visual Studio solution generation with CMake

Rename flac application target to flacapp to avoid name collision with FLAC library target.

Closes #101.
parent 95a94232
check_include_file("sys/ioctl.h" HAVE_SYS_IOCTL_H)
check_include_file("termios.h" HAVE_TERMIOS_H)
add_executable(flac
add_executable(flacapp
analyze.c
decode.c
encode.c
......@@ -10,14 +10,15 @@ add_executable(flac
local_string_utils.c
utils.c
vorbiscomment.c)
target_link_libraries(flac
set_property(TARGET flacapp PROPERTY RUNTIME_OUTPUT_NAME flac)
target_link_libraries(flacapp
FLAC
getopt
replaygain_synthesis
utf8)
if(TARGET win_utf8_io)
target_link_libraries(flac win_utf8_io)
target_link_libraries(flacapp win_utf8_io)
endif()
install(TARGETS flac EXPORT targets
install(TARGETS flacapp EXPORT targets
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment