git-subtree-dir: src/3rdParty/libE57Format git-subtree-split: d51a32d6ab7c5dde5e1c68d0ec8ec61d980f06a3
41 lines
799 B
CMake
41 lines
799 B
CMake
# SPDX-License-Identifier: BSL-1.0
|
|
# Copyright 2020 Andy Maloney <asmaloney@gmail.com>
|
|
|
|
# Generate the export header file for E57Format
|
|
|
|
include( GenerateExportHeader )
|
|
|
|
set( comment "\r
|
|
// NOTE: This is a generated file. Any changes will be overwritten."
|
|
)
|
|
|
|
generate_export_header( E57Format
|
|
EXPORT_FILE_NAME E57Export.h
|
|
EXPORT_MACRO_NAME E57_DLL
|
|
CUSTOM_CONTENT_FROM_VARIABLE comment
|
|
)
|
|
|
|
unset( comment )
|
|
|
|
target_sources( E57Format
|
|
PRIVATE
|
|
${CMAKE_CURRENT_BINARY_DIR}/E57Export.h
|
|
)
|
|
|
|
target_include_directories( ${PROJECT_NAME}
|
|
PUBLIC
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
|
|
)
|
|
|
|
target_compile_definitions( E57Format
|
|
PRIVATE
|
|
$<$<BOOL:E57_BUILD_SHARED>:E57Format_EXPORTS>
|
|
)
|
|
|
|
install(
|
|
FILES
|
|
${CMAKE_CURRENT_BINARY_DIR}/E57Export.h
|
|
DESTINATION
|
|
include/E57Format
|
|
)
|