add shim executable and CMakeLists
[oweals/ucert.git] / CMakeLists.txt
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644 (file)
index 0000000..5b63312
--- /dev/null
@@ -0,0 +1,12 @@
+cmake_minimum_required(VERSION 2.6)
+
+PROJECT(ucert C)
+ADD_DEFINITIONS(-Os -ggdb -Wall --std=gnu99 -Wmissing-declarations)
+
+SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
+
+find_library(json NAMES json-c json)
+
+ADD_EXECUTABLE(ucert ucert.c)
+TARGET_LINK_LIBRARIES(ucert ubox blobmsg_json ${json})
+INSTALL(TARGETS ucert RUNTIME DESTINATION bin)