From ca2f385a364ed451c7d6fcf79989b517e9f81901 Mon Sep 17 00:00:00 2001 From: roentgen Date: Mar 23 2016 14:52:56 +0000 Subject: Merge pull request #7 from opentoonz/feature-osx-icon Add Icon and Modify toonz/CMakeLists.txt for OSX Bundle --- diff --git a/toonz/sources/toonz/CMakeLists.txt b/toonz/sources/toonz/CMakeLists.txt index 3f6680f..e5a642c 100644 --- a/toonz/sources/toonz/CMakeLists.txt +++ b/toonz/sources/toonz/CMakeLists.txt @@ -326,7 +326,9 @@ qt5_wrap_cpp(SOURCES ${MOC_HEADERS}) if(WIN32) add_executable(OpenToonz_${VERSION} WIN32 ${HEADERS} ${SOURCES} ${OBJCSOURCES} ${RESOURCES} ${RC_FILE}) else() - add_executable(OpenToonz_${VERSION} MACOSX_BUNDLE ${HEADERS} ${SOURCES} ${OBJCSOURCES} ${RESOURCES} ${RC_FILE}) + set(MACOSX_BUNDLE_ICON_FILE "OpenToonz.icns") + set_source_files_properties(OpenToonz.icns PROPERTIES MACOSX_PACKAGE_LOCATION "Resources") + add_executable(OpenToonz_${VERSION} MACOSX_BUNDLE OpenToonz.icns ${HEADERS} ${SOURCES} ${OBJCSOURCES} ${RESOURCES} ${RC_FILE}) #add_definitions(-DTNZBASE_EXPORTS -DTPARAM_EXPORTS -DTXSHEET_EXPORTS -DTFX_EXPORTS -DTAPPTOOLS_EXPORTS -DTTEST_EXPORTS) endif() diff --git a/toonz/sources/toonz/OpenToonz.icns b/toonz/sources/toonz/OpenToonz.icns new file mode 100644 index 0000000..dbd6cfa Binary files /dev/null and b/toonz/sources/toonz/OpenToonz.icns differ