1817ecd464
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@6908 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 2d6241199fa37838e28ff1568c2ce3ad7aafc66f Former-commit-id: c78ae092ff83e83a5e7df2586fa697dccb7a0c1c
51 lines
1.7 KiB
CMake
51 lines
1.7 KiB
CMake
#==============================================================================
|
|
#
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
#
|
|
#==============================================================================
|
|
|
|
INCLUDE(BundleUtilities)
|
|
SET(BU_CHMOD_BUNDLE_ITEMS ON)
|
|
|
|
SET(bundle "@_bundle@")
|
|
|
|
|
|
#SET(loadables @SD_MODULE_LIST_ITEMS@)
|
|
#SET(robots @SD_ROBOT_LIST_ITEMS@)
|
|
#SET(osg_plugins @SD_OSG_PLUGIN_LIST_ITEMS@)
|
|
|
|
SET(plugins "@_loadables@")
|
|
|
|
SET(_prefix_path @CMAKE_PREFIX_PATH@)
|
|
|
|
|
|
# TODO - APPLE specific ?
|
|
SET(search_dirs )
|
|
IF(_prefix_path)
|
|
LIST(APPEND search_dirs "${_prefix_path}")
|
|
ENDIF(_prefix_path)
|
|
LIST(APPEND search_dirs "@CMAKE_INSTALL_PREFIX@")
|
|
LIST(APPEND search_dirs "@CMAKE_INSTALL_PREFIX@/Frameworks")
|
|
LIST(APPEND search_dirs "@CMAKE_INSTALL_PREFIX@/MacOS")
|
|
LIST(APPEND search_dirs "@CMAKE_INSTALL_PREFIX@/lib64/games/@PROJECT_NAME@/lib")
|
|
LIST(APPEND search_dirs "@CMAKE_INSTALL_PREFIX@/games/Plugins/@OSG_PLUGIN_DIR@")
|
|
|
|
|
|
FIXUP_BUNDLE("${bundle}" "${plugins}" "${search_dirs}")
|
|
|
|
message(STATUS bundle = "${bundle}")
|
|
message(STATUS plugins = "${plugins}")
|
|
message(STATUS search_dirs = "${search_dirs}")
|
|
message(STATUS _prefix_path = "${_prefix_path}")
|
|
|