diff options
author | José Bollo <jose.bollo@iot.bzh> | 2018-07-08 19:00:51 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2018-07-08 21:27:48 +0200 |
commit | 42b655f3cbd208fe31f634d9249f24f9cc712237 (patch) | |
tree | fd6c78ed015210c4bd84bf2acfef788d2328e235 /bindings/samples/CMakeLists.txt | |
parent | 298f6971156660067cc00cbcb01966791d30ea93 (diff) |
hello2: Add a binding v2 example
Needed for test of bindings v2.
Change-Id: I33f8b497428bf03f8f80ad26bcdec773d269f41d
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'bindings/samples/CMakeLists.txt')
-rw-r--r-- | bindings/samples/CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bindings/samples/CMakeLists.txt b/bindings/samples/CMakeLists.txt index d4e85e30..e7b96474 100644 --- a/bindings/samples/CMakeLists.txt +++ b/bindings/samples/CMakeLists.txt @@ -104,6 +104,18 @@ INSTALL(TARGETS hi3 LIBRARY DESTINATION ${binding_install_dir}) ################################################## +# hello2 +################################################## +ADD_LIBRARY(hello2 MODULE hello2.c) +SET_TARGET_PROPERTIES(hello2 PROPERTIES + PREFIX "" + LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/export.map" +) +TARGET_LINK_LIBRARIES(hello2 ${link_libraries}) +INSTALL(TARGETS hello2 + LIBRARY DESTINATION ${binding_install_dir}) + +################################################## # hello3 ################################################## ADD_LIBRARY(hello3 MODULE hello3.c) |