cmake generate_export_header examples

Signatures

generate_export_header( LIBRARY_TARGET
  [BASE_NAME <base_name>]
  [EXPORT_MACRO_NAME <export_macro_name>]
  [EXPORT_FILE_NAME <export_file_name>]
  [DEPRECATED_MACRO_NAME <deprecated_macro_name>]
  [NO_EXPORT_MACRO_NAME <no_export_macro_name>]
  [INCLUDE_GUARD_NAME <include_guard_name>]
  [STATIC_DEFINE <static_define>]
  [NO_DEPRECATED_MACRO_NAME <no_deprecated_macro_name>]
  [DEFINE_NO_DEPRECATED]
  [PREFIX_NAME <prefix_name>]
  [CUSTOM_CONTENT_FROM_VARIABLE <variable>]
)

Examples

f3d-app/f3d library/CMakeLists.txt :145

generate_export_header(libf3d
  EXPORT_FILE_NAME public/export.h
  BASE_NAME F3D
  ${libf3d_no_deprecated})

RavEngine/RavEngine deps/SteamAudio-All/libmysofa/src/CMakeLists.txt :115

generate_export_header(mysofa-shared
    BASE_NAME MYSOFA
    EXPORT_FILE_NAME mysofa_export.h
    EXPORT_MACRO_NAME MYSOFA_EXPORT
    STATIC_DEFINE MYSOFA_STATIC
  )

nextcloud/desktop shell_integration/dolphin/CMakeLists.txt :45

generate_export_header(${OWNCLOUDDOLPHINHELPER} BASE_NAME ownclouddolphinpluginhelper)

end2endzone/ShellAnything CMakeLists.txt :249

GENERATE_EXPORT_HEADER( sa.core 
                        BASE_NAME shellanything 
                        EXPORT_MACRO_NAME SHELLANYTHING_EXPORT 
                        EXPORT_FILE_NAME ${SHELLANYTHING_EXPORT_HEADER} 
)

AcademySoftwareFoundation/OpenShadingLanguage src/include/CMakeLists.txt :13

generate_export_header (OSL
          # [BASE_NAME baseName]
          EXPORT_FILE_NAME export.h
          EXPORT_MACRO_NAME OSL_API
          NO_EXPORT_MACRO_NAME OSL_LOCAL
          STATIC_DEFINE OSL_STATIC_DEFINE
          DEPRECATED_MACRO_NAME OSL_DEPRECATED
          # [NO_DEPRECATED_MACRO_NAME noDeprecatedMacroName]
          # [DEFINE_NO_DEPRECATED]
          # [PREFIX_NAME prefix]
          CUSTOM_CONTENT_FROM_VARIABLE exportextras
          )

KDE/digikam core/app/DigikamCoreTarget.cmake :86

generate_export_header(digikamcore BASE_NAME digikam EXPORT_FILE_NAME "${CMAKE_CURRENT_BINARY_DIR}/utils/digikam_core_export.h")

erleben/OpenTissue OpenTissue/graphics/CMakeLists.txt :30

generate_export_header(OpenTissueGraphics
  BASE_NAME graphics
  EXPORT_MACRO_NAME GRAPHICS_API
  DEPRECATED_MACRO_NAME GRAPHICS_DEPRECATED_API
  PREFIX_NAME OT_
  ${NO_BUILD_DEPRECATED}
)

nv-legate/legate share/legate/mpi_wrapper/CMakeLists.txt :69

generate_export_header(
  mpi_wrapper
    BASE_NAME        LEGATE_MPI_WRAPPER
    EXPORT_FILE_NAME "${binary_include_dir}/legate_mpi_wrapper/legate_mpi_wrapper_exports.h"
)

ossia/score src/plugins/score-plugin-gfx/3rdparty/libisf/CMakeLists.txt :24

generate_export_header(isf BASE_NAME ISF)

chdb-io/chdb contrib/mongo-cxx-driver-cmake/CMakeLists.txt :52

generate_export_header(_bsoncxx
        BASE_NAME BSONCXX
        EXPORT_MACRO_NAME BSONCXX_API
        NO_EXPORT_MACRO_NAME BSONCXX_PRIVATE
        EXPORT_FILE_NAME ${BSONCXX_BINARY_DIR}/lib/bsoncxx/v_noabi/bsoncxx/config/export.hpp
        STATIC_DEFINE BSONCXX_STATIC
)

