diff options
Diffstat (limited to 'plugins/samples')
-rw-r--r-- | plugins/samples/CMakeLists.txt | 16 | ||||
-rw-r--r-- | plugins/samples/export.map | 1 |
2 files changed, 14 insertions, 3 deletions
diff --git a/plugins/samples/CMakeLists.txt b/plugins/samples/CMakeLists.txt index c3c305ca..271fb850 100644 --- a/plugins/samples/CMakeLists.txt +++ b/plugins/samples/CMakeLists.txt @@ -1,19 +1,29 @@ + INCLUDE_DIRECTORIES(${include_dirs}) ADD_LIBRARY(helloWorld-api MODULE HelloWorld.c) -SET_TARGET_PROPERTIES(helloWorld-api PROPERTIES PREFIX "") +SET_TARGET_PROPERTIES(helloWorld-api PROPERTIES + PREFIX "" + LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/export.map" +) TARGET_LINK_LIBRARIES(helloWorld-api ${link_libraries}) INSTALL(TARGETS helloWorld-api LIBRARY DESTINATION ${plugin_install_dir}) ADD_LIBRARY(samplePost-api MODULE SamplePost.c) -SET_TARGET_PROPERTIES(samplePost-api PROPERTIES PREFIX "") +SET_TARGET_PROPERTIES(samplePost-api PROPERTIES + PREFIX "" + LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/export.map" +) TARGET_LINK_LIBRARIES(samplePost-api ${link_libraries}) INSTALL(TARGETS samplePost-api LIBRARY DESTINATION ${plugin_install_dir}) ADD_LIBRARY(clientCtx-api MODULE ClientCtx.c) -SET_TARGET_PROPERTIES(clientCtx-api PROPERTIES PREFIX "") +SET_TARGET_PROPERTIES(clientCtx-api PROPERTIES + PREFIX "" + LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/export.map" +) TARGET_LINK_LIBRARIES(clientCtx-api ${link_libraries}) INSTALL(TARGETS clientCtx-api LIBRARY DESTINATION ${plugin_install_dir}) diff --git a/plugins/samples/export.map b/plugins/samples/export.map new file mode 100644 index 00000000..e2da85ca --- /dev/null +++ b/plugins/samples/export.map @@ -0,0 +1 @@ +{ global: pluginAfbV1Register; local: *; }; |