[MacOSX] Support for kiface in bundles, workaround for some cairo issues

This commit is contained in:
Marco Serantoni 2014-03-22 12:35:33 +01:00
parent 262ec8920a
commit 1c232f5608
6 changed files with 49 additions and 3 deletions

View File

@ -103,6 +103,7 @@ ExternalProject_Add( cairo
)
# match these with whatever FindCairo.cmake sets
set( CAIRO_FOUND true )
set( CAIRO_INCLUDE_DIR ${PREFIX}/include )
set( CAIRO_CAIRO_LIBRARIES ${PREFIX}/lib )
# Dick i'vent set it because /lib and /lib64 issue in non multiarch binaries OSs
#set( CAIRO_FOUND true )
set( CAIRO_INCLUDE_DIR ${CAIRO_ROOT}/include )
set( CAIRO_LIBRARIES ${CAIRO_ROOT}/lib )

View File

@ -171,6 +171,15 @@ if( USE_KIWAY_DLLS )
COMPONENT binary
)
if( APPLE )
# copies kiface into the bundle
add_custom_target( _cvpcb_kiface_copy ALL
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/cvpcb/_cvpcb.kiface "${CMAKE_BINARY_DIR}/cvpcb/cvpcb.app/Contents/MacOS/"
DEPENDS cvpcb_kiface
COMMENT "Copying kiface into cvpcb"
)
endif()
else()
add_executable( cvpcb WIN32 MACOSX_BUNDLE

View File

@ -312,6 +312,15 @@ if( USE_KIWAY_DLLS )
COMPONENT binary
)
if( APPLE )
# copies kiface into the bundle
add_custom_target( _eeschema_kiface_copy ALL
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/eeschema/_eeschema.kiface "${CMAKE_BINARY_DIR}/eeschema/eeschema.app/Contents/MacOS/"
DEPENDS eeschema_kiface
COMMENT "Copying kiface into eeschema"
)
endif()
else()
add_executable( eeschema WIN32 MACOSX_BUNDLE
../common/single_top.cpp

View File

@ -151,6 +151,15 @@ if( USE_KIWAY_DLLS )
COMPONENT binary
)
if( APPLE )
# copies kiface into the bundle
add_custom_target( _gerbview_kiface_copy ALL
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/gerbview/_gerbview.kiface "${CMAKE_BINARY_DIR}/gerbview/gerbview.app/Contents/MacOS/"
DEPENDS gerbview_kiface
COMMENT "Copying kiface into gerbview"
)
endif()
else()
add_executable( gerbview WIN32 MACOSX_BUNDLE

View File

@ -134,6 +134,15 @@ if( USE_KIWAY_DLLS )
)
endif()
if( APPLE )
# copies kiface into the bundle
add_custom_target( _pcb_calculator_kiface_copy ALL
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/pcb_calculator/_pcb_calculator.kiface "${CMAKE_BINARY_DIR}/pcb_calculator/pcb_calculator.app/Contents/MacOS/"
DEPENDS pcb_calculator_kiface
COMMENT "Copying kiface into pcb_calculator"
)
endif()
else()
add_executable( pcb_calculator WIN32 MACOSX_BUNDLE

View File

@ -580,6 +580,15 @@ if( USE_KIWAY_DLLS )
COMPONENT binary
)
if( APPLE )
# copies kiface into the bundle
add_custom_target( _pcbnew_kiface_copy ALL
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/pcbnew/_pcbnew.kiface "${CMAKE_BINARY_DIR}/pcbnew/pcbnew.app/Contents/MacOS/"
DEPENDS pcbnew_kiface
COMMENT "Copying kiface into pcbnew"
)
endif()
else() # milestone A) kills this off:
add_executable( pcbnew WIN32 MACOSX_BUNDLE