|
|
|
@ -257,13 +257,15 @@ if (APPLE)
|
|
|
|
|
"${APP_BUNDLE_DIR}/Contents/Resources/OpenMW.icns" COPYONLY)
|
|
|
|
|
endif (APPLE)
|
|
|
|
|
|
|
|
|
|
# Set up DEBUG define
|
|
|
|
|
set_directory_properties(PROPERTIES COMPILE_DEFINITIONS_DEBUG DEBUG=1)
|
|
|
|
|
|
|
|
|
|
# Set up Ogre plugin folder & debug suffix
|
|
|
|
|
# Ogre on OS X doesn't use "_d" suffix (see Ogre's CMakeLists.txt)
|
|
|
|
|
if (DEFINED CMAKE_BUILD_TYPE AND CMAKE_BUILD_TYPE STREQUAL "Debug" AND NOT APPLE)
|
|
|
|
|
add_definitions(-DOGRE_PLUGIN_DEBUG_SUFFIX="_d")
|
|
|
|
|
else()
|
|
|
|
|
if (APPLE)
|
|
|
|
|
# Ogre on OS X doesn't use "_d" suffix (see Ogre's CMakeLists.txt)
|
|
|
|
|
add_definitions(-DOGRE_PLUGIN_DEBUG_SUFFIX="")
|
|
|
|
|
else ()
|
|
|
|
|
add_definitions(-DOGRE_PLUGIN_DEBUG_SUFFIX="_d")
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
add_definitions(-DOGRE_PLUGIN_DIR_REL="${OGRE_PLUGIN_DIR_REL}")
|
|
|
|
|