AMICI-dev/AMICI ThirdParty/sundials/src/sundials/CMakeLists.txt :158

generate_export_header(
  sundials_core BASE_NAME SUNDIALS
  EXPORT_FILE_NAME
  "${PROJECT_BINARY_DIR}/include/sundials/sundials_export.h"
)

projectM-visualizer/projectm cmake/GenerateExportHeader.cmake :19

GENERATE_EXPORT_HEADER( LIBRARY_TARGET
             [BASE_NAME <base_name>]
             [EXPORT_MACRO_NAME <export_macro_name>]
             [EXPORT_FILE_NAME <export_file_name>]
             [DEPRECATED_MACRO_NAME <deprecated_macro_name>]
             [NO_EXPORT_MACRO_NAME <no_export_macro_name>]
             [INCLUDE_GUARD_NAME <include_guard_name>]
             [STATIC_DEFINE <static_define>]
             [NO_DEPRECATED_MACRO_NAME <no_deprecated_macro_name>]
             [DEFINE_NO_DEPRECATED]
             [PREFIX_NAME <prefix_name>]
             [CUSTOM_CONTENT_FROM_VARIABLE <variable>]
   )

percona/percona-xtrabackup plugin/x/client/CMakeLists.txt :63

GENERATE_EXPORT_HEADER(mysqlxclient_shared
  BASE_NAME mysqlxclient)

mysql/mysql-server plugin/x/client/CMakeLists.txt :64

GENERATE_EXPORT_HEADER(mysqlxclient_shared
  BASE_NAME mysqlxclient)

mysql/mysql-router src/harness/CMakeLists.txt :203

generate_export_header(harness-library
  BASE_NAME HARNESS
  EXPORT_FILE_NAME ${MySQLRouter_BINARY_DIR}/include/harness_export.h)

apache/kudu src/kudu/client/CMakeLists.txt :169

generate_export_header(kudu_client_exported
  BASE_NAME kudu
  EXPORT_FILE_NAME ${CMAKE_BINARY_DIR}/src/kudu/util/kudu_export.h)

AcademySoftwareFoundation/OpenImageIO src/include/CMakeLists.txt :11

generate_export_header (${PROJECT_NAME}
          # [BASE_NAME baseName]
          EXPORT_FILE_NAME export.h
          EXPORT_MACRO_NAME ${PROJ_NAME}_API
          NO_EXPORT_MACRO_NAME ${PROJ_NAME}_LOCAL
          STATIC_DEFINE ${PROJ_NAME}_STATIC_DEFINE
          DEPRECATED_MACRO_NAME ${PROJ_NAME}_DEPRECATED
          # [NO_DEPRECATED_MACRO_NAME noDeprecatedMacroName]
          # [DEFINE_NO_DEPRECATED]
          # [PREFIX_NAME prefix]
          CUSTOM_CONTENT_FROM_VARIABLE exportextras
          )

KDE/qca CMakeLists.txt :384

generate_export_header(${QCA_LIB_NAME} BASE_NAME qca)

BioMedIA/MIRTK CMake/Modules/mirtkAddLibrary.cmake :87

generate_export_header(${target_uid}
    PREFIX_NAME              "MIRTK_"
    BASE_NAME                "${PROJECT_NAME}"
    EXPORT_MACRO_NAME        "${PROJECT_NAME}_EXPORT"
    NO_EXPORT_MACRO_NAME     "${PROJECT_NAME}_NO_EXPORT"
    DEPRECATED_MACRO_NAME    "${PROJECT_NAME}_DEPRECATED"
    NO_DEPRECATED_MACRO_NAME "${PROJECT_NAME}_NO_DEPRECATED"
    STATIC_DEFINE            "${PROJECT_NAME}_STATIC_DEFINE"
    EXPORT_FILE_NAME         "${BINARY_INCLUDE_DIR}/${PROJECT_PACKAGE_NAME_L}/${PROJECT_NAME}Export.h"
  )

fooyin/fooyin cmake/FooyinMacrosInternal.cmake :37

