You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
1.7 KiB

18 years ago
18 years ago
  1. add_definitions(-DGERBVIEW -DPCBNEW)
  2. include_directories(
  3. ${CMAKE_CURRENT_SOURCE_DIR}
  4. ../3d-viewer
  5. ../cvpcb
  6. ../pcbnew
  7. ../polygon)
  8. set(GERBVIEW_SRCS
  9. affiche.cpp
  10. block.cpp
  11. controle.cpp
  12. dcode.cpp
  13. deltrack.cpp
  14. edit.cpp
  15. export_to_pcbnew.cpp
  16. files.cpp
  17. gerberframe.cpp
  18. gerbview_config.cpp
  19. gerbview.cpp
  20. hotkeys.cpp
  21. initpcb.cpp
  22. lay2plot.cpp
  23. locate.cpp
  24. onrightclick.cpp
  25. options.cpp
  26. pcbplot.cpp
  27. # pcbtexte.cpp
  28. # process_config.cpp
  29. readgerb.cpp
  30. reglage.cpp
  31. rs274d.cpp
  32. rs274x.cpp
  33. select_layers_to_pcb.cpp
  34. set_color.cpp
  35. tool_gerber.cpp
  36. tracepcb.cpp
  37. trpiste.cpp
  38. undelete.cpp)
  39. set(GERBVIEW_EXTRA_SRCS
  40. ../pcbnew/basepcbframe.cpp
  41. ../pcbnew/class_board.cpp
  42. ../pcbnew/class_drawsegment.cpp
  43. ../pcbnew/class_drc_item.cpp
  44. ../pcbnew/class_marker.cpp
  45. ../pcbnew/class_pcb_text.cpp
  46. ../pcbnew/class_track.cpp
  47. ../pcbnew/class_zone.cpp
  48. ../pcbnew/classpcb.cpp
  49. ../pcbnew/collectors.cpp
  50. ../pcbnew/sel_layer.cpp
  51. ../share/drawframe.cpp
  52. ../share/drawpanel.cpp
  53. ../share/setpage.cpp
  54. ../share/wxprint.cpp
  55. ../share/zoom.cpp)
  56. if(WIN32)
  57. if(MINGW)
  58. # GERBVIEW_RESOURCES variable is set by the macro.
  59. mingw_resource_compiler(gerbview)
  60. else(MINGW)
  61. set(GERBVIEW_RESOURCES gerbview.rc)
  62. endif(MINGW)
  63. endif(WIN32)
  64. if(APPLE)
  65. set(GERBVIEW_RESOURCES gerbview.r)
  66. endif(APPLE)
  67. add_executable(gerbview WIN32 MACOSX_BUNDLE ${GERBVIEW_SRCS} ${GERBVIEW_EXTRA_SRCS} ${GERBVIEW_RESOURCES})
  68. target_link_libraries(gerbview 3d-viewer common polygon ${wxWidgets_LIBRARIES})
  69. install(TARGETS gerbview RUNTIME DESTINATION ${KICAD_BIN}
  70. COMPONENT binary)