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).
This commit is contained in:
raburton 2008-01-06 10:11:28 +00:00
parent 8777ab79e0
commit f77e47dc87
12 changed files with 32 additions and 20 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -1,3 +1,15 @@
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)

View File

@ -1,3 +1,3 @@
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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -1,2 +1,2 @@
INSTALL(FILES kicad.pro
DESTINATION ${KICAD_TEMPLATE})
DESTINATION ${KICAD_TEMPLATE} COMPONENT resources)