2008-03-11 15:57:54 +00:00
|
|
|
add_definitions(-DEESCHEMA)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2012-01-23 04:33:36 +00:00
|
|
|
|
|
|
|
include_directories(BEFORE ${INC_BEFORE})
|
|
|
|
include_directories(
|
|
|
|
./dialogs
|
|
|
|
../common
|
|
|
|
../common/dialogs
|
|
|
|
${Boost_INCLUDE_DIR}
|
|
|
|
${INC_AFTER}
|
|
|
|
)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2008-03-11 15:57:54 +00:00
|
|
|
set(EESCHEMA_SRCS
|
2008-01-30 09:42:19 +00:00
|
|
|
annotate.cpp
|
2008-05-07 15:08:16 +00:00
|
|
|
backanno.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
block.cpp
|
|
|
|
block_libedit.cpp
|
2008-05-15 13:29:59 +00:00
|
|
|
build_BOM.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
busentry.cpp
|
|
|
|
bus-wire-junction.cpp
|
2009-07-08 15:42:45 +00:00
|
|
|
class_drc_erc_item.cpp
|
2008-12-31 09:27:19 +00:00
|
|
|
class_libentry.cpp
|
2008-09-18 17:10:54 +00:00
|
|
|
class_library.cpp
|
2009-07-12 15:29:42 +00:00
|
|
|
class_netlist_object.cpp
|
2010-08-09 16:56:00 +00:00
|
|
|
cmp_library_keywords.cpp
|
2010-04-06 14:09:52 +00:00
|
|
|
cmp_library_lexer.cpp
|
2011-01-01 17:28:21 +00:00
|
|
|
component_references_lister.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
controle.cpp
|
|
|
|
cross-probing.cpp
|
|
|
|
dangling_ends.cpp
|
|
|
|
database.cpp
|
2010-12-02 21:41:56 +00:00
|
|
|
dialogs/dialog_color_config.cpp
|
2010-10-26 09:24:31 +00:00
|
|
|
dialogs/dialog_plot_schematic_DXF.cpp
|
|
|
|
dialogs/dialog_plot_schematic_DXF_base.cpp
|
2010-10-26 08:22:38 +00:00
|
|
|
dialogs/dialog_plot_schematic_HPGL.cpp
|
|
|
|
dialogs/dialog_plot_schematic_HPGL_base.cpp
|
2010-10-25 16:14:36 +00:00
|
|
|
dialogs/dialog_plot_schematic_PS.cpp
|
|
|
|
dialogs/dialog_plot_schematic_PS_base.cpp
|
2012-05-03 18:37:56 +00:00
|
|
|
dialogs/dialog_plot_schematic_PDF.cpp
|
|
|
|
dialogs/dialog_plot_schematic_PDF_base.cpp
|
2010-11-11 21:10:27 +00:00
|
|
|
dialogs/annotate_dialog.cpp
|
|
|
|
dialogs/dialog_annotate_base.cpp
|
2010-11-17 21:47:27 +00:00
|
|
|
dialogs/dialog_lib_edit_text.cpp
|
|
|
|
dialogs/dialog_lib_edit_text_base.cpp
|
|
|
|
dialogs/dialog_build_BOM.cpp
|
|
|
|
dialogs/dialog_build_BOM_base.cpp
|
2010-11-18 21:10:52 +00:00
|
|
|
dialogs/dialog_edit_component_in_lib.cpp
|
|
|
|
dialogs/dialog_edit_component_in_lib_base.cpp
|
|
|
|
dialogs/dialog_edit_component_in_schematic_fbp.cpp
|
|
|
|
dialogs/dialog_edit_component_in_schematic.cpp
|
|
|
|
dialogs/dialog_edit_label.cpp
|
|
|
|
dialogs/dialog_edit_label_base.cpp
|
|
|
|
dialogs/dialog_edit_libentry_fields_in_lib.cpp
|
|
|
|
dialogs/dialog_edit_libentry_fields_in_lib_base.cpp
|
2012-02-22 14:04:48 +00:00
|
|
|
dialogs/dialog_edit_one_field.cpp
|
2010-11-19 16:28:46 +00:00
|
|
|
dialogs/dialog_eeschema_config.cpp
|
|
|
|
dialogs/dialog_eeschema_config_fbp.cpp
|
|
|
|
dialogs/dialog_eeschema_options_base.cpp
|
|
|
|
dialogs/dialog_eeschema_options.cpp
|
2010-11-11 21:10:27 +00:00
|
|
|
dialogs/dialog_erc.cpp
|
|
|
|
dialogs/dialog_erc_base.cpp
|
2010-11-19 16:28:46 +00:00
|
|
|
dialogs/dialog_libedit_dimensions.cpp
|
|
|
|
dialogs/dialog_libedit_dimensions_base.cpp
|
2010-11-17 21:47:27 +00:00
|
|
|
dialogs/dialog_lib_edit_draw_item.cpp
|
|
|
|
dialogs/dialog_lib_edit_draw_item_base.cpp
|
2010-11-17 18:41:20 +00:00
|
|
|
dialogs/dialog_lib_edit_pin.cpp
|
|
|
|
dialogs/dialog_lib_edit_pin_base.cpp
|
2010-11-20 21:59:00 +00:00
|
|
|
dialogs/dialog_lib_new_component.cpp
|
|
|
|
dialogs/dialog_lib_new_component_base.cpp
|
2010-11-11 21:10:27 +00:00
|
|
|
dialogs/dialog_print_using_printer_base.cpp
|
|
|
|
dialogs/dialog_print_using_printer.cpp
|
2010-11-20 21:59:00 +00:00
|
|
|
dialogs/dialog_sch_edit_sheet_pin.cpp
|
|
|
|
dialogs/dialog_sch_edit_sheet_pin_base.cpp
|
|
|
|
dialogs/dialog_sch_sheet_props.cpp
|
|
|
|
dialogs/dialog_sch_sheet_props_base.cpp
|
2010-10-26 20:25:48 +00:00
|
|
|
dialogs/dialog_schematic_find.cpp
|
|
|
|
dialogs/dialog_schematic_find_base.cpp
|
2010-11-17 21:47:27 +00:00
|
|
|
dialogs/dialog_SVG_print.cpp
|
|
|
|
dialogs/dialog_SVG_print_base.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
edit_component_in_schematic.cpp
|
2011-08-31 14:59:20 +00:00
|
|
|
edit_bitmap.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
edit_label.cpp
|
|
|
|
eelibs_read_libraryfiles.cpp
|
|
|
|
eeredraw.cpp
|
|
|
|
eeschema.cpp
|
2009-10-27 13:48:24 +00:00
|
|
|
eeschema_config.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
erc.cpp
|
2010-01-09 08:50:30 +00:00
|
|
|
events_called_functions_for_edit.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
files-io.cpp
|
|
|
|
find.cpp
|
|
|
|
getpart.cpp
|
|
|
|
hierarch.cpp
|
|
|
|
hotkeys.cpp
|
|
|
|
libarch.cpp
|
|
|
|
libedit.cpp
|
2010-02-16 16:21:52 +00:00
|
|
|
libeditframe.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
libedit_onleftclick.cpp
|
|
|
|
libedit_onrightclick.cpp
|
2010-03-18 20:35:29 +00:00
|
|
|
libedit_plot_component.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
libedit_undo_redo.cpp
|
2010-10-08 20:40:57 +00:00
|
|
|
lib_arc.cpp
|
|
|
|
lib_bezier.cpp
|
|
|
|
lib_circle.cpp
|
2011-04-27 19:44:32 +00:00
|
|
|
lib_collectors.cpp
|
2010-10-08 20:40:57 +00:00
|
|
|
lib_draw_item.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
lib_export.cpp
|
2010-10-20 20:24:26 +00:00
|
|
|
lib_field.cpp
|
2010-10-22 12:11:52 +00:00
|
|
|
lib_pin.cpp
|
2010-10-08 20:40:57 +00:00
|
|
|
lib_polyline.cpp
|
|
|
|
lib_rectangle.cpp
|
2010-10-20 20:24:26 +00:00
|
|
|
lib_text.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
libfield.cpp
|
|
|
|
load_one_schematic_file.cpp
|
|
|
|
menubar.cpp
|
2010-03-18 20:35:29 +00:00
|
|
|
menubar_libedit.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
netform.cpp
|
|
|
|
netlist_control.cpp
|
|
|
|
netlist.cpp
|
|
|
|
onleftclick.cpp
|
|
|
|
onrightclick.cpp
|
2009-07-27 14:32:40 +00:00
|
|
|
operations_on_items_lists.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
pinedit.cpp
|
2012-01-09 17:24:01 +00:00
|
|
|
sch_base_frame.cpp
|
2011-08-31 14:59:20 +00:00
|
|
|
sch_bitmap.cpp
|
2010-12-21 15:13:09 +00:00
|
|
|
sch_bus_entry.cpp
|
2011-03-25 19:16:05 +00:00
|
|
|
sch_collectors.cpp
|
2010-11-11 21:10:27 +00:00
|
|
|
sch_component.cpp
|
|
|
|
sch_field.cpp
|
2011-01-12 21:47:54 +00:00
|
|
|
sch_junction.cpp
|
2010-12-21 15:13:09 +00:00
|
|
|
sch_line.cpp
|
2010-11-11 21:10:27 +00:00
|
|
|
sch_marker.cpp
|
2010-12-21 15:13:09 +00:00
|
|
|
sch_no_connect.cpp
|
|
|
|
sch_polyline.cpp
|
2010-11-11 21:10:27 +00:00
|
|
|
sch_screen.cpp
|
|
|
|
sch_sheet.cpp
|
|
|
|
sch_sheet_path.cpp
|
|
|
|
sch_sheet_pin.cpp
|
|
|
|
sch_text.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
schedit.cpp
|
|
|
|
schematic_undo_redo.cpp
|
|
|
|
schframe.cpp
|
|
|
|
selpart.cpp
|
|
|
|
sheet.cpp
|
|
|
|
sheetlab.cpp
|
|
|
|
symbdraw.cpp
|
|
|
|
symbedit.cpp
|
2010-06-17 16:30:10 +00:00
|
|
|
template_fieldnames_keywords.cpp
|
|
|
|
template_fieldnames.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
tool_lib.cpp
|
|
|
|
tool_sch.cpp
|
|
|
|
tool_viewlib.cpp
|
2010-10-20 20:24:26 +00:00
|
|
|
transform.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
viewlib_frame.cpp
|
2012-01-23 04:33:36 +00:00
|
|
|
viewlibs.cpp
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2012-01-23 04:33:36 +00:00
|
|
|
# This file does not look common.
|
|
|
|
# Keep it after template_fieldnames_keywords.cpp
|
2009-04-05 20:49:15 +00:00
|
|
|
../common/sch_item_struct.cpp
|
2012-01-23 04:33:36 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
set(EESCHEMA_COMMON_SRCS
|
|
|
|
../common/dialogs/dialog_page_settings.cpp
|
2012-01-23 04:53:21 +00:00
|
|
|
../common/base_screen.cpp
|
2012-04-12 21:31:31 +00:00
|
|
|
../common/eda_text.cpp
|
|
|
|
../common/class_page_info.cpp
|
2012-04-13 18:51:24 +00:00
|
|
|
../common/base_units.cpp
|
2012-01-23 04:33:36 +00:00
|
|
|
)
|
|
|
|
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2008-03-11 15:57:54 +00:00
|
|
|
if(WIN32)
|
|
|
|
if(MINGW)
|
2008-04-18 08:04:54 +00:00
|
|
|
# EESCHEMA_RESOURCES variable is set by the macro.
|
2008-04-13 19:07:32 +00:00
|
|
|
mingw_resource_compiler(eeschema)
|
2008-03-11 15:57:54 +00:00
|
|
|
else(MINGW)
|
|
|
|
set(EESCHEMA_RESOURCES eeschema.rc)
|
|
|
|
endif(MINGW)
|
|
|
|
endif(WIN32)
|
2008-09-07 19:32:07 +00:00
|
|
|
|
2008-03-11 15:57:54 +00:00
|
|
|
if(APPLE)
|
2009-04-29 12:10:15 +00:00
|
|
|
set(EESCHEMA_RESOURCES eeschema.icns eeschema_doc.icns)
|
2008-06-15 16:31:32 +00:00
|
|
|
set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/eeschema.icns"
|
2008-09-07 19:32:07 +00:00
|
|
|
PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
|
2008-06-15 16:31:32 +00:00
|
|
|
set(MACOSX_BUNDLE_ICON_FILE eeschema.icns)
|
|
|
|
set(MACOSX_BUNDLE_GUI_IDENTIFIER org.kicad-eda.eeschema)
|
2008-03-11 15:57:54 +00:00
|
|
|
endif(APPLE)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2010-08-09 16:56:00 +00:00
|
|
|
|
|
|
|
# auto-generate cmp_library_lexer.h and cmp_library_keywords.cpp for the component
|
|
|
|
# library format.
|
2010-12-27 16:49:39 +00:00
|
|
|
make_lexer(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/cmp_library.keywords
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/cmp_library_lexer.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/cmp_library_keywords.cpp
|
|
|
|
TLIB_T
|
|
|
|
)
|
2010-06-17 16:30:10 +00:00
|
|
|
|
2010-12-27 16:49:39 +00:00
|
|
|
make_lexer(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/template_fieldnames.keywords
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/template_fieldnames_lexer.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/template_fieldnames_keywords.cpp
|
|
|
|
TFIELD_T
|
2010-04-06 14:09:52 +00:00
|
|
|
)
|
|
|
|
|
2012-01-23 04:33:36 +00:00
|
|
|
add_executable(eeschema WIN32 MACOSX_BUNDLE
|
|
|
|
${EESCHEMA_SRCS}
|
|
|
|
${EESCHEMA_COMMON_SRCS}
|
|
|
|
${EESCHEMA_RESOURCES}
|
|
|
|
)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2009-04-29 12:10:15 +00:00
|
|
|
if(APPLE)
|
2010-04-06 14:09:52 +00:00
|
|
|
set_target_properties(eeschema PROPERTIES MACOSX_BUNDLE_INFO_PLIST
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Info.plist)
|
2009-04-29 12:10:15 +00:00
|
|
|
endif(APPLE)
|
|
|
|
|
2012-01-25 14:56:52 +00:00
|
|
|
target_link_libraries(eeschema
|
|
|
|
common
|
|
|
|
bitmaps
|
|
|
|
polygon
|
|
|
|
${wxWidgets_LIBRARIES}
|
|
|
|
${GDI_PLUS_LIBRARIES}
|
|
|
|
)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2010-01-18 19:33:45 +00:00
|
|
|
install(TARGETS eeschema
|
2008-09-14 11:46:58 +00:00
|
|
|
DESTINATION ${KICAD_BIN}
|
2008-06-15 16:31:32 +00:00
|
|
|
COMPONENT binary)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2008-03-11 15:57:54 +00:00
|
|
|
add_subdirectory(plugins)
|