Mercurial > hg > freeDiameter
view extensions/_sample/CMakeLists.txt @ 1493:a89913941dcf
extensions: hide symbols by default
Hide extension.fdx symbols by default, by setting the
target property <LANG>C_VISIBILITY_PRESET hidden.
This requires cmake 2.8+
Explicitly export fd_ext_init() and fd_ext_fini(),
using gcc or clang's __attribute__((visibility()))
author | Luke Mewburn <luke@mewburn.net> |
---|---|
date | Mon, 30 Mar 2020 15:31:48 +1100 |
parents | b415d1384e0d |
children |
line wrap: on
line source
# The sample extension PROJECT("Sample extension") # Compile as a module FD_ADD_EXTENSION(dbg_sample sample.c hello.cpp fini.c) #### ## INSTALL section ## # Uncomment the following lines to have the extension installed # INSTALL(TARGETS dbg_sample # LIBRARY DESTINATION ${INSTALL_EXTENSIONS_SUFFIX} # COMPONENT freeDiameter-debug-tools)