Convert all CMake paths to absolute instead of relative
It is cleaner and safer to handle the include and source paths as absolute from the source directory instead of relative to every path.
This commit is contained in:
parent
c5a9479953
commit
06c979dfaa
|
@ -9,14 +9,15 @@ include_directories( BEFORE ${INC_BEFORE} )
|
||||||
include_directories( ${INC_AFTER} )
|
include_directories( ${INC_AFTER} )
|
||||||
|
|
||||||
set( BITMAP2COMPONENT_SRCS
|
set( BITMAP2COMPONENT_SRCS
|
||||||
../common/single_top.cpp
|
${CMAKE_SOURCE_DIR}/common/single_top.cpp
|
||||||
|
|
||||||
bitmap2cmp_main.cpp
|
bitmap2cmp_main.cpp
|
||||||
bitmap2component.cpp
|
bitmap2component.cpp
|
||||||
bitmap2cmp_gui_base.cpp
|
bitmap2cmp_gui_base.cpp
|
||||||
bitmap2cmp_gui.cpp
|
bitmap2cmp_gui.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_source_files_properties( ../common/single_top.cpp PROPERTIES
|
set_source_files_properties( ${CMAKE_SOURCE_DIR}/common/single_top.cpp PROPERTIES
|
||||||
COMPILE_DEFINITIONS "TOP_FRAME=FRAME_BM2CMP"
|
COMPILE_DEFINITIONS "TOP_FRAME=FRAME_BM2CMP"
|
||||||
)
|
)
|
||||||
set_source_files_properties( bitmap2cmp_gui.cpp PROPERTIES
|
set_source_files_properties( bitmap2cmp_gui.cpp PROPERTIES
|
||||||
|
|
|
@ -15,8 +15,8 @@ include_directories(
|
||||||
${GLEW_INCLUDE_DIR}
|
${GLEW_INCLUDE_DIR}
|
||||||
${GLM_INCLUDE_DIR}
|
${GLM_INCLUDE_DIR}
|
||||||
${CURL_INCLUDE_DIRS}
|
${CURL_INCLUDE_DIRS}
|
||||||
../3d-viewer
|
${CMAKE_SOURCE_DIR}/3d-viewer
|
||||||
../pcbnew
|
${CMAKE_SOURCE_DIR}/pcbnew
|
||||||
${INC_AFTER}
|
${INC_AFTER}
|
||||||
${OCE_INCLUDE_DIRS}
|
${OCE_INCLUDE_DIRS}
|
||||||
${OCC_INCLUDE_DIR}
|
${OCC_INCLUDE_DIR}
|
||||||
|
@ -416,59 +416,59 @@ set( PCB_COMMON_SRCS
|
||||||
lset.cpp
|
lset.cpp
|
||||||
origin_viewitem.cpp
|
origin_viewitem.cpp
|
||||||
page_info.cpp
|
page_info.cpp
|
||||||
../pcbnew/pcb_base_frame.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_base_frame.cpp
|
||||||
../pcbnew/board_commit.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/board_commit.cpp
|
||||||
../pcbnew/board_connected_item.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/board_connected_item.cpp
|
||||||
../pcbnew/board_design_settings.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/board_design_settings.cpp
|
||||||
../pcbnew/board_items_to_polygon_shape_transform.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/board_items_to_polygon_shape_transform.cpp
|
||||||
../pcbnew/class_board.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/class_board.cpp
|
||||||
../pcbnew/class_board_item.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/class_board_item.cpp
|
||||||
../pcbnew/class_dimension.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/class_dimension.cpp
|
||||||
../pcbnew/class_drawsegment.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/class_drawsegment.cpp
|
||||||
../pcbnew/class_edge_mod.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/class_edge_mod.cpp
|
||||||
../pcbnew/class_marker_pcb.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/class_marker_pcb.cpp
|
||||||
../pcbnew/class_module.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/class_module.cpp
|
||||||
../pcbnew/netclass.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/netclass.cpp
|
||||||
../pcbnew/netinfo_item.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/netinfo_item.cpp
|
||||||
../pcbnew/netinfo_list.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/netinfo_list.cpp
|
||||||
../pcbnew/class_pad.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/class_pad.cpp
|
||||||
../pcbnew/class_pcb_target.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/class_pcb_target.cpp
|
||||||
../pcbnew/class_pcb_text.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/class_pcb_text.cpp
|
||||||
../pcbnew/board_stackup_manager/class_board_stackup.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/board_stackup_manager/class_board_stackup.cpp
|
||||||
../pcbnew/class_text_mod.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/class_text_mod.cpp
|
||||||
../pcbnew/class_track.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/class_track.cpp
|
||||||
../pcbnew/class_zone.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/class_zone.cpp
|
||||||
../pcbnew/collectors.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/collectors.cpp
|
||||||
../pcbnew/connectivity/connectivity_algo.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/connectivity/connectivity_algo.cpp
|
||||||
../pcbnew/connectivity/connectivity_items.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/connectivity/connectivity_items.cpp
|
||||||
../pcbnew/connectivity/connectivity_data.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/connectivity/connectivity_data.cpp
|
||||||
../pcbnew/convert_drawsegment_list_to_polygon.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/convert_drawsegment_list_to_polygon.cpp
|
||||||
../pcbnew/drc_item.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/drc_item.cpp
|
||||||
../pcbnew/eagle_plugin.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/eagle_plugin.cpp
|
||||||
../pcbnew/gpcb_plugin.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/gpcb_plugin.cpp
|
||||||
../pcbnew/io_mgr.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/io_mgr.cpp
|
||||||
../pcbnew/kicad_clipboard.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/kicad_clipboard.cpp
|
||||||
../pcbnew/netlist_reader/kicad_netlist_reader.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/netlist_reader/kicad_netlist_reader.cpp
|
||||||
../pcbnew/kicad_plugin.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/kicad_plugin.cpp
|
||||||
../pcbnew/netlist_reader/legacy_netlist_reader.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/netlist_reader/legacy_netlist_reader.cpp
|
||||||
../pcbnew/legacy_plugin.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/legacy_plugin.cpp
|
||||||
../pcbnew//netlist_reader/netlist_reader.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew//netlist_reader/netlist_reader.cpp
|
||||||
../pcbnew/pad_custom_shape_functions.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/pad_custom_shape_functions.cpp
|
||||||
../pcbnew/pad_print_functions.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/pad_print_functions.cpp
|
||||||
../pcbnew/pcb_display_options.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_display_options.cpp
|
||||||
../pcbnew/pcb_draw_panel_gal.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_draw_panel_gal.cpp
|
||||||
../pcbnew/pcb_general_settings.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_general_settings.cpp
|
||||||
../pcbnew/netlist_reader/pcb_netlist.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/netlist_reader/pcb_netlist.cpp
|
||||||
../pcbnew/pcb_painter.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_painter.cpp
|
||||||
../pcbnew/pcb_parser.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_parser.cpp
|
||||||
../pcbnew/pcb_plot_params.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_plot_params.cpp
|
||||||
../pcbnew/pcb_screen.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_screen.cpp
|
||||||
../pcbnew/pcb_view.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_view.cpp
|
||||||
../pcbnew/plugin.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/plugin.cpp
|
||||||
../pcbnew/ratsnest_data.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/ratsnest_data.cpp
|
||||||
../pcbnew/ratsnest_viewitem.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/ratsnest_viewitem.cpp
|
||||||
../pcbnew/sel_layer.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/sel_layer.cpp
|
||||||
../pcbnew/zone_settings.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/zone_settings.cpp
|
||||||
widgets/net_selector.cpp
|
widgets/net_selector.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -567,13 +567,13 @@ if( false ) # future
|
||||||
|
|
||||||
include_directories( BEFORE ${INC_BEFORE} )
|
include_directories( BEFORE ${INC_BEFORE} )
|
||||||
include_directories(
|
include_directories(
|
||||||
../common
|
${CMAKE_SOURCE_DIR}/common
|
||||||
${INC_AFTER}
|
${INC_AFTER}
|
||||||
)
|
)
|
||||||
|
|
||||||
set( SWIG_MODULE_kiway_EXTRA_DEPS
|
set( SWIG_MODULE_kiway_EXTRA_DEPS
|
||||||
../common/swig/ki_exception.i
|
${CMAKE_SOURCE_DIR}/common/swig/ki_exception.i
|
||||||
../common/swig/kicad.i
|
${CMAKE_SOURCE_DIR}/common/swig/kicad.i
|
||||||
)
|
)
|
||||||
|
|
||||||
swig_add_module( kiway python
|
swig_add_module( kiway python
|
||||||
|
|
|
@ -8,10 +8,10 @@ add_definitions( -DCVPCB )
|
||||||
include_directories( BEFORE ${INC_BEFORE} )
|
include_directories( BEFORE ${INC_BEFORE} )
|
||||||
include_directories(
|
include_directories(
|
||||||
./dialogs
|
./dialogs
|
||||||
../3d-viewer
|
${CMAKE_SOURCE_DIR}/3d-viewer
|
||||||
../pcbnew
|
${CMAKE_SOURCE_DIR}/pcbnew
|
||||||
../pcbnew/dialogs
|
${CMAKE_SOURCE_DIR}/pcbnew/dialogs
|
||||||
../common
|
${CMAKE_SOURCE_DIR}/common
|
||||||
${GLM_INCLUDE_DIR}
|
${GLM_INCLUDE_DIR}
|
||||||
${INC_AFTER}
|
${INC_AFTER}
|
||||||
)
|
)
|
||||||
|
@ -27,9 +27,9 @@ set( CVPCB_DIALOGS
|
||||||
)
|
)
|
||||||
|
|
||||||
set( CVPCB_SRCS
|
set( CVPCB_SRCS
|
||||||
../common/base_units.cpp
|
${CMAKE_SOURCE_DIR}/common/base_units.cpp
|
||||||
../pcbnew/tools/grid_helper.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/tools/grid_helper.cpp
|
||||||
../pcbnew/board_stackup_manager/stackup_predefined_prms.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/board_stackup_manager/stackup_predefined_prms.cpp
|
||||||
auto_associate.cpp
|
auto_associate.cpp
|
||||||
cfg.cpp
|
cfg.cpp
|
||||||
components_listbox.cpp
|
components_listbox.cpp
|
||||||
|
|
|
@ -26,9 +26,9 @@ include_directories(
|
||||||
./libedit
|
./libedit
|
||||||
./libview
|
./libview
|
||||||
./tools
|
./tools
|
||||||
../common
|
${CMAKE_SOURCE_DIR}/common
|
||||||
../common/dialogs
|
${CMAKE_SOURCE_DIR}/common/dialogs
|
||||||
../libs/sexpr/include
|
${CMAKE_SOURCE_DIR}/libs/sexpr/include
|
||||||
${INC_AFTER}
|
${INC_AFTER}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -238,12 +238,12 @@ set( EESCHEMA_SRCS
|
||||||
|
|
||||||
|
|
||||||
set( EESCHEMA_COMMON_SRCS
|
set( EESCHEMA_COMMON_SRCS
|
||||||
../common/dialogs/dialog_page_settings.cpp
|
${CMAKE_SOURCE_DIR}/common/dialogs/dialog_page_settings.cpp
|
||||||
../common/dialogs/panel_display_options.cpp
|
${CMAKE_SOURCE_DIR}/common/dialogs/panel_display_options.cpp
|
||||||
../common/base_screen.cpp
|
${CMAKE_SOURCE_DIR}/common/base_screen.cpp
|
||||||
../common/base_units.cpp
|
${CMAKE_SOURCE_DIR}/common/base_units.cpp
|
||||||
../common/eda_text.cpp
|
${CMAKE_SOURCE_DIR}/common/eda_text.cpp
|
||||||
../common/page_info.cpp
|
${CMAKE_SOURCE_DIR}/common/page_info.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -310,11 +310,11 @@ endif()
|
||||||
|
|
||||||
|
|
||||||
add_executable( eeschema WIN32 MACOSX_BUNDLE
|
add_executable( eeschema WIN32 MACOSX_BUNDLE
|
||||||
../common/single_top.cpp
|
${CMAKE_SOURCE_DIR}/common/single_top.cpp
|
||||||
../common/pgm_base.cpp
|
${CMAKE_SOURCE_DIR}/common/pgm_base.cpp
|
||||||
${EESCHEMA_RESOURCES}
|
${EESCHEMA_RESOURCES}
|
||||||
)
|
)
|
||||||
set_source_files_properties( ../common/single_top.cpp PROPERTIES
|
set_source_files_properties( ${CMAKE_SOURCE_DIR}/common/single_top.cpp PROPERTIES
|
||||||
COMPILE_DEFINITIONS "TOP_FRAME=FRAME_SCH;PGM_DATA_FILE_EXT=\"sch\";BUILD_KIWAY_DLL"
|
COMPILE_DEFINITIONS "TOP_FRAME=FRAME_SCH;PGM_DATA_FILE_EXT=\"sch\";BUILD_KIWAY_DLL"
|
||||||
)
|
)
|
||||||
target_link_libraries( eeschema
|
target_link_libraries( eeschema
|
||||||
|
|
|
@ -7,10 +7,10 @@ add_definitions(-DGERBVIEW)
|
||||||
|
|
||||||
include_directories( BEFORE ${INC_BEFORE} )
|
include_directories( BEFORE ${INC_BEFORE} )
|
||||||
include_directories(
|
include_directories(
|
||||||
../pcbnew
|
${CMAKE_SOURCE_DIR}/pcbnew
|
||||||
dialogs
|
dialogs
|
||||||
../common
|
${CMAKE_SOURCE_DIR}/common
|
||||||
../3d-viewer
|
${CMAKE_SOURCE_DIR}/3d-viewer
|
||||||
${INC_AFTER}
|
${INC_AFTER}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -67,14 +67,14 @@ set( GERBVIEW_SRCS
|
||||||
)
|
)
|
||||||
|
|
||||||
set( GERBVIEW_EXTRA_SRCS
|
set( GERBVIEW_EXTRA_SRCS
|
||||||
../common/base_screen.cpp
|
${CMAKE_SOURCE_DIR}/common/base_screen.cpp
|
||||||
../common/base_units.cpp
|
${CMAKE_SOURCE_DIR}/common/base_units.cpp
|
||||||
../common/eda_text.cpp
|
${CMAKE_SOURCE_DIR}/common/eda_text.cpp
|
||||||
../common/widgets/layer_box_selector.cpp
|
${CMAKE_SOURCE_DIR}/common/widgets/layer_box_selector.cpp
|
||||||
../common/lset.cpp
|
${CMAKE_SOURCE_DIR}/common/lset.cpp
|
||||||
../common/settings.cpp
|
${CMAKE_SOURCE_DIR}/common/settings.cpp
|
||||||
../pcbnew/layer_widget.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/layer_widget.cpp
|
||||||
../common/page_info.cpp
|
${CMAKE_SOURCE_DIR}/common/page_info.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
if( MINGW )
|
if( MINGW )
|
||||||
|
@ -99,11 +99,11 @@ if( APPLE )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_executable( gerbview WIN32 MACOSX_BUNDLE
|
add_executable( gerbview WIN32 MACOSX_BUNDLE
|
||||||
../common/single_top.cpp
|
${CMAKE_SOURCE_DIR}/common/single_top.cpp
|
||||||
../common/pgm_base.cpp
|
${CMAKE_SOURCE_DIR}/common/pgm_base.cpp
|
||||||
${GERBVIEW_RESOURCES}
|
${GERBVIEW_RESOURCES}
|
||||||
)
|
)
|
||||||
set_source_files_properties( ../common/single_top.cpp PROPERTIES
|
set_source_files_properties( ${CMAKE_SOURCE_DIR}/common/single_top.cpp PROPERTIES
|
||||||
COMPILE_DEFINITIONS "TOP_FRAME=FRAME_GERBER;BUILD_KIWAY_DLL"
|
COMPILE_DEFINITIONS "TOP_FRAME=FRAME_GERBER;BUILD_KIWAY_DLL"
|
||||||
)
|
)
|
||||||
target_link_libraries( gerbview
|
target_link_libraries( gerbview
|
||||||
|
|
|
@ -7,8 +7,8 @@ add_definitions( -DKICAD )
|
||||||
|
|
||||||
include_directories( BEFORE ${INC_BEFORE} )
|
include_directories( BEFORE ${INC_BEFORE} )
|
||||||
include_directories(
|
include_directories(
|
||||||
../pcbnew
|
${CMAKE_SOURCE_DIR}/pcbnew
|
||||||
../eeschema
|
${CMAKE_SOURCE_DIR}/eeschema
|
||||||
${INC_AFTER}
|
${INC_AFTER}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ add_definitions(-DPL_EDITOR)
|
||||||
include_directories(BEFORE ${INC_BEFORE})
|
include_directories(BEFORE ${INC_BEFORE})
|
||||||
include_directories(
|
include_directories(
|
||||||
dialogs
|
dialogs
|
||||||
../common/dialogs
|
${CMAKE_SOURCE_DIR}/common/dialogs
|
||||||
${INC_AFTER}
|
${INC_AFTER}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -39,12 +39,12 @@ set( PL_EDITOR_SRCS
|
||||||
)
|
)
|
||||||
|
|
||||||
set( PL_EDITOR_EXTRA_SRCS
|
set( PL_EDITOR_EXTRA_SRCS
|
||||||
../common/base_screen.cpp
|
${CMAKE_SOURCE_DIR}/common/base_screen.cpp
|
||||||
../common/base_units.cpp
|
${CMAKE_SOURCE_DIR}/common/base_units.cpp
|
||||||
../common/eda_text.cpp
|
${CMAKE_SOURCE_DIR}/common/eda_text.cpp
|
||||||
../common/dialogs/dialog_page_settings.cpp
|
${CMAKE_SOURCE_DIR}/common/dialogs/dialog_page_settings.cpp
|
||||||
../common/dialogs/panel_display_options.cpp
|
${CMAKE_SOURCE_DIR}/common/dialogs/panel_display_options.cpp
|
||||||
../common/page_info.cpp
|
${CMAKE_SOURCE_DIR}/common/page_info.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -72,11 +72,11 @@ endif()
|
||||||
|
|
||||||
# a very small program launcher for pl_editor_kiface
|
# a very small program launcher for pl_editor_kiface
|
||||||
add_executable( pl_editor WIN32 MACOSX_BUNDLE
|
add_executable( pl_editor WIN32 MACOSX_BUNDLE
|
||||||
../common/single_top.cpp
|
${CMAKE_SOURCE_DIR}/common/single_top.cpp
|
||||||
../common/pgm_base.cpp
|
${CMAKE_SOURCE_DIR}/common/pgm_base.cpp
|
||||||
${PL_EDITOR_RESOURCES}
|
${PL_EDITOR_RESOURCES}
|
||||||
)
|
)
|
||||||
set_source_files_properties( ../common/single_top.cpp PROPERTIES
|
set_source_files_properties( ${CMAKE_SOURCE_DIR}/common/single_top.cpp PROPERTIES
|
||||||
COMPILE_DEFINITIONS "TOP_FRAME=FRAME_PL_EDITOR;PGM_DATA_FILE_EXT=\"kicad_wks\";BUILD_KIWAY_DLL"
|
COMPILE_DEFINITIONS "TOP_FRAME=FRAME_PL_EDITOR;PGM_DATA_FILE_EXT=\"kicad_wks\";BUILD_KIWAY_DLL"
|
||||||
)
|
)
|
||||||
target_link_libraries( pl_editor
|
target_link_libraries( pl_editor
|
||||||
|
|
|
@ -5,7 +5,7 @@ include_directories(
|
||||||
dialogs
|
dialogs
|
||||||
transline
|
transline
|
||||||
attenuators
|
attenuators
|
||||||
../common
|
${CMAKE_SOURCE_DIR}/common
|
||||||
${INC_AFTER}
|
${INC_AFTER}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -56,11 +56,11 @@ if( APPLE )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_executable( pcb_calculator WIN32 MACOSX_BUNDLE
|
add_executable( pcb_calculator WIN32 MACOSX_BUNDLE
|
||||||
../common/single_top.cpp
|
${CMAKE_SOURCE_DIR}/common/single_top.cpp
|
||||||
../common/pgm_base.cpp
|
${CMAKE_SOURCE_DIR}/common/pgm_base.cpp
|
||||||
${PCB_CALCULATOR_RESOURCES}
|
${PCB_CALCULATOR_RESOURCES}
|
||||||
)
|
)
|
||||||
set_source_files_properties( ../common/single_top.cpp PROPERTIES
|
set_source_files_properties( ${CMAKE_SOURCE_DIR}/common/single_top.cpp PROPERTIES
|
||||||
COMPILE_DEFINITIONS "TOP_FRAME=FRAME_CALC;BUILD_KIWAY_DLL"
|
COMPILE_DEFINITIONS "TOP_FRAME=FRAME_CALC;BUILD_KIWAY_DLL"
|
||||||
)
|
)
|
||||||
target_link_libraries( pcb_calculator
|
target_link_libraries( pcb_calculator
|
||||||
|
@ -188,14 +188,14 @@ endfunction()
|
||||||
md_doc2h( ${CMAKE_CURRENT_SOURCE_DIR}/attenuators/splitter_formula )
|
md_doc2h( ${CMAKE_CURRENT_SOURCE_DIR}/attenuators/splitter_formula )
|
||||||
md_doc2h( ${CMAKE_CURRENT_SOURCE_DIR}/attenuators/pi_formula )
|
md_doc2h( ${CMAKE_CURRENT_SOURCE_DIR}/attenuators/pi_formula )
|
||||||
md_doc2h( ${CMAKE_CURRENT_SOURCE_DIR}/attenuators/tee_formula )
|
md_doc2h( ${CMAKE_CURRENT_SOURCE_DIR}/attenuators/tee_formula )
|
||||||
md_doc2h( ${CMAKE_CURRENT_SOURCE_DIR}/tracks_width_versus_current_formula )
|
md_doc2h( ${CMAKE_CURRENT_SOURCE_DIR}/tracks_width_versus_current_formula )
|
||||||
|
|
||||||
set( DOCS_LIST
|
set( DOCS_LIST
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/attenuators/pi_formula.h
|
${CMAKE_CURRENT_SOURCE_DIR}/attenuators/pi_formula.h
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/attenuators/tee_formula.h
|
${CMAKE_CURRENT_SOURCE_DIR}/attenuators/tee_formula.h
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/attenuators/bridget_tee_formula.h
|
${CMAKE_CURRENT_SOURCE_DIR}/attenuators/bridget_tee_formula.h
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/attenuators/splitter_formula.h
|
${CMAKE_CURRENT_SOURCE_DIR}/attenuators/splitter_formula.h
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/tracks_width_versus_current_formula.h
|
${CMAKE_CURRENT_SOURCE_DIR}/tracks_width_versus_current_formula.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_source_files_properties( attenuators/attenuator_classes.cpp
|
set_source_files_properties( attenuators/attenuator_classes.cpp
|
||||||
|
|
|
@ -22,7 +22,7 @@ if( KICAD_SCRIPTING OR KICAD_SCRIPTING_MODULES )
|
||||||
|
|
||||||
# Infrequently needed headers go at end of search paths, append to INC_AFTER
|
# Infrequently needed headers go at end of search paths, append to INC_AFTER
|
||||||
set( INC_AFTER ${INC_AFTER} swig )
|
set( INC_AFTER ${INC_AFTER} swig )
|
||||||
set( INC_AFTER ${INC_AFTER} ../common/swig )
|
set( INC_AFTER ${INC_AFTER} ${CMAKE_SOURCE_DIR}/common/swig )
|
||||||
|
|
||||||
#message( STATUS "pcbnew INC_AFTER:${INC_AFTER}" )
|
#message( STATUS "pcbnew INC_AFTER:${INC_AFTER}" )
|
||||||
endif()
|
endif()
|
||||||
|
@ -39,11 +39,11 @@ include_directories( BEFORE ${INC_BEFORE} )
|
||||||
include_directories(
|
include_directories(
|
||||||
./dialogs
|
./dialogs
|
||||||
./autorouter
|
./autorouter
|
||||||
../3d-viewer
|
${CMAKE_SOURCE_DIR}/3d-viewer
|
||||||
../common
|
${CMAKE_SOURCE_DIR}/common
|
||||||
../common/dialogs
|
${CMAKE_SOURCE_DIR}/common/dialogs
|
||||||
./exporters
|
./exporters
|
||||||
../utils/idftools
|
${CMAKE_SOURCE_DIR}/utils/idftools
|
||||||
${GLM_INCLUDE_DIR}
|
${GLM_INCLUDE_DIR}
|
||||||
./specctra_import_export
|
./specctra_import_export
|
||||||
${INC_AFTER}
|
${INC_AFTER}
|
||||||
|
@ -341,9 +341,9 @@ set( PCBNEW_SRCS
|
||||||
|
|
||||||
# extra sources from common
|
# extra sources from common
|
||||||
set( PCBNEW_COMMON_SRCS
|
set( PCBNEW_COMMON_SRCS
|
||||||
../common/dialogs/dialog_page_settings.cpp
|
${CMAKE_SOURCE_DIR}/common/dialogs/dialog_page_settings.cpp
|
||||||
../common/base_units.cpp
|
${CMAKE_SOURCE_DIR}/common/base_units.cpp
|
||||||
../common/hotkeys_basic.cpp
|
${CMAKE_SOURCE_DIR}/common/hotkeys_basic.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set( PCBNEW_SCRIPTING_DIALOGS
|
set( PCBNEW_SCRIPTING_DIALOGS
|
||||||
|
@ -352,7 +352,7 @@ set( PCBNEW_SCRIPTING_DIALOGS
|
||||||
)
|
)
|
||||||
|
|
||||||
set( PCBNEW_SCRIPTING_PYTHON_HELPERS
|
set( PCBNEW_SCRIPTING_PYTHON_HELPERS
|
||||||
../common/swig/wx_python_helpers.cpp
|
${CMAKE_SOURCE_DIR}/common/swig/wx_python_helpers.cpp
|
||||||
swig/pcbnew_action_plugins.cpp
|
swig/pcbnew_action_plugins.cpp
|
||||||
swig/pcbnew_footprint_wizards.cpp
|
swig/pcbnew_footprint_wizards.cpp
|
||||||
swig/pcbnew_scripting_helpers.cpp
|
swig/pcbnew_scripting_helpers.cpp
|
||||||
|
@ -396,10 +396,10 @@ if( KICAD_SCRIPTING OR KICAD_SCRIPTING_MODULES )
|
||||||
|
|
||||||
set( SWIG_FLAGS
|
set( SWIG_FLAGS
|
||||||
-I${CMAKE_CURRENT_SOURCE_DIR}
|
-I${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
-I${CMAKE_CURRENT_SOURCE_DIR}/../include
|
-I${CMAKE_SOURCE_DIR}/include
|
||||||
-I${CMAKE_CURRENT_SOURCE_DIR}/../scripting
|
-I${CMAKE_SOURCE_DIR}/scripting
|
||||||
-I${CMAKE_CURRENT_SOURCE_DIR}/../common/swig
|
-I${CMAKE_SOURCE_DIR}/common/swig
|
||||||
-I${CMAKE_CURRENT_SOURCE_DIR}/../libs/kimath/include
|
-I${CMAKE_SOURCE_DIR}/libs/kimath/include
|
||||||
-I${WXPYTHON_SWIG_DIR}
|
-I${WXPYTHON_SWIG_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -460,10 +460,10 @@ if( KICAD_SCRIPTING ) # Generate pcbnew.py and pcbnew_wrap.cxx using swig
|
||||||
DEPENDS swig/zone.i
|
DEPENDS swig/zone.i
|
||||||
DEPENDS swig/zone_settings.i
|
DEPENDS swig/zone_settings.i
|
||||||
|
|
||||||
DEPENDS ../common/swig/kicad.i
|
DEPENDS ${CMAKE_SOURCE_DIR}/common/swig/kicad.i
|
||||||
DEPENDS ../common/swig/wx.i
|
DEPENDS ${CMAKE_SOURCE_DIR}/common/swig/wx.i
|
||||||
DEPENDS ../common/swig/ki_exception.i
|
DEPENDS ${CMAKE_SOURCE_DIR}/common/swig/ki_exception.i
|
||||||
DEPENDS ../scripting/kicadplugins.i
|
DEPENDS ${CMAKE_SOURCE_DIR}/scripting/kicadplugins.i
|
||||||
|
|
||||||
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/docstrings
|
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/docstrings
|
||||||
|
|
||||||
|
@ -579,10 +579,10 @@ endif()
|
||||||
|
|
||||||
# a very small program launcher for pcbnew_kiface
|
# a very small program launcher for pcbnew_kiface
|
||||||
add_executable( pcbnew WIN32 MACOSX_BUNDLE
|
add_executable( pcbnew WIN32 MACOSX_BUNDLE
|
||||||
../common/single_top.cpp
|
${CMAKE_SOURCE_DIR}/common/single_top.cpp
|
||||||
${PCBNEW_RESOURCES}
|
${PCBNEW_RESOURCES}
|
||||||
)
|
)
|
||||||
set_source_files_properties( ../common/single_top.cpp pcbnew.cpp PROPERTIES
|
set_source_files_properties( ${CMAKE_SOURCE_DIR}/common/single_top.cpp pcbnew.cpp PROPERTIES
|
||||||
COMPILE_DEFINITIONS "TOP_FRAME=FRAME_PCB_EDITOR;PGM_DATA_FILE_EXT=\"kicad_pcb\";BUILD_KIWAY_DLL"
|
COMPILE_DEFINITIONS "TOP_FRAME=FRAME_PCB_EDITOR;PGM_DATA_FILE_EXT=\"kicad_pcb\";BUILD_KIWAY_DLL"
|
||||||
)
|
)
|
||||||
target_link_libraries( pcbnew
|
target_link_libraries( pcbnew
|
||||||
|
|
|
@ -29,12 +29,12 @@ set( common_srcs
|
||||||
test_module.cpp
|
test_module.cpp
|
||||||
|
|
||||||
# stuff from common due to...units?
|
# stuff from common due to...units?
|
||||||
../../common/eda_text.cpp
|
${CMAKE_SOURCE_DIR}/common/eda_text.cpp
|
||||||
../../common/base_units.cpp
|
${CMAKE_SOURCE_DIR}/common/base_units.cpp
|
||||||
|
|
||||||
# stuff from common which is needed...why?
|
# stuff from common which is needed...why?
|
||||||
../../common/colors.cpp
|
${CMAKE_SOURCE_DIR}/common/colors.cpp
|
||||||
../../common/observable.cpp
|
${CMAKE_SOURCE_DIR}/common/observable.cpp
|
||||||
|
|
||||||
wximage_test_utils.cpp
|
wximage_test_utils.cpp
|
||||||
|
|
||||||
|
|
|
@ -27,8 +27,8 @@ add_executable( qa_common_tools
|
||||||
# ../../common/eda_text.cpp
|
# ../../common/eda_text.cpp
|
||||||
|
|
||||||
# stuff from common which is needed...why?
|
# stuff from common which is needed...why?
|
||||||
../../common/colors.cpp
|
${CMAKE_SOURCE_DIR}/common/colors.cpp
|
||||||
../../common/observable.cpp
|
${CMAKE_SOURCE_DIR}/common/observable.cpp
|
||||||
|
|
||||||
# The main entry point
|
# The main entry point
|
||||||
main.cpp
|
main.cpp
|
||||||
|
|
|
@ -29,8 +29,8 @@ add_executable( qa_eeschema
|
||||||
# ../../common/single_top.cpp
|
# ../../common/single_top.cpp
|
||||||
|
|
||||||
# stuff from common which is needed...why?
|
# stuff from common which is needed...why?
|
||||||
../../common/colors.cpp
|
${CMAKE_SOURCE_DIR}/common/colors.cpp
|
||||||
../../common/observable.cpp
|
${CMAKE_SOURCE_DIR}/common/observable.cpp
|
||||||
|
|
||||||
# need the mock Pgm for many functions
|
# need the mock Pgm for many functions
|
||||||
mocks_eeschema.cpp
|
mocks_eeschema.cpp
|
||||||
|
|
|
@ -35,16 +35,18 @@ add_dependencies( pnsrouter pcbcommon pcad2kicadpcb ${GITHUB_PLUGIN_LIBRARIES} )
|
||||||
|
|
||||||
add_executable(test_gal_pixel_alignment WIN32
|
add_executable(test_gal_pixel_alignment WIN32
|
||||||
test_gal_pixel_alignment.cpp
|
test_gal_pixel_alignment.cpp
|
||||||
../../qa_utils/pcb_test_frame.cpp
|
|
||||||
../../qa_utils/mocks.cpp
|
${CMAKE_SOURCE_DIR}/qa/qa_utils/pcb_test_frame.cpp
|
||||||
../../../common/base_units.cpp
|
${CMAKE_SOURCE_DIR}/qa/qa_utils/mocks.cpp
|
||||||
../../../pcbnew/board_stackup_manager/stackup_predefined_prms.cpp
|
|
||||||
../../../pcbnew/tools/pcb_tool_base.cpp
|
${CMAKE_SOURCE_DIR}/common/base_units.cpp
|
||||||
../../../pcbnew/tools/pcb_actions.cpp
|
|
||||||
../../../pcbnew/tools/pcbnew_selection.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/board_stackup_manager/stackup_predefined_prms.cpp
|
||||||
../../../pcbnew/tools/selection_tool.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/tools/pcb_tool_base.cpp
|
||||||
../../../pcbnew/tools/tool_event_utils.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/tools/pcb_actions.cpp
|
||||||
#../../pcbnew/tools/outline_editor.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/tools/pcbnew_selection.cpp
|
||||||
|
${CMAKE_SOURCE_DIR}/pcbnew/tools/selection_tool.cpp
|
||||||
|
${CMAKE_SOURCE_DIR}/pcbnew/tools/tool_event_utils.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
include_directories( BEFORE ${INC_BEFORE} )
|
include_directories( BEFORE ${INC_BEFORE} )
|
||||||
|
|
|
@ -35,14 +35,14 @@ add_dependencies( pnsrouter pcbcommon pcad2kicadpcb ${GITHUB_PLUGIN_LIBRARIES} )
|
||||||
|
|
||||||
add_executable(test_window WIN32
|
add_executable(test_window WIN32
|
||||||
test.cpp
|
test.cpp
|
||||||
../qa_utils/pcb_test_frame.cpp
|
${CMAKE_SOURCE_DIR}/qa/qa_utils/pcb_test_frame.cpp
|
||||||
../qa_utils/mocks.cpp
|
${CMAKE_SOURCE_DIR}/qa/qa_utils/mocks.cpp
|
||||||
../../common/base_units.cpp
|
|
||||||
../../pcbnew/tools/pcb_tool_base.cpp
|
${CMAKE_SOURCE_DIR}/common/base_units.cpp
|
||||||
../../pcbnew/tools/pcbnew_selection.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/tools/pcb_tool_base.cpp
|
||||||
../../pcbnew/tools/selection_tool.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/tools/pcbnew_selection.cpp
|
||||||
../../pcbnew/tools/tool_event_utils.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/tools/selection_tool.cpp
|
||||||
#../../pcbnew/tools/outline_editor.cpp
|
${CMAKE_SOURCE_DIR}/pcbnew/tools/tool_event_utils.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
include_directories( BEFORE ${INC_BEFORE} )
|
include_directories( BEFORE ${INC_BEFORE} )
|
||||||
|
|
|
@ -28,11 +28,11 @@ add_executable( qa_pcbnew
|
||||||
# ../../common/single_top.cpp
|
# ../../common/single_top.cpp
|
||||||
|
|
||||||
# stuff from common due to...units?
|
# stuff from common due to...units?
|
||||||
../../common/eda_text.cpp
|
${CMAKE_SOURCE_DIR}/common/eda_text.cpp
|
||||||
|
|
||||||
# stuff from common which is needed...why?
|
# stuff from common which is needed...why?
|
||||||
../../common/colors.cpp
|
${CMAKE_SOURCE_DIR}/common/colors.cpp
|
||||||
../../common/observable.cpp
|
${CMAKE_SOURCE_DIR}/common/observable.cpp
|
||||||
|
|
||||||
# The main test entry points
|
# The main test entry points
|
||||||
test_module.cpp
|
test_module.cpp
|
||||||
|
|
|
@ -15,10 +15,10 @@ add_executable( test-nm-biu-to-ascii-mm-round-tripping
|
||||||
add_executable( property_tree
|
add_executable( property_tree
|
||||||
EXCLUDE_FROM_ALL
|
EXCLUDE_FROM_ALL
|
||||||
property_tree.cpp
|
property_tree.cpp
|
||||||
../common/richio.cpp
|
${CMAKE_SOURCE_DIR}/common/richio.cpp
|
||||||
../common/exceptions.cpp
|
${CMAKE_SOURCE_DIR}/common/exceptions.cpp
|
||||||
../common/dsnlexer.cpp
|
${CMAKE_SOURCE_DIR}/common/dsnlexer.cpp
|
||||||
../common/ptree.cpp
|
${CMAKE_SOURCE_DIR}/common/ptree.cpp
|
||||||
)
|
)
|
||||||
target_link_libraries( property_tree
|
target_link_libraries( property_tree
|
||||||
${wxWidgets_LIBRARIES}
|
${wxWidgets_LIBRARIES}
|
||||||
|
|
|
@ -8,8 +8,8 @@ include_directories( BEFORE
|
||||||
)
|
)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
../../include
|
${CMAKE_SOURCE_DIR}/include
|
||||||
../../common
|
${CMAKE_SOURCE_DIR}/common
|
||||||
${INC_AFTER}
|
${INC_AFTER}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue