From cbb7e6261648ab055d2e88096f3d8c44365a3b43 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Fri, 15 Feb 2013 12:59:39 -0800 Subject: [PATCH] add Grayson's sexy new icon --- interface/CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/interface/CMakeLists.txt b/interface/CMakeLists.txt index 949372a4b0..4476555028 100644 --- a/interface/CMakeLists.txt +++ b/interface/CMakeLists.txt @@ -18,7 +18,18 @@ configure_file(InterfaceConfig.h.in ${PROJECT_BINARY_DIR}/includes/InterfaceConf file(GLOB INTERFACE_SRCS src/*.cpp src/*.h) +# For Apple set the icns file containing icons +IF(APPLE) + # set how it shows up in the Info.plist file + SET(MACOSX_BUNDLE_ICON_FILE interface.icns) + # set where in the bundle to put the icns file + SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_SOURCE_DIR}/interface.icns PROPERTIES MACOSX_PACKAGE_LOCATION Resources) + # include the icns file in the target + SET(INTERFACE_SRCS ${INTERFACE_SRCS} ${CMAKE_CURRENT_SOURCE_DIR}/interface.icns) +ENDIF(APPLE) + add_executable(interface MACOSX_BUNDLE ${INTERFACE_SRCS}) + include(../LinkHifiShared.cmake) link_hifi_shared_library(interface)