From 12044a43d9d528f153ce50a109a06d87ee6cc528 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 26 Jun 2008 13:08:24 +0000 Subject: [PATCH] From Eric Sokolowski, Cmake support for osgviewerCocoa --- examples/osgviewerCocoa/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 examples/osgviewerCocoa/CMakeLists.txt diff --git a/examples/osgviewerCocoa/CMakeLists.txt b/examples/osgviewerCocoa/CMakeLists.txt new file mode 100644 index 000000000..25488220f --- /dev/null +++ b/examples/osgviewerCocoa/CMakeLists.txt @@ -0,0 +1,10 @@ +FILE(GLOB ui_files_1 "English.lproj/*.strings") +FILE(GLOB ui_files_2 "English.lproj/MainMenu.nib/*.nib") +SET(TARGET_SRC ViewerCocoa.mm main.m Info.plist ${ui_files_1} ${ui_files_2}) + +SET(TARGET_EXTERNAL_LIBRARIES osg ${COCOA_LIBRARY}) +SET_SOURCE_FILES_PROPERTIES(Info.plist PROPERTIES MACOSX_PACKAGE_LOCATION .) +SET_SOURCE_FILES_PROPERTIES(${ui_files_1} PROPERTIES MACOSX_PACKAGE_LOCATION Resources/English.lproj) +SET_SOURCE_FILES_PROPERTIES(${ui_files_2} PROPERTIES MACOSX_PACKAGE_LOCATION Resources/English.lproj/MainMenu.nib) + +SETUP_EXAMPLE(osgviewerCocoa)