generate_export_header(
        ${name}
        BASE_NAME
        fy${base_name}
        EXPORT_FILE_NAME
        ${CMAKE_CURRENT_BINARY_DIR}/fy${base_name}_export.h
    )

polycube-network/polycube src/libs/prometheus-cpp/core/CMakeLists.txt :40

generate_export_header(core
  BASE_NAME ${PROJECT_NAME}-core
  EXPORT_FILE_NAME include/prometheus/detail/core_export.h
)

Dreamtowards/Ethertia lib/_misc/nbt/CMakeLists.txt :48

generate_export_header(nbt++ BASE_NAME nbt)

zeromq/zmqpp CMakeLists.txt :152

generate_export_header(zmqpp-static BASE_NAME zmqpp)

InsightSoftwareConsortium/ITK Modules/ThirdParty/VNL/src/vxl/config/cmake/config/vxl_utils.cmake :197

generate_export_header(${LSLHVP_TARGET_NAME}
       BASE_NAME ${LSLHVP_BASE_NAME}
       EXPORT_FILE_NAME ${LSLHVP_EXPORT_HEADER_FILE}
  )

cutelyst/cutelyst Cutelyst/CMakeLists.txt :106

generate_export_header(${target_name} BASE_NAME CUTELYST)

logicalclocks/rondb router/src/harness/src/CMakeLists.txt :178

generate_export_header(harness-library
  BASE_NAME HARNESS
  EXPORT_FILE_NAME ${MySQLRouter_BINARY_DIR}/include/harness_export.h)

KDE/marble src/lib/astro/CMakeLists.txt :32

generate_export_header(astro BASE_NAME astrolib)

ClickHouse/ClickHouse contrib/mongo-cxx-driver-cmake/CMakeLists.txt :52

generate_export_header(_bsoncxx
        BASE_NAME BSONCXX
        EXPORT_MACRO_NAME BSONCXX_API
        NO_EXPORT_MACRO_NAME BSONCXX_PRIVATE
        EXPORT_FILE_NAME ${BSONCXX_BINARY_DIR}/lib/bsoncxx/v_noabi/bsoncxx/config/export.hpp
        STATIC_DEFINE BSONCXX_STATIC
)

jupp0r/prometheus-cpp core/CMakeLists.txt :52

generate_export_header(core
  BASE_NAME ${PROJECT_NAME}-core
  EXPORT_FILE_NAME include/prometheus/detail/core_export.h
)

pingcap/tiflash contrib/prometheus-cpp-cmake/core/CMakeLists.txt :40

generate_export_header(core
  BASE_NAME ${PROJECT_NAME}-core
  EXPORT_FILE_NAME include/prometheus/detail/core_export.h
)

ornladios/ADIOS2 examples/plugins/engine/CMakeLists.txt :19

generate_export_header(adios2_plugins_exampleWritePlugin BASE_NAME plugin_engine_write)

heal-research/operon CMakeLists.txt :189

generate_export_header(
    operon_operon
    BASE_NAME operon
    EXPORT_FILE_NAME export/operon/operon_export.hpp
    CUSTOM_CONTENT_FROM_VARIABLE pragma_suppress_c4251
)

mantidproject/mantid buildconfig/CMake/GenerateMantidExportHeader.cmake :37

generate_export_header(
    "${TARGET_LIBRARY}"
    BASE_NAME
    "MANTID_${TARGET_NAME}"
    PREFIX_NAME
    ""
    EXPORT_FILE_NAME
    "Mantid${TARGET_LIBRARY}/DllConfig.h"
    EXPORT_MACRO_NAME
    "MANTID_${TARGET_NAME}_DLL"
    DEPRECATED_MACRO_NAME
    "MANTID_${TARGET_NAME}_DEPRECATED"
    CUSTOM_CONTENT_FROM_VARIABLE
    CUSTOM
  )

ossia/libossia src/ossia_setup.cmake :144

generate_export_header(ossia BASE_NAME OSSIA ALWAYS_EXPORT DLLIMPORT)

libjxl/libjxl lib/jxl.cmake :80

generate_export_header(jxl_export
  BASE_NAME JXL
  EXPORT_FILE_NAME include/jxl/jxl_export.h)

vxl/vxl config/cmake/config/vxl_utils.cmake :197

