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}
|
|
|
|
# ${Boost_INCLUDE_DIR}
|
|
|
|
)
|
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
|
|
|
affiche.cpp
|
|
|
|
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
|
2008-02-27 20:47:03 +00:00
|
|
|
class_drawsheet.cpp
|
2008-04-15 19:38:19 +00:00
|
|
|
class_hierarchical_PIN_sheet.cpp
|
2008-09-18 17:10:54 +00:00
|
|
|
class_library.cpp
|
2008-09-20 17:43:07 +00:00
|
|
|
class_pin.cpp
|
|
|
|
class_sch_cmp_field.cpp
|
2008-04-16 04:00:19 +00:00
|
|
|
class_schematic_items.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
class_screen.cpp
|
|
|
|
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
|
|
|
|
component_class.cpp
|
|
|
|
controle.cpp
|
|
|
|
cross-probing.cpp
|
|
|
|
dangling_ends.cpp
|
|
|
|
database.cpp
|
|
|
|
delete.cpp
|
|
|
|
delsheet.cpp
|
2008-06-06 12:39:00 +00:00
|
|
|
# dialog_backanno.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
dialog_build_BOM.cpp
|
|
|
|
# dialog_cmp_graphic_properties.cpp
|
|
|
|
dialog_create_component.cpp
|
|
|
|
# dialog_edit_component_in_lib.cpp
|
|
|
|
# dialog_edit_component_in_schematic.cpp
|
|
|
|
# dialog_edit_label.cpp
|
|
|
|
dialog_eeschema_config.cpp
|
|
|
|
dialog_erc.cpp
|
|
|
|
# dialog_find.cpp
|
|
|
|
dialog_options.cpp
|
|
|
|
edit_component_in_lib.cpp
|
|
|
|
edit_component_in_schematic.cpp
|
|
|
|
edit_label.cpp
|
|
|
|
eeconfig.cpp
|
|
|
|
# eecreate.cpp
|
|
|
|
eelayer.cpp
|
|
|
|
eelibs_draw_components.cpp
|
|
|
|
eelibs_read_libraryfiles.cpp
|
|
|
|
eeredraw.cpp
|
|
|
|
eeschema.cpp
|
|
|
|
erc.cpp
|
|
|
|
files-io.cpp
|
|
|
|
find.cpp
|
|
|
|
getpart.cpp
|
|
|
|
hierarch.cpp
|
|
|
|
hotkeys.cpp
|
|
|
|
libalias.cpp
|
|
|
|
libarch.cpp
|
|
|
|
libedit.cpp
|
|
|
|
libedit_onleftclick.cpp
|
|
|
|
libedit_onrightclick.cpp
|
|
|
|
libedit_undo_redo.cpp
|
|
|
|
lib_export.cpp
|
|
|
|
libfield.cpp
|
|
|
|
libframe.cpp
|
|
|
|
load_one_schematic_file.cpp
|
|
|
|
locate.cpp
|
|
|
|
menubar.cpp
|
|
|
|
netform.cpp
|
|
|
|
netlist_control.cpp
|
|
|
|
netlist.cpp
|
|
|
|
onleftclick.cpp
|
|
|
|
onrightclick.cpp
|
|
|
|
pinedit.cpp
|
|
|
|
# pinedit-dialog.cpp
|
|
|
|
plot.cpp
|
|
|
|
plothpgl.cpp
|
|
|
|
plotps.cpp
|
|
|
|
priorque.cpp
|
|
|
|
savelib.cpp
|
|
|
|
save_schemas.cpp
|
|
|
|
schedit.cpp
|
|
|
|
schematic_undo_redo.cpp
|
|
|
|
schframe.cpp
|
|
|
|
selpart.cpp
|
|
|
|
sheet.cpp
|
|
|
|
sheetlab.cpp
|
|
|
|
symbdraw.cpp
|
|
|
|
symbedit.cpp
|
|
|
|
symbtext.cpp
|
|
|
|
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
|
2008-01-30 09:42:19 +00:00
|
|
|
../share/drawframe.cpp
|
|
|
|
../share/drawpanel.cpp
|
|
|
|
../share/setpage.cpp
|
|
|
|
../share/svg_print.cpp
|
|
|
|
../share/wxprint.cpp
|
|
|
|
../share/zoom.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)
|
2008-06-15 16:31:32 +00:00
|
|
|
set(EESCHEMA_RESOURCES eeschema.icns)
|
|
|
|
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)
|
|
|
|
set(MACOSX_BUNDLE_NAME eeschema)
|
2008-03-11 15:57:54 +00:00
|
|
|
endif(APPLE)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2008-03-11 15:57:54 +00:00
|
|
|
add_executable(eeschema WIN32 MACOSX_BUNDLE ${EESCHEMA_SRCS} ${EESCHEMA_EXTRA_SRCS} ${EESCHEMA_RESOURCES})
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2008-05-17 19:24:22 +00:00
|
|
|
target_link_libraries(eeschema common bitmaps ${wxWidgets_LIBRARIES})
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2008-09-07 19:32:07 +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)
|