diff options
author | Thierry Bultel <thierry.bultel@iot.bzh> | 2018-07-11 17:24:08 +0200 |
---|---|---|
committer | Thierry Bultel <thierry.bultel@iot.bzh> | 2018-07-17 10:50:07 +0200 |
commit | b3303810b1edbe0a9bc7c066fb6c4ea96cb65c12 (patch) | |
tree | e88bb6122b9051a37ea088dfee67e734bee520a5 /binding/CMakeLists.txt | |
parent | e2c836ff4229b158d528aaa537c0f4d216debe3e (diff) |
Set the binding version in cmake instead of source
Setting AFB_BINDING_VERSION is cmake makes merges
easier between branches, since it is always defined
once at a single place instead that in each file
that need it.
Also removed the "INSTALL" section with LIBRARY_DESTINATION
since it is now treated in app-templates.
Change-Id: I7ef5f3b4d2009ab6ec296ac70bfc0a5647f9534c
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
Diffstat (limited to 'binding/CMakeLists.txt')
-rw-r--r-- | binding/CMakeLists.txt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/binding/CMakeLists.txt b/binding/CMakeLists.txt index c295eb0..f4f58f6 100644 --- a/binding/CMakeLists.txt +++ b/binding/CMakeLists.txt @@ -21,6 +21,8 @@ # Add target to project dependency list PROJECT_TARGET_ADD(radio-binding) + add_definitions(-DAFB_BINDING_VERSION=2) + # Define project Targets set(radio_SOURCES radio-binding.c @@ -46,10 +48,6 @@ PROJECT_TARGET_ADD(radio-binding) TARGET_COMPILE_OPTIONS(${TARGET_NAME} PUBLIC ${SOUND_CFLAGS}) TARGET_LINK_LIBRARIES(${TARGET_NAME} ${SOUND_LIBRARIES} ${link_libraries}) - # installation directory - INSTALL(TARGETS ${TARGET_NAME} - LIBRARY DESTINATION ${BINDINGS_INSTALL_DIR}) - # Add helper program target PROJECT_TARGET_ADD(rtl_fm_helper) |