summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--daemon/CMakeLists.txt3
-rw-r--r--tools/CMakeLists.txt4
3 files changed, 6 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a5e8f1c..01dda18 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,6 +16,8 @@ ENDIF(NOT DEFINED LIB_SUFFIX)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/Modules/")
+add_definitions(-Wall)
+
add_subdirectory (libusbmuxd)
add_subdirectory (daemon)
add_subdirectory (tools)
diff --git a/daemon/CMakeLists.txt b/daemon/CMakeLists.txt
index 52e33bc..1ba052c 100644
--- a/daemon/CMakeLists.txt
+++ b/daemon/CMakeLists.txt
@@ -6,7 +6,8 @@ include_directories (${CMAKE_SOURCE_DIR}/common)
include_directories (${CMAKE_SOURCE_DIR}/daemon)
include_directories (${CMAKE_SOURCE_DIR}/libusbmuxd)
-add_definitions(-Wall -O2 -g -DUSBMUXD_DAEMON -DUSBMUXD_VERSION="${USBMUXD_VERSION}")
+add_definitions(-O2 -g)
+add_definitions(-DUSBMUXD_DAEMON -DUSBMUXD_VERSION="${USBMUXD_VERSION}")
add_executable(usbmuxd main.c usb-linux.c log.c ../common/utils.c device.c client.c)
target_link_libraries(usbmuxd ${LIBS})
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
index 70ec3b3..47ffa90 100644
--- a/tools/CMakeLists.txt
+++ b/tools/CMakeLists.txt
@@ -1,8 +1,8 @@
include_directories (${CMAKE_SOURCE_DIR}/libusbmuxd)
link_directories (${CMAKE_BINARY_DIR}/libusbmuxd)
-add_definitions(-Wall -O2 -g)
+add_definitions(-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
+install(TARGETS iproxy RUNTIME DESTINATION bin)