|
@@ -168,14 +168,29 @@ if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
|
|
|
qt_add_executable(openPilotLog
|
|
|
${PROJECT_SOURCES}
|
|
|
${QM_FILES}
|
|
|
+ ${app_icon_macos}
|
|
|
)
|
|
|
else()
|
|
|
add_executable(openPilotLog
|
|
|
${PROJECT_SOURCES}
|
|
|
${QM_FILES}
|
|
|
+ ${app_icon_macos}
|
|
|
)
|
|
|
endif()
|
|
|
|
|
|
+
|
|
|
+set_target_properties(openPilotLog PROPERTIES
|
|
|
+ MACOSX_BUNDLE TRUE
|
|
|
+)
|
|
|
+# The MACOSX_BUNDLE_ICON_FILE variable is added to the Info.plist
|
|
|
+# generated by CMake. This variable contains the .icns file name,
|
|
|
+# without the path.
|
|
|
+set(MACOSX_BUNDLE_ICON_FILE icon_ios.icns)
|
|
|
+
|
|
|
+# And the following tells CMake where to find and install the file itself.
|
|
|
+set(app_icon_macos "${CMAKE_CURRENT_SOURCE_DIR}/assets/opl-icons/app/icon_ios.icns")
|
|
|
+set_source_files_properties(${app_icon_macos} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
|
|
|
+
|
|
|
# target_link_libraries(openPilotLog PRIVATE Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::Sql Qt${QT_VERSION_MAJOR}::Network OpenSSL::SSL)
|
|
|
target_link_libraries(openPilotLog PRIVATE Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::Sql Qt${QT_VERSION_MAJOR}::Network)
|
|
|
|