generate_export_header(${LSLHVP_TARGET_NAME}
       BASE_NAME ${LSLHVP_BASE_NAME}
       EXPORT_FILE_NAME ${LSLHVP_EXPORT_HEADER_FILE}
  )

mutable-org/mutable CMakeLists.txt :266

generate_export_header(
    ${PROJECT_NAME}
    BASE_NAME "M"
    EXPORT_FILE_NAME "${CMAKE_CURRENT_SOURCE_DIR}/include/mutable/mutable-config.hpp"
)

n4n0GH/hello window-decoration/libhellocommon/CMakeLists.txt :15

generate_export_header(hellocommon5
    BASE_NAME hellocommon
    EXPORT_FILE_NAME hellocommon_export.h)

troldal/OpenXLSX OpenXLSX/CMakeLists.txt :201

generate_export_header(OpenXLSX
        BASE_NAME openxlsx
        EXPORT_FILE_NAME OpenXLSX-Exports.hpp
        EXPORT_MACRO_NAME OPENXLSX_EXPORT
        NO_EXPORT_MACRO_NAME OPENXLSX_HIDDEN)

LMMS/lmms cmake/modules/BuildPlugin.cmake :83

GENERATE_EXPORT_HEADER(${PLUGIN_NAME}
		BASE_NAME ${PLUGIN_EXPORT_BASE_NAME}
	)

facebook/mysql-5.6 router/src/harness/src/CMakeLists.txt :179

generate_export_header(harness-library
  BASE_NAME HARNESS
  EXPORT_FILE_NAME ${MySQLRouter_BINARY_DIR}/include/harness_export.h)

polardb/polardbx-engine router/src/harness/src/CMakeLists.txt :179

generate_export_header(harness-library
  BASE_NAME HARNESS
  EXPORT_FILE_NAME ${MySQLRouter_BINARY_DIR}/include/harness_export.h)

OpenKinect/libfreenect2 CMakeLists.txt :427

GENERATE_EXPORT_HEADER(freenect2
  BASE_NAME libfreenect2
  EXPORT_FILE_NAME libfreenect2/export.h
)

zzag/plasma5-wallpapers-dynamic src/lib/CMakeLists.txt :44

generate_export_header(kdynamicwallpaper
    BASE_NAME KDynamicWallpaper
    EXPORT_MACRO_NAME KDYNAMICWALLPAPER_EXPORT
)

skmp/reicast-emulator CMakeLists.txt :284

GENERATE_EXPORT_HEADER (reicast
        BASE_NAME reicast
        EXPORT_MACRO_NAME reicast_EXPORT
        EXPORT_FILE_NAME reicast_Export.h
        STATIC_DEFINE reicast_BUILT_AS_STATIC
      )

gemrb/gemrb gemrb/core/CMakeLists.txt :180

GENERATE_EXPORT_HEADER(gemrb_core BASE_NAME GEM EXPORT_FILE_NAME ../includes/gem-core-export.h CUSTOM_CONTENT_FROM_VARIABLE EXTENDED_EXPORTS)

chemfiles/chemfiles CMakeLists.txt :192

generate_export_header(chemfiles
    BASE_NAME CHFL
    EXPORT_FILE_NAME ${PROJECT_BINARY_DIR}/include/chemfiles/exports.h
)

qcoro/qcoro cmake/AddQCoroLibrary.cmake :173

generate_export_header(
            ${target_name}
            BASE_NAME ${export_name}
        )

GPUOpen-LibrariesAndSDKs/Capsaicin src/core/CMakeLists.txt :45

generate_export_header(capsaicin BASE_NAME capsaicin)

GreatSQL/GreatSQL router/src/harness/src/CMakeLists.txt :177

generate_export_header(harness-library
  BASE_NAME HARNESS
  EXPORT_FILE_NAME ${MySQLRouter_BINARY_DIR}/include/harness_export.h)

dlstreamer/dlstreamer src/monolithic/gst/elements/gvametapublish/CMakeLists.txt :28

generate_export_header(${TARGET_NAME}
    BASE_NAME ${TARGET_NAME}
    EXPORT_MACRO_NAME GVAMETAPUBLISH_EXPORTS
)

sakurs2/tinyCoroLab CMakeLists.txt :119

