summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorLoïc Collignon <loic.collignon@iot.bzh>2018-07-09 17:04:57 +0200
committerLoïc Collignon <loic.collignon@iot.bzh>2018-07-10 19:29:31 +0200
commit6ac46af41abf9f201ecfb87b554b7e45e33bce16 (patch)
treee9821b7b91d84e6eafc66fa50221984797740db0 /CMakeLists.txt
parentbc11d604c87c2a04406e0750106e17a5c32f2e27 (diff)
Fix compilation and deployment
Add CMake definitions so that it use the correct API's version. XML node in config.xml wasn't correct so that it fails to parse. The binary should be placed into a bin sub-directory. Add the missing API import. Fix the dependency name due to renaming. Hack the compilation script so that it can find the widget when yocto and when jenkins (waiting for a fix of the cmake alias in the SDK so that I can get rid of this script) Change-Id: Idaff67d8d63b7163deb16766832cf04349eb0237 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 37683ee..e20b475 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,6 +20,6 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.3)
set(AFB_HELPERS_QTWSCLIENT ON CACHE BOOL "enable Qt's WebSocket client" FORCE)
-add_definitions(-DUSE_API_DYN)
+add_definitions(-DUSE_API_DYN -DAFB_BINDING_WANT_DYNAPI -DAFB_BINDING_VERSION=3)
include(${CMAKE_CURRENT_SOURCE_DIR}/conf.d/cmake/config.cmake)