Changed the way the path to export header file is specified.

This commit is contained in:
Vincent Richard 2013-05-14 19:26:11 +02:00
parent e7e472a544
commit 3ae83c9cf9

View File

@ -107,7 +107,14 @@ IF(VMIME_BUILD_SHARED_LIBRARY)
${VMIME_LIBRARY_NAME} ${VMIME_LIBRARY_NAME}
BASE_NAME VMIME BASE_NAME VMIME
STATIC_DEFINE VMIME_STATIC STATIC_DEFINE VMIME_STATIC
EXPORT_FILE_NAME ${CMAKE_SOURCE_DIR}/vmime/export-shared.hpp EXPORT_FILE_NAME export-shared.hpp
)
FILE(
COPY
${CMAKE_CURRENT_BINARY_DIR}/export-shared.hpp
DESTINATION
${PROJECT_SOURCE_DIR}/vmime
) )
LIST(APPEND VMIME_LIBRARY_GENERATED_INCLUDE_FILES "vmime/export-shared.hpp") LIST(APPEND VMIME_LIBRARY_GENERATED_INCLUDE_FILES "vmime/export-shared.hpp")
@ -145,7 +152,14 @@ IF(VMIME_BUILD_STATIC_LIBRARY)
${VMIME_LIBRARY_NAME}-static ${VMIME_LIBRARY_NAME}-static
BASE_NAME VMIME BASE_NAME VMIME
STATIC_DEFINE VMIME_STATIC STATIC_DEFINE VMIME_STATIC
EXPORT_FILE_NAME ${CMAKE_SOURCE_DIR}/vmime/export-static.hpp EXPORT_FILE_NAME export-static.hpp
)
FILE(
COPY
${CMAKE_CURRENT_BINARY_DIR}/export-static.hpp
DESTINATION
${PROJECT_SOURCE_DIR}/vmime
) )
LIST(APPEND VMIME_LIBRARY_GENERATED_INCLUDE_FILES "vmime/export-static.hpp") LIST(APPEND VMIME_LIBRARY_GENERATED_INCLUDE_FILES "vmime/export-static.hpp")