Skip to content
Snippets Groups Projects
Commit b20c0b66 authored by Andreas Schenk's avatar Andreas Schenk
Browse files

added missing Info.plist for OSX package

added libexec dir to OSX deployment cmake script
fixed path to python library for OSX packaging
parent 3fb9e6f4
No related branches found
No related tags found
No related merge requests found
......@@ -655,6 +655,7 @@ function(copy_python include_path version new_binary_path)
get_filename_component(real_python_include_path ${include_path} REALPATH)
get_filename_component(python_root_dir ${real_python_include_path}/../.. REALPATH)
file(COPY ${python_root_dir}/Resources/Python.app/Contents/MacOS/Python DESTINATION ${CMAKE_INSTALL_PREFIX})
file(COPY ${python_root_dir}/${LIB_DIR}/python${version}/ DESTINATION ${CMAKE_INSTALL_PREFIX}/${LIB_DIR}/python${version})
file(GLOB py_config_files "${include_path}/pyconfig*.h")
file(COPY ${py_config_files} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/python${version})
......
......@@ -15,6 +15,7 @@ set(CPACK_PACKAGE_INSTALL_DIRECTORY "openstructure ${OST_VERSION_STRING}" )
install(CODE "
if(NOT ${CMAKE_INSTALL_PREFIX} STREQUAL \${CMAKE_INSTALL_PREFIX})
set(LIB_DIR ${LIB_DIR}) #pass libdir variable in install code block
set(LIBEXEC_PATH ${LIBEXEC_PATH})#pass libexec_path variable in install code block
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/cmake_support)
include(CopyDependencies)
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>dng</string>
<key>CFBundleName</key>
<string>DNG</string>
<key>CFBundleDisplayName</key>
<string>DNG</string>
<key>CFBundleHelpBookFolder</key>
<string>OpenStructure Manual</string>
<key>CFBundleHelpBookName</key>
<string>OpenStructure Help</string>
<key>CFBundleIconFile</key>
<string>DNG.icns</string>
<key>CFBundleIdentifier</key>
<string>org.openstructure.OpenStructure</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string></string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment