diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2007-11-07 04:00:23 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2007-11-07 04:00:23 (GMT) |
commit | 00cfa0ebed42b7daf2acbfe3297c5f630b570d4e (patch) | |
tree | 28c4d221f1f426689cd82848cf2e9bbd7896207b /Source/QtDialog/CMakeLists.txt | |
parent | 768680f4d572bfa6eae37a0793dbda6eee0d146a (diff) | |
download | CMake-00cfa0ebed42b7daf2acbfe3297c5f630b570d4e.zip CMake-00cfa0ebed42b7daf2acbfe3297c5f630b570d4e.tar.gz CMake-00cfa0ebed42b7daf2acbfe3297c5f630b570d4e.tar.bz2 |
ENH: For Mac OSX -- add app icon, and implement find of cmake executable.
Diffstat (limited to 'Source/QtDialog/CMakeLists.txt')
-rw-r--r-- | Source/QtDialog/CMakeLists.txt | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/QtDialog/CMakeLists.txt b/Source/QtDialog/CMakeLists.txt index 81c36cf..55fa412 100644 --- a/Source/QtDialog/CMakeLists.txt +++ b/Source/QtDialog/CMakeLists.txt @@ -28,10 +28,15 @@ ELSE(NOT QT4_FOUND) QT4_ADD_RESOURCES(RC_SRCS CMakeSetup.qrc) SET(SRCS ${SRCS} ${UI_SRCS} ${MOC_SRCS} ${RC_SRCS}) - IF(WIN32) + IF(Q_WS_WIN) SET(SRCS ${SRCS} CMakeSetup.rc) - ENDIF(WIN32) - # TODO Mac OS X icon + ENDIF(Q_WS_WIN) + IF(Q_WS_MAC) + SET(SRCS ${SRCS} CMakeSetup.icns) + SET(MACOSX_BUNDLE_ICON_FILE CMakeSetup.icns) + SET_SOURCE_FILES_PROPERTIES(CMakeSetup.icns PROPERTIES + MACOSX_PACKAGE_LOCATION Resources) + ENDIF(Q_WS_MAC) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) |