Replace CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS by generate_export_header

This commit is contained in:
Martin Delille 2023-01-26 15:19:30 +01:00
parent ff468e59b3
commit 0f47fe1e80
No known key found for this signature in database
GPG Key ID: C073D887B6E32DE5

View File

@ -1,7 +1,5 @@
project(QtAwesome)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
add_library(QtAwesome
QtAwesome.cpp
QtAwesomeAnim.cpp
@ -15,3 +13,10 @@ target_include_directories(QtAwesome
target_link_libraries(QtAwesome PUBLIC
Qt${QT_VERSION_MAJOR}::Widgets
)
include(GenerateExportHeader)
generate_export_header(QtAwesome
BASE_NAME
EXPORT_MACRO_NAME QTAWESOME_EXPORT
EXPORT_FILE_NAME QtAwesome_export.h
STATIC_DEFINE QTAWESOME_BUILT_AS_STATIC)