summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/CMakeLists.txt8
-rw-r--r--tools/Makefile.am5
2 files changed, 8 insertions, 5 deletions
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
new file mode 100644
index 0000000..70ec3b3
--- /dev/null
+++ b/tools/CMakeLists.txt
@@ -0,0 +1,8 @@
+include_directories (${CMAKE_SOURCE_DIR}/libusbmuxd)
+link_directories (${CMAKE_BINARY_DIR}/libusbmuxd)
+
+add_definitions(-Wall -O2 -g)
+add_executable(iproxy iproxy.c)
+target_link_libraries(iproxy libusbmuxd pthread)
+
+install(TARGETS iproxy RUNTIME DESTINATION bin) \ No newline at end of file
diff --git a/tools/Makefile.am b/tools/Makefile.am
deleted file mode 100644
index 5d20bbf..0000000
--- a/tools/Makefile.am
+++ /dev/null
@@ -1,5 +0,0 @@
-bin_PROGRAMS = iproxy
-
-iproxy_SOURCES = iproxy.c
-iproxy_CFLAGS = -I$(top_srcdir)/src
-iproxy_LDADD = ../src/libusbmuxd.la