Introduce new CMake variable to store kiface install location
This commit is contained in:
parent
3ddd287004
commit
b51d8c9825
|
@ -550,8 +550,17 @@ set( KIFACE_PREFIX "_" )
|
||||||
#================================================
|
#================================================
|
||||||
if( NOT APPLE )
|
if( NOT APPLE )
|
||||||
# Everything without leading / is relative to CMAKE_INSTALL_PREFIX.
|
# Everything without leading / is relative to CMAKE_INSTALL_PREFIX.
|
||||||
|
if( WIN32 )
|
||||||
set( KICAD_BIN bin
|
set( KICAD_BIN bin
|
||||||
CACHE PATH "Location of KiCad binaries." )
|
CACHE PATH "Location of KiCad binaries." )
|
||||||
|
else()
|
||||||
|
set( KICAD_BIN ${CMAKE_INSTALL_BINDIR}
|
||||||
|
CACHE PATH "Location of KiCad binaries." )
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# For now, the kifaces are just in the normal bin folder
|
||||||
|
set( KICAD_KIFACE ${KICAD_BIN}
|
||||||
|
CACHE PATH "Location of KiCad kifaces." )
|
||||||
|
|
||||||
# Do not make these variables "PATH" b/c cmake will truncate them and we need the full path
|
# Do not make these variables "PATH" b/c cmake will truncate them and we need the full path
|
||||||
if( NOT IS_ABSOLUTE ${CMAKE_INSTALL_DATADIR} )
|
if( NOT IS_ABSOLUTE ${CMAKE_INSTALL_DATADIR} )
|
||||||
|
@ -663,6 +672,7 @@ else()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
mark_as_advanced( KICAD_BIN
|
mark_as_advanced( KICAD_BIN
|
||||||
|
KICAD_KIFACE
|
||||||
KICAD_PLUGINS
|
KICAD_PLUGINS
|
||||||
KICAD_USER_PLUGIN
|
KICAD_USER_PLUGIN
|
||||||
KICAD_LIB
|
KICAD_LIB
|
||||||
|
|
|
@ -106,12 +106,12 @@ if( APPLE )
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
install( TARGETS cvpcb_kiface
|
install( TARGETS cvpcb_kiface
|
||||||
DESTINATION ${KICAD_BIN}
|
DESTINATION ${KICAD_KIFACE}
|
||||||
COMPONENT binary
|
COMPONENT binary
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if( KICAD_WIN32_INSTALL_PDBS )
|
if( KICAD_WIN32_INSTALL_PDBS )
|
||||||
# Get the PDBs to copy over for MSVC
|
# Get the PDBs to copy over for MSVC
|
||||||
install(FILES $<TARGET_PDB_FILE:cvpcb_kiface> DESTINATION ${KICAD_BIN})
|
install(FILES $<TARGET_PDB_FILE:cvpcb_kiface> DESTINATION ${KICAD_KIFACE})
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -527,7 +527,7 @@ else()
|
||||||
install( TARGETS eeschema_kiface
|
install( TARGETS eeschema_kiface
|
||||||
# actual filename subject to change at milestone C)
|
# actual filename subject to change at milestone C)
|
||||||
# modular-kicad blueprint.
|
# modular-kicad blueprint.
|
||||||
DESTINATION ${KICAD_BIN}
|
DESTINATION ${KICAD_KIFACE}
|
||||||
COMPONENT binary
|
COMPONENT binary
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
@ -536,7 +536,7 @@ endif()
|
||||||
if( KICAD_WIN32_INSTALL_PDBS )
|
if( KICAD_WIN32_INSTALL_PDBS )
|
||||||
# Get the PDBs to copy over for MSVC
|
# Get the PDBs to copy over for MSVC
|
||||||
install(FILES $<TARGET_PDB_FILE:eeschema> DESTINATION ${KICAD_BIN})
|
install(FILES $<TARGET_PDB_FILE:eeschema> DESTINATION ${KICAD_BIN})
|
||||||
install(FILES $<TARGET_PDB_FILE:eeschema_kiface> DESTINATION ${KICAD_BIN})
|
install(FILES $<TARGET_PDB_FILE:eeschema_kiface> DESTINATION ${KICAD_KIFACE})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# auto-generate cmp_library_lexer.h and cmp_library_keywords.cpp for the component
|
# auto-generate cmp_library_lexer.h and cmp_library_keywords.cpp for the component
|
||||||
|
|
|
@ -205,7 +205,7 @@ else()
|
||||||
COMPONENT binary
|
COMPONENT binary
|
||||||
)
|
)
|
||||||
install( TARGETS gerbview_kiface
|
install( TARGETS gerbview_kiface
|
||||||
DESTINATION ${KICAD_BIN}
|
DESTINATION ${KICAD_KIFACE}
|
||||||
COMPONENT binary
|
COMPONENT binary
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
@ -214,5 +214,5 @@ endif()
|
||||||
if( KICAD_WIN32_INSTALL_PDBS )
|
if( KICAD_WIN32_INSTALL_PDBS )
|
||||||
# Get the PDBs to copy over for MSVC
|
# Get the PDBs to copy over for MSVC
|
||||||
install(FILES $<TARGET_PDB_FILE:gerbview> DESTINATION ${KICAD_BIN})
|
install(FILES $<TARGET_PDB_FILE:gerbview> DESTINATION ${KICAD_BIN})
|
||||||
install(FILES $<TARGET_PDB_FILE:gerbview_kiface> DESTINATION ${KICAD_BIN})
|
install(FILES $<TARGET_PDB_FILE:gerbview_kiface> DESTINATION ${KICAD_KIFACE})
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -168,7 +168,7 @@ else()
|
||||||
COMPONENT binary
|
COMPONENT binary
|
||||||
)
|
)
|
||||||
install( TARGETS pl_editor_kiface
|
install( TARGETS pl_editor_kiface
|
||||||
DESTINATION ${KICAD_BIN}
|
DESTINATION ${KICAD_KIFACE}
|
||||||
COMPONENT binary
|
COMPONENT binary
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
@ -176,5 +176,5 @@ endif()
|
||||||
if( KICAD_WIN32_INSTALL_PDBS )
|
if( KICAD_WIN32_INSTALL_PDBS )
|
||||||
# Get the PDBs to copy over for MSVC
|
# Get the PDBs to copy over for MSVC
|
||||||
install(FILES $<TARGET_PDB_FILE:pl_editor> DESTINATION ${KICAD_BIN})
|
install(FILES $<TARGET_PDB_FILE:pl_editor> DESTINATION ${KICAD_BIN})
|
||||||
install(FILES $<TARGET_PDB_FILE:pl_editor_kiface> DESTINATION ${KICAD_BIN})
|
install(FILES $<TARGET_PDB_FILE:pl_editor_kiface> DESTINATION ${KICAD_KIFACE})
|
||||||
endif()
|
endif()
|
|
@ -161,7 +161,7 @@ else()
|
||||||
COMPONENT binary
|
COMPONENT binary
|
||||||
)
|
)
|
||||||
install( TARGETS pcb_calculator_kiface
|
install( TARGETS pcb_calculator_kiface
|
||||||
DESTINATION ${KICAD_BIN}
|
DESTINATION ${KICAD_KIFACE}
|
||||||
COMPONENT binary
|
COMPONENT binary
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
@ -169,7 +169,7 @@ endif()
|
||||||
if( KICAD_WIN32_INSTALL_PDBS )
|
if( KICAD_WIN32_INSTALL_PDBS )
|
||||||
# Get the PDBs to copy over for MSVC
|
# Get the PDBs to copy over for MSVC
|
||||||
install(FILES $<TARGET_PDB_FILE:pcb_calculator> DESTINATION ${KICAD_BIN})
|
install(FILES $<TARGET_PDB_FILE:pcb_calculator> DESTINATION ${KICAD_BIN})
|
||||||
install(FILES $<TARGET_PDB_FILE:pcb_calculator_kiface> DESTINATION ${KICAD_BIN})
|
install(FILES $<TARGET_PDB_FILE:pcb_calculator_kiface> DESTINATION ${KICAD_KIFACE})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# auto-generate pcb_calculator_datafile.h and pcb_calculator_datafile_keywords.cpp
|
# auto-generate pcb_calculator_datafile.h and pcb_calculator_datafile_keywords.cpp
|
||||||
|
|
|
@ -783,7 +783,7 @@ else()
|
||||||
COMPONENT binary
|
COMPONENT binary
|
||||||
)
|
)
|
||||||
install( TARGETS pcbnew_kiface
|
install( TARGETS pcbnew_kiface
|
||||||
DESTINATION ${KICAD_BIN}
|
DESTINATION ${KICAD_KIFACE}
|
||||||
COMPONENT binary
|
COMPONENT binary
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
@ -791,7 +791,7 @@ endif()
|
||||||
if( KICAD_WIN32_INSTALL_PDBS )
|
if( KICAD_WIN32_INSTALL_PDBS )
|
||||||
# Get the PDBs to copy over for MSVC
|
# Get the PDBs to copy over for MSVC
|
||||||
install(FILES $<TARGET_PDB_FILE:pcbnew> DESTINATION ${KICAD_BIN})
|
install(FILES $<TARGET_PDB_FILE:pcbnew> DESTINATION ${KICAD_BIN})
|
||||||
install(FILES $<TARGET_PDB_FILE:pcbnew_kiface> DESTINATION ${KICAD_BIN})
|
install(FILES $<TARGET_PDB_FILE:pcbnew_kiface> DESTINATION ${KICAD_KIFACE})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if( NOT APPLE )
|
if( NOT APPLE )
|
||||||
|
|
|
@ -72,14 +72,14 @@ if( APPLE )
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
install( TARGETS scripting_kiface
|
install( TARGETS scripting_kiface
|
||||||
DESTINATION ${KICAD_BIN}
|
DESTINATION ${KICAD_KIFACE}
|
||||||
COMPONENT binary
|
COMPONENT binary
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if( KICAD_WIN32_INSTALL_PDBS )
|
if( KICAD_WIN32_INSTALL_PDBS )
|
||||||
# Get the PDBs to copy over for MSVC
|
# Get the PDBs to copy over for MSVC
|
||||||
install(FILES $<TARGET_PDB_FILE:scripting_kiface> DESTINATION ${KICAD_BIN})
|
install(FILES $<TARGET_PDB_FILE:scripting_kiface> DESTINATION ${KICAD_KIFACE})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# python shell installation
|
# python shell installation
|
||||||
|
|
Loading…
Reference in New Issue