ugps: add quality measurement parameters
[project/ugps.git] / CMakeLists.txt
index 7fe7a165e56d8f2b56e02426843351af906cee59..ad6cdf0782352dc80611b3e417acb3dd05a3a390 100644 (file)
@@ -1,7 +1,7 @@
 cmake_minimum_required(VERSION 2.6)
 
 PROJECT(ugps C)
-ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations)
+ADD_DEFINITIONS(-Os -ggdb -Wextra -Wall -Werror --std=gnu99 -Wmissing-declarations -Wno-unused-parameter)
 
 SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
 
@@ -19,7 +19,7 @@ INCLUDE_DIRECTORIES(${ubox_include_dir} ${ubus_include_dir})
 
 ADD_EXECUTABLE(ugps ${SOURCES})
 
-TARGET_LINK_LIBRARIES(ugps ${ubox} ${ubus})
+TARGET_LINK_LIBRARIES(ugps ${ubox} ${ubus} m)
 
 INSTALL(TARGETS ugps
        RUNTIME DESTINATION sbin