#------------------------------------------------------------------- # This file is part of the CMake build system for OGRE # (Object-oriented Graphics Rendering Engine) # For the latest info, see http://www.ogre3d.org/ # # The contents of this file are placed in the public domain. Feel # free to make use of it in any way you like. #------------------------------------------------------------------- ############################################################# # Install useful CMake modules. # These are necessary to compile the samples from the install # directory, but can also be used for custom projects. ############################################################# if(WIN32 OR APPLE) set(OGRE_CMAKE_DIR "CMake") else() set(OGRE_CMAKE_DIR "${OGRE_LIB_DIRECTORY}/OGRE/cmake") endif() set(INST_FILES Packages/FindOIS.cmake Packages/FindOGRE.cmake Utils/FindPkgMacros.cmake Utils/PreprocessorUtils.cmake Utils/OgreConfigTargets.cmake Utils/OgreGetVersion.cmake Utils/OgreFindFrameworks.cmake ) set(STATIC_INST_FILES Packages/FindCg.cmake Packages/FindDirectX.cmake Packages/FindFreeImage.cmake Packages/FindFreetype.cmake Packages/FindOpenGLES.cmake Packages/FindPOCO.cmake Packages/FindTBB.cmake Packages/FindZLIB.cmake Packages/FindZZip.cmake ) if (WIN32) set(INST_FILES ${INST_FILES} Templates/VisualStudioUserFile.vcproj.user.in ) endif () if (APPLE) set(INST_FILES ${INST_FILES} Packages/FindIOKit.cmake ) set(STATIC_INST_FILES ${STATIC_INST_FILES} Packages/FindCarbon.cmake Packages/FindCocoa.cmake Packages/FindiPhoneSDK.cmake ) endif () install(FILES ${INST_FILES} DESTINATION ${OGRE_CMAKE_DIR}) if (OGRE_STATIC) install(FILES ${STATIC_INST_FILES} DESTINATION ${OGRE_CMAKE_DIR}) endif ()