2008-03-11 15:57:54 +00:00
|
|
|
add_definitions(-DEESCHEMA)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2008-10-06 05:44:29 +00:00
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}
|
2009-07-10 12:29:31 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/common
|
2008-10-30 20:12:29 +00:00
|
|
|
${Boost_INCLUDE_DIR}
|
2008-10-06 05:44:29 +00:00
|
|
|
)
|
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-02-26 01:07:38 +00:00
|
|
|
annotate_dialog.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-06-13 17:06:07 +00:00
|
|
|
class_BodyItem_Text.cpp
|
2008-02-27 20:47:03 +00:00
|
|
|
class_drawsheet.cpp
|
2009-01-04 18:52:57 +00:00
|
|
|
class_drawsheetpath.cpp
|
2009-07-08 15:42:45 +00:00
|
|
|
class_drc_erc_item.cpp
|
2008-04-15 19:38:19 +00:00
|
|
|
class_hierarchical_PIN_sheet.cpp
|
2008-12-31 09:27:19 +00:00
|
|
|
class_libentry.cpp
|
|
|
|
class_libentry_fields.cpp
|
2008-09-18 17:10:54 +00:00
|
|
|
class_library.cpp
|
2009-07-07 17:50:02 +00:00
|
|
|
class_marker_sch.cpp
|
2009-07-12 15:29:42 +00:00
|
|
|
class_netlist_object.cpp
|
2008-09-20 17:43:07 +00:00
|
|
|
class_pin.cpp
|
|
|
|
class_sch_cmp_field.cpp
|
2009-07-27 14:32:40 +00:00
|
|
|
class_sch_component.cpp
|
2008-04-16 04:00:19 +00:00
|
|
|
class_schematic_items.cpp
|
2009-07-25 07:31:07 +00:00
|
|
|
class_sch_screen.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
class_text-label.cpp
|
2008-09-13 18:59:57 +00:00
|
|
|
classes_body_items.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
cleanup.cpp
|
|
|
|
controle.cpp
|
|
|
|
cross-probing.cpp
|
|
|
|
dangling_ends.cpp
|
|
|
|
database.cpp
|
|
|
|
delete.cpp
|
|
|
|
delsheet.cpp
|
2009-10-27 19:30:32 +00:00
|
|
|
dialog_annotate_base.cpp
|
2009-06-21 13:37:27 +00:00
|
|
|
dialog_bodygraphictext_properties_base.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
dialog_build_BOM.cpp
|
2009-06-21 13:37:27 +00:00
|
|
|
dialog_build_BOM_base.cpp
|
2009-08-18 11:07:21 +00:00
|
|
|
dialog_edit_component_in_lib.cpp
|
|
|
|
dialog_edit_component_in_lib_base.cpp
|
2008-11-24 06:53:43 +00:00
|
|
|
dialog_edit_component_in_schematic_fbp.cpp
|
|
|
|
dialog_edit_component_in_schematic.cpp
|
2008-12-19 20:40:08 +00:00
|
|
|
dialog_edit_label.cpp
|
|
|
|
dialog_edit_label_base.cpp
|
2008-12-30 19:18:56 +00:00
|
|
|
dialog_edit_libentry_fields_in_lib.cpp
|
|
|
|
dialog_edit_libentry_fields_in_lib_base.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
dialog_eeschema_config.cpp
|
2009-04-06 10:56:17 +00:00
|
|
|
dialog_eeschema_config_fbp.cpp
|
2009-12-01 15:14:18 +00:00
|
|
|
dialog_eeschema_options_base.cpp
|
|
|
|
dialog_eeschema_options.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
dialog_erc.cpp
|
2009-07-03 18:25:06 +00:00
|
|
|
dialog_erc_base.cpp
|
2010-03-20 19:57:59 +00:00
|
|
|
dialog_libedit_dimensions.cpp
|
|
|
|
dialog_libedit_dimensions_base.cpp
|
2009-10-20 19:36:58 +00:00
|
|
|
dialog_lib_edit_draw_item.cpp
|
|
|
|
dialog_lib_edit_draw_item_base.cpp
|
2009-10-30 19:26:25 +00:00
|
|
|
dialog_lib_edit_pin.cpp
|
|
|
|
dialog_lib_edit_pin_base.cpp
|
2009-10-08 13:19:28 +00:00
|
|
|
dialog_lib_new_component.cpp
|
|
|
|
dialog_lib_new_component_base.cpp
|
2009-06-21 13:37:27 +00:00
|
|
|
dialog_print_using_printer_base.cpp
|
2009-01-17 17:32:20 +00:00
|
|
|
dialog_print_using_printer.cpp
|
2009-12-15 21:11:05 +00:00
|
|
|
dialog_sch_sheet_props.cpp
|
|
|
|
dialog_sch_sheet_props_base.cpp
|
2010-03-16 18:22:59 +00:00
|
|
|
dialog_schematic_find.cpp
|
|
|
|
dialog_schematic_find_base.cpp
|
2009-01-11 19:12:18 +00:00
|
|
|
dialog_SVG_print.cpp
|
|
|
|
dialog_SVG_print_base.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
edit_component_in_lib.cpp
|
|
|
|
edit_component_in_schematic.cpp
|
|
|
|
edit_label.cpp
|
|
|
|
eelayer.cpp
|
|
|
|
eelibs_draw_components.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
|
|
|
|
lib_export.cpp
|
|
|
|
libfield.cpp
|
|
|
|
load_one_schematic_file.cpp
|
|
|
|
locate.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
|
|
|
|
plot.cpp
|
|
|
|
plothpgl.cpp
|
|
|
|
plotps.cpp
|
2009-06-30 10:43:20 +00:00
|
|
|
plotdxf.cpp
|
2008-12-19 20:40:08 +00:00
|
|
|
read_from_file_schematic_items_descriptions.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
save_schemas.cpp
|
|
|
|
schedit.cpp
|
|
|
|
schematic_undo_redo.cpp
|
|
|
|
schframe.cpp
|
|
|
|
selpart.cpp
|
|
|
|
sheet.cpp
|
|
|
|
sheetlab.cpp
|
|
|
|
symbdraw.cpp
|
|
|
|
symbedit.cpp
|
2008-12-28 18:00:37 +00:00
|
|
|
edit_graphic_bodyitem_text.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
tool_lib.cpp
|
|
|
|
tool_sch.cpp
|
|
|
|
tool_viewlib.cpp
|
|
|
|
viewlib_frame.cpp
|
|
|
|
viewlibs.cpp)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2008-03-11 15:57:54 +00:00
|
|
|
set(EESCHEMA_EXTRA_SRCS
|
2010-03-14 10:34:40 +00:00
|
|
|
../common/dialog_page_settings.cpp
|
2009-04-05 20:49:15 +00:00
|
|
|
../common/sch_item_struct.cpp
|
|
|
|
)
|
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)
|
2009-04-29 12:10:15 +00:00
|
|
|
set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/eeschema_doc.icns"
|
|
|
|
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-01-18 19:33:45 +00:00
|
|
|
add_executable(eeschema WIN32 MACOSX_BUNDLE ${EESCHEMA_SRCS} ${EESCHEMA_EXTRA_SRCS} ${EESCHEMA_RESOURCES})
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2009-04-29 12:10:15 +00:00
|
|
|
if(APPLE)
|
2010-01-18 19:33:45 +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)
|
|
|
|
|
2010-02-11 19:57:47 +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)
|