cmake HAVE_LIBMAGIC examples

whoozle/android-file-transfer-linux CMakeLists.txt :94

check_library_exists(magic magic_open "" HAVE_LIBMAGIC)

whoozle/android-file-transfer-linux CMakeLists.txt :98

add_definitions(-DHAVE_LIBMAGIC)