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
76771b85
Commit
76771b85
authored
Apr 27, 2014
by
Marco Serantoni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MacOSX] Fixing issue with kiface libs, now are symbolic linked to the owner bundle
parent
d2083b06
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
CMakeLists.txt
kicad/CMakeLists.txt
+26
-0
No files found.
kicad/CMakeLists.txt
View file @
76771b85
...
@@ -58,9 +58,35 @@ endif()
...
@@ -58,9 +58,35 @@ endif()
if
(
APPLE
)
if
(
APPLE
)
# binaries have to be build and kiface be in place
# Mockup the destination directory to linking symbolical
# Could be usefully also for debug in building place
add_custom_target
(
kiway-kicad-bundle-applinks ALL
COMMAND
${
CMAKE_COMMAND
}
-E create_symlink
"
${
CMAKE_BINARY_DIR
}
/eeschema/eeschema.app"
"
${
CMAKE_BINARY_DIR
}
/kicad/eeschema.app"
COMMAND
${
CMAKE_COMMAND
}
-E create_symlink
"
${
CMAKE_BINARY_DIR
}
/pcbnew/pcbnew.app"
"
${
CMAKE_BINARY_DIR
}
/kicad/pcbnew.app"
COMMAND
${
CMAKE_COMMAND
}
-E create_symlink
"
${
CMAKE_BINARY_DIR
}
/cvpcb/cvpcb.app"
"
${
CMAKE_BINARY_DIR
}
/kicad/cvpcb.app"
DEPENDS eeschema pcbnew cvpcb eeschema_kiface pcbnew_kiface cvpcb_kiface
COMMENT
"Making bundles links in kicad.app directory"
)
# Kicad is dependent by other applications (otherwise what we could symlink?)
add_dependencies
(
kicad kiway-kicad-bundle-applinks
)
# making kiface links relative - .app symlinks are alredy in place !
add_custom_target
(
kiway-kicad-bundle-kiface-links ALL
COMMAND
${
CMAKE_COMMAND
}
-E create_symlink
"../../../eeschema.app/Contents/MacOS/_eeschema.kiface"
"_eeschema.kiface"
COMMAND
${
CMAKE_COMMAND
}
-E create_symlink
"../../../pcbnew.app/Contents/MacOS/_pcbnew.kiface"
"_pcbnew.kiface"
COMMAND
${
CMAKE_COMMAND
}
-E create_symlink
"../../../cvpcb.app/Contents/MacOS/_cvpcb.kiface"
"_cvpcb.kiface"
DEPENDS kicad
WORKING_DIRECTORY
"
${
CMAKE_BINARY_DIR
}
/kicad/kicad.app/Contents/MacOS"
COMMENT
"Making Symbolik link to kiface libs in Kicad.app Bundle"
)
set_target_properties
(
kicad PROPERTIES
set_target_properties
(
kicad PROPERTIES
MACOSX_BUNDLE_INFO_PLIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/Info.plist
MACOSX_BUNDLE_INFO_PLIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/Info.plist
)
)
target_link_libraries
(
kicad
target_link_libraries
(
kicad
common
common
bitmaps
bitmaps
...
...
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