I just wanted to compile libyuv on Windows but got an error with the intall step. Some things:
- The convert target file is pointing to a wrong location; use $<TARGET_FILE:converrt> instead.
- Why rename the convert target during the install step? Why not rename the target (because renaming a executable is not cross platform;i.e. the .exe is removed)
- Not sure why but the static and shared library gave cmake errors; I suspect character encoding issues.
I've fixed the install steps by using these command; though I'm not renaming the convert target.
INSTALL(PROGRAMS $<TARGET_FILE:convert> DESTINATION bin)
INSTALL(TARGETS ${ly_lib_static} DESTINATION lib)
INSTALL(TARGETS ${ly_lib_shared} LIBRARY DESTINATION lib)
INSTALL(DIRECTORY ${PROJECT_SOURCE_DIR}/include/ DESTINATION include)
roxlu