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
607054a0
Commit
607054a0
authored
Jun 02, 2009
by
jerryjacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for mime installation in CMakeLists.txt
parent
a04588db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
59 deletions
+35
-59
CMakeLists.txt
CMakeLists.txt
+35
-59
No files found.
CMakeLists.txt
View file @
607054a0
...
@@ -186,64 +186,40 @@ install(FILES freeroute.jnlp
...
@@ -186,64 +186,40 @@ install(FILES freeroute.jnlp
DESTINATION
${
KICAD_BIN
}
DESTINATION
${
KICAD_BIN
}
COMPONENT resources
)
COMPONENT resources
)
###
# FreeDesktop .desktop and MIME resources
###
if
(
UNIX
)
if
(
UNIX
)
# set resource dir variables
#set(KICAD_PROGRAM_ICONS ${CMAKE_INSTALL_PREFIX}/share/kicad/icons)
# Set paths
set
(
LINUX_RESOURCES_DIR resources/linux
)
set
(
UNIX_MIME_DIR resources/linux/mime
)
set
(
LINUX_DESKTOP_FILES
${
LINUX_RESOURCES_DIR
}
/opendesktop
)
set
(
UNIX_MIMELNK_FILES
${
UNIX_MIME_DIR
}
/mimelnk
)
set
(
LINUX_DESKTOP_ICONS
${
LINUX_RESOURCES_DIR
}
/icons
)
set
(
UNIX_MIME_FILES
${
UNIX_MIME_DIR
}
/mime
)
set
(
UNIX_ICONS_FILES
${
UNIX_MIME_DIR
}
/icons
)
set
(
UNIX_APPLICATIONS_FILES
${
UNIX_MIME_DIR
}
/applications
)
# Install program icons
#add_subdirectory(resources/icons)
# Install Mimelnk directory
install
(
DIRECTORY
${
UNIX_MIMELNK_FILES
}
# KiCad desktop file
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/share/mimelnk
install
(
FILES
${
LINUX_DESKTOP_FILES
}
/kicad.desktop
COMPONENT resources
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/share/applications
PATTERN
".svn"
EXCLUDE
)
COMPONENT resources
)
# KiCad icon file
# Install Mime directory
install
(
FILES
${
LINUX_DESKTOP_ICONS
}
/kicad.png
install
(
DIRECTORY
${
UNIX_ICONS_FILES
}
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/share/pixmaps
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/share/mime
COMPONENT resources
)
COMPONENT resources
PATTERN
".svn"
EXCLUDE
)
# CVpcb desktop file
# Install Icons
install
(
FILES
${
LINUX_DESKTOP_FILES
}
/cvpcb.desktop
install
(
DIRECTORY
${
UNIX_ICONS_FILES
}
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/share/applications
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/share/icons
COMPONENT resources
)
COMPONENT resources
# CVpcb icon file
PATTERN
".svn"
EXCLUDE
)
install
(
FILES
${
LINUX_DESKTOP_ICONS
}
/kicad_cvpcb.png
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/share/pixmaps
# Install Applications directory (.desktop files)
COMPONENT resources
)
install
(
DIRECTORY
${
UNIX_APPLICATIONS_FILES
}
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/share/applications
COMPONENT resources
# EEschema desktop file
PATTERN
".svn"
EXCLUDE
)
install
(
FILES
${
LINUX_DESKTOP_FILES
}
/eeschema.desktop
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/share/applications
COMPONENT resources
)
# EEschema icon file
install
(
FILES
${
LINUX_DESKTOP_ICONS
}
/kicad_eeschema.png
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/share/pixmaps
COMPONENT resources
)
# GerbView desktop file
install
(
FILES
${
LINUX_DESKTOP_FILES
}
/gerbview.desktop
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/share/applications
COMPONENT resources
)
# GerbView icon file
install
(
FILES
${
LINUX_DESKTOP_ICONS
}
/kicad_gerbview.png
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/share/pixmaps
COMPONENT resources
)
# PCBnew desktop file
install
(
FILES
${
LINUX_DESKTOP_FILES
}
/pcbnew.desktop
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/share/applications
COMPONENT resources
)
# PCBnew icon file
install
(
FILES
${
LINUX_DESKTOP_ICONS
}
/kicad_pcbnew.png
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/share/pixmaps
COMPONENT resources
)
endif
(
UNIX
)
endif
(
UNIX
)
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