diff --git a/CMakeLists.txt b/CMakeLists.txt index 71933ce..1d1208e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,6 +20,8 @@ set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "") # Dependencies +set_source_files_properties("./res/app.icns" PROPERTIES MACOSX_PACKAGE_LOCATION "Resources") + ## LSL if(ANDROID) set(LIBLSL_SOURCE_PATH "../../LSL/liblsl" CACHE STRING "Path to liblsl sources") @@ -57,7 +59,7 @@ find_package(Threads REQUIRED) add_subdirectory(xdfwriter) if (BUILD_GUI) - add_executable(${PROJECT_NAME} MACOSX_BUNDLE) + add_executable(${PROJECT_NAME} MACOSX_BUNDLE ${app_icon_resource_windows}) target_sources(${PROJECT_NAME} PRIVATE src/main.cpp diff --git a/res/app.icns b/res/app.icns new file mode 100644 index 0000000..fd107f9 Binary files /dev/null and b/res/app.icns differ diff --git a/res/app.ico b/res/app.ico new file mode 100644 index 0000000..4d26071 Binary files /dev/null and b/res/app.ico differ diff --git a/res/app.rc b/res/app.rc new file mode 100644 index 0000000..03a0d37 --- /dev/null +++ b/res/app.rc @@ -0,0 +1 @@ +IDI_ICON1 ICON DISCARDABLE "app.ico" \ No newline at end of file diff --git a/res/icon.png b/res/icon.png new file mode 100644 index 0000000..92ff87d Binary files /dev/null and b/res/icon.png differ