2008-10-30 20:12:29 +00:00
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${Boost_INCLUDE_DIR}
|
2009-04-05 20:49:15 +00:00
|
|
|
../3d-viewer
|
2009-02-05 20:53:08 +00:00
|
|
|
../pcbnew
|
|
|
|
../polygon
|
2008-10-30 20:12:29 +00:00
|
|
|
)
|
2009-02-05 20:53:08 +00:00
|
|
|
|
2010-09-01 13:31:20 +00:00
|
|
|
set( COMMON_ABOUT_DLG_SRCS
|
|
|
|
dialog_about/AboutDialog_main.cpp
|
|
|
|
dialog_about/dialog_about.cpp
|
|
|
|
dialog_about/dialog_about_base.cpp
|
|
|
|
)
|
|
|
|
|
2008-03-11 15:57:54 +00:00
|
|
|
set(COMMON_SRCS
|
2010-09-01 13:31:20 +00:00
|
|
|
${COMMON_ABOUT_DLG_SRCS}
|
2008-01-30 09:42:19 +00:00
|
|
|
base_screen.cpp
|
|
|
|
base_struct.cpp
|
|
|
|
basicframe.cpp
|
2009-06-25 20:45:27 +00:00
|
|
|
bezier_curves.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
block_commande.cpp
|
2010-01-05 08:48:49 +00:00
|
|
|
build_version.cpp
|
2010-01-29 20:36:12 +00:00
|
|
|
class_colors_design_settings.cpp
|
2009-07-06 18:02:26 +00:00
|
|
|
class_marker_base.cpp
|
2009-12-11 04:55:24 +00:00
|
|
|
class_plotter.cpp
|
2009-07-23 15:37:00 +00:00
|
|
|
class_undoredo_container.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
common.cpp
|
|
|
|
common_plot_functions.cpp
|
|
|
|
common_plotHPGL_functions.cpp
|
|
|
|
common_plotPS_functions.cpp
|
2009-06-21 13:37:27 +00:00
|
|
|
common_plotGERBER_functions.cpp
|
2009-06-30 10:43:20 +00:00
|
|
|
common_plotDXF_functions.cpp
|
2009-06-21 13:37:27 +00:00
|
|
|
confirm.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
copy_to_clipboard.cpp
|
2009-07-08 15:42:45 +00:00
|
|
|
dialog_display_info_HTML_base.cpp
|
2010-08-28 18:02:24 +00:00
|
|
|
dialog_hotkeys_editor.cpp
|
|
|
|
dialog_hotkeys_editor_base.cpp
|
2009-12-11 04:55:24 +00:00
|
|
|
dialog_load_error.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
dcsvg.cpp
|
2010-03-14 10:34:40 +00:00
|
|
|
dialog_page_settings_base.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
displlst.cpp
|
2008-11-24 06:53:43 +00:00
|
|
|
dlist.cpp
|
2008-12-19 13:51:48 +00:00
|
|
|
drawframe.cpp
|
2008-12-05 16:03:05 +00:00
|
|
|
drawpanel.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
drawtxt.cpp
|
2009-12-11 04:55:24 +00:00
|
|
|
dsnlexer.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
edaappl.cpp
|
|
|
|
eda_dde.cpp
|
|
|
|
eda_doc.cpp
|
|
|
|
gestfich.cpp
|
|
|
|
get_component_dialog.cpp
|
|
|
|
gr_basic.cpp
|
|
|
|
hotkeys_basic.cpp
|
2010-08-28 18:02:24 +00:00
|
|
|
hotkey_grid_table.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
msgpanel.cpp
|
2010-08-09 02:03:16 +00:00
|
|
|
netlist_keywords.cpp
|
2010-03-08 06:18:40 +00:00
|
|
|
newstroke_font.cpp
|
2010-03-25 21:48:24 +00:00
|
|
|
../pcbnew/class_drc_item.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
projet_config.cpp
|
2009-12-11 04:55:24 +00:00
|
|
|
richio.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
selcolor.cpp
|
|
|
|
string.cpp
|
2010-05-16 19:47:22 +00:00
|
|
|
wineda_toolbar.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
trigo.cpp
|
|
|
|
worksheet.cpp
|
2008-12-19 13:51:48 +00:00
|
|
|
wxwineda.cpp
|
2010-08-07 15:25:18 +00:00
|
|
|
xnode.cpp
|
2009-02-05 20:53:08 +00:00
|
|
|
zoom.cpp
|
2009-04-05 20:49:15 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_library(common ${COMMON_SRCS})
|
2009-02-05 20:53:08 +00:00
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
set(PCB_COMMON_SRCS
|
|
|
|
pcbcommon.cpp
|
2009-02-05 20:53:08 +00:00
|
|
|
../pcbnew/basepcbframe.cpp
|
|
|
|
../pcbnew/class_board.cpp
|
|
|
|
../pcbnew/class_board_connected_item.cpp
|
2009-10-28 11:48:47 +00:00
|
|
|
../pcbnew/class_board_design_settings.cpp
|
2009-04-05 20:49:15 +00:00
|
|
|
../pcbnew/class_board_item.cpp
|
2010-01-18 12:37:53 +00:00
|
|
|
../pcbnew/class_dimension.cpp
|
2009-04-05 20:49:15 +00:00
|
|
|
../pcbnew/class_drawsegment.cpp
|
2009-02-05 20:53:08 +00:00
|
|
|
../pcbnew/class_drc_item.cpp
|
2009-04-05 20:49:15 +00:00
|
|
|
../pcbnew/class_edge_mod.cpp
|
2009-07-18 11:44:19 +00:00
|
|
|
../pcbnew/class_netclass.cpp
|
2009-05-25 11:53:55 +00:00
|
|
|
../pcbnew/class_netinfo_item.cpp
|
2009-05-24 18:28:36 +00:00
|
|
|
../pcbnew/class_netinfolist.cpp
|
2009-08-01 19:26:05 +00:00
|
|
|
../pcbnew/class_marker_pcb.cpp
|
2009-02-05 20:53:08 +00:00
|
|
|
../pcbnew/class_mire.cpp
|
2009-04-05 20:49:15 +00:00
|
|
|
../pcbnew/class_module.cpp
|
2009-08-01 19:26:05 +00:00
|
|
|
../pcbnew/class_module_transform_functions.cpp
|
2009-02-05 20:53:08 +00:00
|
|
|
../pcbnew/class_pad.cpp
|
|
|
|
../pcbnew/class_pad_draw_functions.cpp
|
|
|
|
../pcbnew/class_pcb_text.cpp
|
2009-04-05 20:49:15 +00:00
|
|
|
../pcbnew/class_text_mod.cpp
|
|
|
|
../pcbnew/class_track.cpp
|
2009-02-05 20:53:08 +00:00
|
|
|
../pcbnew/class_zone.cpp
|
|
|
|
../pcbnew/class_zone_setting.cpp
|
|
|
|
../pcbnew/classpcb.cpp
|
|
|
|
../pcbnew/collectors.cpp
|
|
|
|
../pcbnew/sel_layer.cpp
|
|
|
|
)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
add_library(pcbcommon ${PCB_COMMON_SRCS})
|
2010-03-08 06:18:40 +00:00
|
|
|
|
2010-08-09 02:03:16 +00:00
|
|
|
# auto-generate netlist_lexer.h and netlist_keywords.cpp
|
2010-08-09 16:56:00 +00:00
|
|
|
set( inputFile ${CMAKE_CURRENT_SOURCE_DIR}/netlist.keywords )
|
|
|
|
set( outHeaderFile ${PROJECT_SOURCE_DIR}/include/netlist_lexer.h )
|
|
|
|
set( outCppFile ${CMAKE_CURRENT_SOURCE_DIR}/netlist_keywords.cpp )
|
|
|
|
set( enum NL_T )
|
2010-08-09 02:03:16 +00:00
|
|
|
add_custom_command(
|
2010-08-09 16:56:00 +00:00
|
|
|
OUTPUT ${outHeaderFile}
|
|
|
|
${outCppFile}
|
2010-08-09 02:03:16 +00:00
|
|
|
COMMAND ${CMAKE_COMMAND}
|
2010-08-09 16:56:00 +00:00
|
|
|
-Denum=${enum}
|
|
|
|
-DinputFile=${inputFile}
|
|
|
|
-DoutHeaderFile=${outHeaderFile}
|
|
|
|
-DoutCppFile=${outCppFile}
|
2010-08-09 02:03:16 +00:00
|
|
|
-P ${CMAKE_MODULE_PATH}/TokenList2DsnLexer.cmake
|
|
|
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/netlist.keywords
|
2010-08-09 16:56:00 +00:00
|
|
|
${CMAKE_MODULE_PATH}/TokenList2DsnLexer.cmake
|
|
|
|
COMMENT "TokenList2DsnLexer.cmake creating:
|
|
|
|
${outHeaderFile} and
|
|
|
|
${outCppFile} from
|
|
|
|
${inputFile}"
|
2010-08-09 02:03:16 +00:00
|
|
|
)
|
|
|
|
|
2010-03-08 06:18:40 +00:00
|
|
|
# The dsntest may not build properly using MS Visual Studio.
|
|
|
|
if(NOT MSVC)
|
|
|
|
# This one gets made only when testing.
|
|
|
|
# to build it, first enable #define STAND_ALONE at top of dsnlexer.cpp
|
|
|
|
add_executable( dsntest EXCLUDE_FROM_ALL dsnlexer.cpp )
|
|
|
|
target_link_libraries( dsntest common ${wxWidgets_LIBRARIES} )
|
|
|
|
|
|
|
|
endif( NOT MSVC )
|
|
|
|
|