kicad/eeschema/CMakeLists.txt

164 lines
4.3 KiB
CMake
Raw Normal View History

2008-03-11 15:57:54 +00:00
add_definitions(-DEESCHEMA)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/common
${Boost_INCLUDE_DIR}
)
2008-03-11 15:57:54 +00:00
set(EESCHEMA_SRCS
annotate.cpp
annotate_dialog.cpp
backanno.cpp
block.cpp
block_libedit.cpp
build_BOM.cpp
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
class_drawsheetpath.cpp
class_drc_erc_item.cpp
2008-04-15 19:38:19 +00:00
class_hierarchical_PIN_sheet.cpp
class_libentry.cpp
class_libentry_fields.cpp
2008-09-18 17:10:54 +00:00
class_library.cpp
class_marker_sch.cpp
class_netlist_object.cpp
2008-09-20 17:43:07 +00:00
class_pin.cpp
class_sch_cmp_field.cpp
class_sch_component.cpp
class_schematic_items.cpp
class_sch_screen.cpp
class_text-label.cpp
2008-09-13 18:59:57 +00:00
classes_body_items.cpp
cleanup.cpp
controle.cpp
cross-probing.cpp
dangling_ends.cpp
database.cpp
delete.cpp
delsheet.cpp
dialog_annotate_base.cpp
2009-06-21 13:37:27 +00:00
dialog_bodygraphictext_properties_base.cpp
dialog_build_BOM.cpp
2009-06-21 13:37:27 +00:00
dialog_build_BOM_base.cpp
dialog_edit_component_in_lib.cpp
dialog_edit_component_in_lib_base.cpp
dialog_edit_component_in_schematic_fbp.cpp
dialog_edit_component_in_schematic.cpp
dialog_edit_label.cpp
dialog_edit_label_base.cpp
dialog_edit_libentry_fields_in_lib.cpp
dialog_edit_libentry_fields_in_lib_base.cpp
dialog_eeschema_config.cpp
dialog_eeschema_config_fbp.cpp
dialog_eeschema_options_base.cpp
dialog_eeschema_options.cpp
dialog_erc.cpp
dialog_erc_base.cpp
# dialog_find.cpp
dialog_lib_edit_draw_item.cpp
dialog_lib_edit_draw_item_base.cpp
dialog_lib_edit_pin.cpp
dialog_lib_edit_pin_base.cpp
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
dialog_sch_sheet_props.cpp
dialog_sch_sheet_props_base.cpp
dialog_SVG_print.cpp
dialog_SVG_print_base.cpp
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
eeschema_config.cpp
erc.cpp
events_called_functions_for_edit.cpp
files-io.cpp
find.cpp
getpart.cpp
hierarch.cpp
hotkeys.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
operations_on_items_lists.cpp
pinedit.cpp
plot.cpp
plothpgl.cpp
plotps.cpp
2009-06-30 10:43:20 +00:00
plotdxf.cpp
read_from_file_schematic_items_descriptions.cpp
save_schemas.cpp
schedit.cpp
schematic_undo_redo.cpp
schframe.cpp
selpart.cpp
sheet.cpp
sheetlab.cpp
symbdraw.cpp
symbedit.cpp
edit_graphic_bodyitem_text.cpp
tool_lib.cpp
tool_sch.cpp
tool_viewlib.cpp
viewlib_frame.cpp
viewlibs.cpp)
2008-03-11 15:57:54 +00:00
set(EESCHEMA_EXTRA_SRCS
../common/sch_item_struct.cpp
../share/setpage.cpp
)
2008-03-11 15:57:54 +00:00
if(WIN32)
if(MINGW)
# EESCHEMA_RESOURCES variable is set by the macro.
mingw_resource_compiler(eeschema)
2008-03-11 15:57:54 +00:00
else(MINGW)
set(EESCHEMA_RESOURCES eeschema.rc)
endif(MINGW)
endif(WIN32)
2008-03-11 15:57:54 +00:00
if(APPLE)
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"
PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
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)
2010-01-18 19:33:45 +00:00
add_executable(eeschema WIN32 MACOSX_BUNDLE ${EESCHEMA_SRCS} ${EESCHEMA_EXTRA_SRCS} ${EESCHEMA_RESOURCES})
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)
endif(APPLE)
target_link_libraries(eeschema common bitmaps polygon ${wxWidgets_LIBRARIES} ${GDI_PLUS_LIBRARIES})
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)
2008-03-11 15:57:54 +00:00
add_subdirectory(plugins)