generate_export_header(${PROJECT_NAME} BASE_NAME CORO EXPORT_FILE_NAME include/coro/export.hpp)

percona/percona-xtradb-cluster router/src/harness/src/CMakeLists.txt :181

generate_export_header(harness-library
  BASE_NAME HARNESS
  EXPORT_FILE_NAME ${MySQLRouter_BINARY_DIR}/include/harness_export.h)

fpagliughi/sockpp src/CMakeLists.txt :100

generate_export_header(sockpp-shared
        BASE_NAME sockpp
        EXPORT_FILE_NAME ${SOCKPP_GENERATED_DIR}/include/sockpp/export.h
    )

orbbec/OrbbecSDK_v2 src/CMakeLists.txt :26

generate_export_header(OrbbecSDK BASE_NAME OB EXPORT_FILE_NAME ${OB_PUBLIC_HEADERS_DIR}/libobsensor/h/Export.h)

percona/percona-server router/src/harness/src/CMakeLists.txt :181

generate_export_header(harness-library
  BASE_NAME HARNESS
  EXPORT_FILE_NAME ${MySQLRouter_BINARY_DIR}/include/harness_export.h)

apache/celix libs/dfi/CMakeLists.txt :48

generate_export_header(dfi
			BASE_NAME "CELIX_DFI"
			EXPORT_FILE_NAME "${CMAKE_BINARY_DIR}/celix/gen/includes/dfi/celix_dfi_export.h")

open62541/open62541 CMakeLists.txt :780

generate_export_header(mdnsd EXPORT_FILE_NAME "${PROJECT_BINARY_DIR}/src_generated/mdnsd_config.h"
                           BASE_NAME MDNSD DEFINE_NO_DEPRECATED CUSTOM_CONTENT_FROM_VARIABLE MDNSD_CONFIG_EXTRA)

MiKTeX/miktex Libraries/3rd/lua53/CMakeLists.txt :89

generate_export_header(${lua53_target_library}
    BASE_NAME MIKTEX_LUA
    EXPORT_FILE_NAME ${CMAKE_CURRENT_BINARY_DIR}/include/miktex/lua/export.h
    STATIC_DEFINE MIKTEX_LUA_STATIC
)

mpeg5/xeve src_base/CMakeLists.txt :44

generate_export_header(${LIB_NAME_BASE}
                       BASE_NAME XEVE
                       EXPORT_FILE_NAME ${CMAKE_BINARY_DIR}/xeve_exports.h)

oofem/oofem CMakeLists.txt :832

generate_export_header (liboofem
        BASE_NAME OOFEM
    )

USEPA/Stormwater-Management-Model src/outfile/CMakeLists.txt :32

generate_export_header(swmm-output
    BASE_NAME swmm_output
    EXPORT_MACRO_NAME EXPORT_OUT_API
    EXPORT_FILE_NAME swmm_output_export.h
    STATIC_DEFINE SHARED_EXPORTS_BUILT_AS_STATIC
)

ucla-vision/xivo thirdparty/Pangolin/src/CMakeLists.txt :645

GENERATE_EXPORT_HEADER( ${LIBRARY_NAME}
        BASE_NAME ${LIBRARY_NAME_CAPS}
        EXPORT_MACRO_NAME ${LIBRARY_NAME_CAPS}_EXPORT
        EXPORT_FILE_NAME "${CMAKE_CURRENT_BINARY_DIR}/include/${LIBRARY_NAME}/${LIBRARY_NAME}_export.h"
        STATIC_DEFINE ${LIBRARY_NAME_CAPS}_BUILT_AS_STATIC
    )

chili-epfl/chilitags src/CMakeLists.txt :35

generate_export_header(chilitags
    BASE_NAME CHILITAGS
    EXPORT_FILE_NAME ${PROJECT_BINARY_DIR}/chilitags_export.hpp
)

fcitx/fcitx5 src/lib/fcitx/CMakeLists.txt :100

generate_export_header(Fcitx5Core BASE_NAME FcitxCore)

eclipse-cyclonedds/cyclonedds src/core/cdr/CMakeLists.txt :52

generate_export_header(
  cdr BASE_NAME DDS EXPORT_FILE_NAME include/dds/export.h)