mirror of https://github.com/procxx/kepka.git
Add OSX bundle package
This commit is contained in:
parent
e658996dfd
commit
08da461a0e
|
@ -508,11 +508,21 @@ endif()
|
|||
|
||||
add_definitions(-DTDESKTOP_DISABLE_CRASH_REPORTS)
|
||||
|
||||
add_executable(Telegram
|
||||
if (APPLE)
|
||||
set(GUI_TYPE MACOSX_BUNDLE)
|
||||
set(MACOSX_BUNDLE_ICON_FILE Icon.iconset)
|
||||
set_source_files_properties("Telegram/Images.xcassets/${MACOSX_BUNDLE_ICON_FILE}"
|
||||
PROPERTIES
|
||||
MACOSX_PACKAGE_LOCATION Resources)
|
||||
set(APPLE_BUNDLE_SRC "Telegram/Images.xcassets/${MACOSX_BUNDLE_ICON_FILE}")
|
||||
endif()
|
||||
|
||||
add_executable(Telegram ${GUI_TYPE}
|
||||
SourceFiles/stdafx.cpp
|
||||
${APP_SRC}
|
||||
${PLAT_SRC}
|
||||
${THIRD_PARTY_SRC}
|
||||
${APPLE_BUNDLE_SRC}
|
||||
)
|
||||
target_link_libraries(Telegram tg_boxes)
|
||||
target_link_libraries(Telegram Qt5::Core Qt5::Widgets) # crashpad::crashpad_client)
|
||||
|
@ -520,6 +530,13 @@ target_link_libraries(Telegram ${LIBLZMA_LIBRARIES} ${OPENSSL_LIBRARIES} ${ZLIB_
|
|||
|
||||
add_dependencies(Telegram boxes_styles_output)
|
||||
|
||||
if (APPLE)
|
||||
set_target_properties(Telegram
|
||||
PROPERTIES
|
||||
MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Telegram.plist
|
||||
)
|
||||
endif()
|
||||
|
||||
set_target_properties(Telegram
|
||||
PROPERTIES
|
||||
COTIRE_CXX_PREFIX_HEADER_INIT SourceFiles/stdafx.h
|
||||
|
|
Loading…
Reference in New Issue