Hesham Wahba avatar Hesham Wahba committed 77b11ff

more cmake cleanup

Comments (0)

Files changed (1)

IbexMac/CMakeLists.txt

     # Note that the image plugins depend on QtSvg and QtXml, and it got those copied
     # over.
     if(OGRE)
-    INSTALL(CODE "
-        execute_process(COMMAND \"rm -rf ${CMAKE_INSTALL_PREFIX}/ibex.app/Contents/Frameworks/*.framework\")
-        " COMPONENT Runtime)
+        INSTALL(CODE "
+            execute_process(COMMAND \"rm -rf ${CMAKE_INSTALL_PREFIX}/ibex.app/Contents/Frameworks/*.framework\")
+            " COMPONENT Runtime)
     endif(OGRE)
 
     INSTALL(CODE "
         " COMPONENT Runtime)
         execute_process(COMMAND /usr/bin/mkdir \"-p ${CMAKE_INSTALL_PREFIX}/ibex.app/Contents/Frameworks/\")
     execute_process(COMMAND /usr/bin/cp -fR \"~/Downloads/OgreSDK/lib/macosx/Release/*\" \"${CMAKE_INSTALL_PREFIX}/ibex.app/Contents/Frameworks/\")
-    #INSTALL(CODE "
-    #    file(GLOB_RECURSE IBEX_LIBS \"\${CMAKE_INSTALL_PREFIX}/*\")
-     #   include(BundleUtilities)
-       # fixup_bundle(\"${APPS}\" \"\" \"\")
-      #  " COMPONENT Runtime)
 
     #install_name_tool -change "@loader_path/../lib/libvlccore.5.dylib" "@loader_path/../MacOS/libvlccore.5.dylib"   liblibbluray_plugin.dylib
     INSTALL(CODE "
         endforeach(f)
     " COMPONENT Runtime)
 
-
-
     # these are the OS X Interface Builder Files
     set (ibex_XIBS
       MainMenu
                                  " COMPONENT Runtime)
     endforeach()
 
-    #if(OGRE)
-    INSTALL(CODE "
-        execute_process(COMMAND bash -c \"cp -fR ~/Downloads/OgreSDK/lib/macosx/Release/* ${CMAKE_INSTALL_PREFIX}/ibex.app/Contents/Frameworks/\")
-        " COMPONENT Runtime)
-    #endif(OGRE)
+    if(OGRE)
+        INSTALL(CODE "
+            execute_process(COMMAND bash -c \"cp -fR ~/Downloads/OgreSDK/lib/macosx/Release/* ${CMAKE_INSTALL_PREFIX}/ibex.app/Contents/Frameworks/\")
+            " COMPONENT Runtime)
+    endif(OGRE)
 
     # To Create a package, one can run "cpack -G DragNDrop CPackConfig.cmake" on Mac OS X
     # where CPackConfig.cmake is created by including CPack
     # And then there's ways to customize this as well
-    #set(CPACK_BINARY_DRAGNDROP ON)
-    #include(CPack)
+    set(CPACK_BINARY_DRAGNDROP ON)
+    include(CPack)
 ENDIF(APPLE)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.