<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>FindUSB.cmake</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,25 +1,16 @@
+INCLUDE(${PROJECT_SOURCE_DIR}/FindUSB.cmake)
+
+IF(NOT USB_FOUND)
+	message(FATAL_ERROR &quot;libusb is required for xpwn!&quot;)
+ENDIF(NOT USB_FOUND)
+
+include_directories(${USB_INCLUDE_DIR})
+link_directories(${USB_LIBRARIES})
+
 include_directories (include)
 
 add_executable(xpwn-bin src/xpwn.cpp src/libibooter.cpp)
 
-IF(NOT EXISTS ${PROJECT_BINARY_DIR}/libusb)
-	file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/libusb)
-ENDIF(NOT EXISTS ${PROJECT_BINARY_DIR}/libusb)
-
-IF(WIN32)
-	link_directories(libusb-win32)
-	include_directories(libusb-win32/src)
-	add_dependencies(xpwn-bin ${PROJECT_SOURCE_DIR}/libusb.a)
-ELSE(WIN32)
-	link_directories(libusb-0.1.12/.libs)
-	include_directories(libusb-0.1.12)
-	add_dependencies(xpwn-bin ${PROJECT_BINARY_DIR}/libusb/.libs/libusb.a)
-	IF(NOT EXISTS ${PROJECT_BINARY_DIR}/libusb/.libs/libusb.a)
-		execute_process(COMMAND ${PROJECT_SOURCE_DIR}/libusb-0.1.12/configure WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/libusb)
-		execute_process(COMMAND make WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/libusb)
-	ENDIF(NOT EXISTS ${PROJECT_BINARY_DIR}/libusb/.libs/libusb.a)
-ENDIF(WIN32)
-
 target_link_libraries(xpwn-bin usb)
 
 link_directories(${PROJECT_BINARY_DIR}/common ${PROJECT_BINARY_DIR}/hfs ${PROJECT_BINARY_DIR}/ipsw-patch)</diff>
      <filename>xpwn/CMakeLists.txt</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>libusb-0.1.12/AUTHORS</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/COPYING</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/ChangeLog</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/Doxyfile</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/Doxyfile.in</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/INSTALL.libusb</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/INSTALL.libusb.in</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/LICENSE</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/Makefile.am</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/Makefile.in</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/NEWS</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/README</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/README.in</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/acinclude.m4</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/aclocal.m4</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/apidocs/doxygen.css</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/apidocs/doxygen.png</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/apidocs/footer.html</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/apidocs/header.html</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/bsd.c</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/compile</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/config.guess</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/config.h.in</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/config.sub</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/configure</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/configure.in</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/darwin.c</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/depcomp</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/descriptors.c</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/doc/Makefile.am</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/doc/Makefile.in</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/doc/api.sgml</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/doc/examples.sgml</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/doc/functions.sgml</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/doc/intro.sgml</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/doc/manual.sgml</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/doc/website.dsl</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/error.c</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/error.h</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/install-sh</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/libusb-config</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/libusb-config.in</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/libusb.pc</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/libusb.pc.in</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/libusb.spec</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/libusb.spec.in</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/linux.c</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/linux.h</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/ltmain.sh</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/missing</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/stamp-h1</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/tests/Makefile.am</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/tests/Makefile.in</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/tests/descriptor_test.cpp</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/tests/driver_name.cpp</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/tests/find_hubs.cpp</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/tests/find_mice.cpp</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/tests/get_resolution.cpp</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/tests/hub_strings.cpp</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/tests/id_test.cpp</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/tests/testlibusb.c</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/usb.c</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/usb.h</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/usb.h.in</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/usbi.h</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/usbpp.cpp</filename>
    </removed>
    <removed>
      <filename>libusb-0.1.12/usbpp.h</filename>
    </removed>
    <removed>
      <filename>libusb-win32/libusb.a</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>31112ed3cd9f0c5ac89f89b94cf6183bcba7c52a</id>
    </parent>
  </parents>
  <author>
    <name>planetbeing</name>
    <email>planetbeing@gmail.com</email>
  </author>
  <url>http://github.com/planetbeing/xpwn/commit/ee0ed4a2fe14254be0c676b229ff6ff6c0a1bd4e</url>
  <id>ee0ed4a2fe14254be0c676b229ff6ff6c0a1bd4e</id>
  <committed-date>2008-05-31T17:49:38-07:00</committed-date>
  <authored-date>2008-05-31T17:49:38-07:00</authored-date>
  <message>changed to using FindUSB</message>
  <tree>0fba413f30663e7ee58b42d99da56c5d358a2958</tree>
  <committer>
    <name>planetbeing</name>
    <email>planetbeing@gmail.com</email>
  </committer>
</commit>
