Commit f77e47dc authored by raburton's avatar raburton

Add COMPONENT parameter to INSTALL commands.

This allows you to install only specific components (i.e. binaries, resources, doc files in specific languages), particularly useful for package mainatiners.
Default install will work as before (i.e. install everything).
parent 8777ab79
......@@ -76,4 +76,4 @@ ADD_EXECUTABLE(cvpcb WIN32 MACOSX_BUNDLE ${CVPCB_SRCS} ${CVPCB_EXTRA_SRCS} ${CVP
TARGET_LINK_LIBRARIES(cvpcb common 3d-viewer polygon ${wxWidgets_LIBRARIES})
INSTALL(TARGETS cvpcb RUNTIME DESTINATION ${KICAD_BIN})
INSTALL(TARGETS cvpcb RUNTIME DESTINATION ${KICAD_BIN} COMPONENT binary)
......@@ -123,6 +123,6 @@ ADD_EXECUTABLE(eeschema WIN32 MACOSX_BUNDLE ${EESCHEMA_SRCS} ${EESCHEMA_EXTRA_SR
TARGET_LINK_LIBRARIES(eeschema common ${wxWidgets_LIBRARIES})
INSTALL(TARGETS eeschema RUNTIME DESTINATION ${KICAD_BIN})
INSTALL(TARGETS eeschema RUNTIME DESTINATION ${KICAD_BIN} COMPONENT binary)
ADD_SUBDIRECTORY(plugins)
......@@ -4,4 +4,4 @@ ENDIF(UNIX)
ADD_EXECUTABLE(netlist_form_pads-pcb netlist_form_pads-pcb.cpp)
INSTALL(TARGETS netlist_form_pads-pcb RUNTIME DESTINATION ${KICAD_PLUGINS})
INSTALL(TARGETS netlist_form_pads-pcb RUNTIME DESTINATION ${KICAD_PLUGINS} COMPONENT binary)
......@@ -78,4 +78,4 @@ ADD_EXECUTABLE(gerbview WIN32 MACOSX_BUNDLE ${GERBVIEW_SRCS} ${GERBVIEW_EXTRA_SR
TARGET_LINK_LIBRARIES(gerbview common 3d-viewer polygon ${wxWidgets_LIBRARIES})
INSTALL(TARGETS gerbview RUNTIME DESTINATION ${KICAD_BIN})
INSTALL(TARGETS gerbview RUNTIME DESTINATION ${KICAD_BIN} COMPONENT binary)
INSTALL(DIRECTORY de en es fr it pt ru
DESTINATION ${KICAD_DOCS}
PATTERN ".svn" EXCLUDE)
INSTALL(DIRECTORY de COMPONENT doc-de
DESTINATION ${KICAD_DOCS} PATTERN ".svn" EXCLUDE)
INSTALL(DIRECTORY en COMPONENT doc-den
DESTINATION ${KICAD_DOCS} PATTERN ".svn" EXCLUDE)
INSTALL(DIRECTORY es COMPONENT doc-es
DESTINATION ${KICAD_DOCS} PATTERN ".svn" EXCLUDE)
INSTALL(DIRECTORY fr COMPONENT doc-fr
DESTINATION ${KICAD_DOCS} PATTERN ".svn" EXCLUDE)
INSTALL(DIRECTORY it COMPONENT doc-it
DESTINATION ${KICAD_DOCS} PATTERN ".svn" EXCLUDE)
INSTALL(DIRECTORY pt COMPONENT doc-pt
DESTINATION ${KICAD_DOCS} PATTERN ".svn" EXCLUDE)
INSTALL(DIRECTORY ru COMPONENT doc-ru
DESTINATION ${KICAD_DOCS} PATTERN ".svn" EXCLUDE)
INSTALL(DIRECTORY ca cs de es fr hu it ko pl pt ru sl
DESTINATION ${KICAD_INTERNAT}
DESTINATION ${KICAD_INTERNAT} COMPONENT resources
PATTERN ".svn" EXCLUDE)
......@@ -36,7 +36,7 @@ ADD_EXECUTABLE(kicad WIN32 MACOSX_BUNDLE ${KICAD_SRCS} ${KICAD_EXTRA_SRCS} ${KIC
TARGET_LINK_LIBRARIES(kicad common ${wxWidgets_LIBRARIES})
INSTALL(TARGETS kicad RUNTIME DESTINATION ${KICAD_BIN})
INSTALL(TARGETS kicad RUNTIME DESTINATION ${KICAD_BIN} COMPONENT binary)
IF(BUILD_MINIZIP)
ADD_SUBDIRECTORY(minizip)
......
......@@ -15,4 +15,4 @@ ADD_EXECUTABLE(minizip ${MINIZIP_SRCS} )
TARGET_LINK_LIBRARIES(minizip ${ZLIB_LIBRARIES})
INSTALL(TARGETS minizip RUNTIME DESTINATION bin)
INSTALL(TARGETS minizip RUNTIME DESTINATION bin COMPONENT binary)
......@@ -2,6 +2,6 @@ FILE(GLOB dcm_files "*.dcm")
FILE(GLOB lib_files "*.lib")
FILE(GLOB sym_files "*.sym")
INSTALL(FILES ${dcm_files} DESTINATION ${KICAD_LIBRARY})
INSTALL(FILES ${lib_files} DESTINATION ${KICAD_LIBRARY})
INSTALL(FILES ${sym_files} DESTINATION ${KICAD_LIBRARY})
INSTALL(FILES ${dcm_files} DESTINATION ${KICAD_LIBRARY} COMPONENT resources)
INSTALL(FILES ${lib_files} DESTINATION ${KICAD_LIBRARY} COMPONENT resources)
INSTALL(FILES ${sym_files} DESTINATION ${KICAD_LIBRARY} COMPONENT resources)
......@@ -3,10 +3,10 @@ FILE(GLOB equ_files "*.equ")
FILE(GLOB mdc_files "*.mdc")
FILE(GLOB mod_files "*.mod")
INSTALL(FILES ${brd_files} DESTINATION ${KICAD_MODULES})
INSTALL(FILES ${equ_files} DESTINATION ${KICAD_MODULES})
INSTALL(FILES ${mdc_files} DESTINATION ${KICAD_MODULES})
INSTALL(FILES ${mod_files} DESTINATION ${KICAD_MODULES})
INSTALL(FILES ${brd_files} DESTINATION ${KICAD_MODULES} COMPONENT resources)
INSTALL(FILES ${equ_files} DESTINATION ${KICAD_MODULES} COMPONENT resources)
INSTALL(FILES ${mdc_files} DESTINATION ${KICAD_MODULES} COMPONENT resources)
INSTALL(FILES ${mod_files} DESTINATION ${KICAD_MODULES} COMPONENT resources)
INSTALL(DIRECTORY packages3d DESTINATION ${KICAD_MODULES}
INSTALL(DIRECTORY packages3d DESTINATION ${KICAD_MODULES} COMPONENT resources
PATTERN ".svn" EXCLUDE)
......@@ -177,4 +177,4 @@ TARGET_LINK_LIBRARIES(specctra_test common ${wxWidgets_LIBRARIES})
TARGET_LINK_LIBRARIES(pcbnew common 3d-viewer polygon ${wxWidgets_LIBRARIES})
INSTALL(TARGETS pcbnew RUNTIME DESTINATION ${KICAD_BIN})
INSTALL(TARGETS pcbnew RUNTIME DESTINATION ${KICAD_BIN} COMPONENT binary)
INSTALL(FILES kicad.pro
DESTINATION ${KICAD_TEMPLATE})
DESTINATION ${KICAD_TEMPLATE} COMPONENT resources)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment