Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
1c232f56
Commit
1c232f56
authored
Mar 22, 2014
by
Marco Serantoni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MacOSX] Support for kiface in bundles, workaround for some cairo issues
parent
262ec892
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
49 additions
and
3 deletions
+49
-3
download_cairo.cmake
CMakeModules/download_cairo.cmake
+4
-3
CMakeLists.txt
cvpcb/CMakeLists.txt
+9
-0
CMakeLists.txt
eeschema/CMakeLists.txt
+9
-0
CMakeLists.txt
gerbview/CMakeLists.txt
+9
-0
CMakeLists.txt
pcb_calculator/CMakeLists.txt
+9
-0
CMakeLists.txt
pcbnew/CMakeLists.txt
+9
-0
No files found.
CMakeModules/download_cairo.cmake
View file @
1c232f56
...
...
@@ -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
)
cvpcb/CMakeLists.txt
View file @
1c232f56
...
...
@@ -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
...
...
eeschema/CMakeLists.txt
View file @
1c232f56
...
...
@@ -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
...
...
gerbview/CMakeLists.txt
View file @
1c232f56
...
...
@@ -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
...
...
pcb_calculator/CMakeLists.txt
View file @
1c232f56
...
...
@@ -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
...
...
pcbnew/CMakeLists.txt
View file @
1c232f56
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment