2016-07-19 17:35:25 +00:00
|
|
|
#add_definitions(-DPRINT_STATISTICS_3D_VIEWER)
|
2008-03-11 15:57:54 +00:00
|
|
|
add_definitions(-DPCBNEW)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2017-04-17 01:41:21 +00:00
|
|
|
configure_file( 3d_plugin_dir.h.in 3d_plugin_dir.h @ONLY )
|
|
|
|
|
2012-01-23 04:33:36 +00:00
|
|
|
include_directories(BEFORE ${INC_BEFORE})
|
|
|
|
include_directories(
|
2017-04-17 01:41:21 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2012-01-23 04:33:36 +00:00
|
|
|
../pcbnew
|
2015-12-08 07:31:57 +00:00
|
|
|
3d_canvas
|
|
|
|
3d_cache
|
|
|
|
3d_rendering
|
|
|
|
3d_viewer
|
2016-07-19 17:35:25 +00:00
|
|
|
${CMAKE_SOURCE_DIR}
|
2015-12-08 07:31:57 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/include/gal/opengl
|
2014-08-01 21:27:20 +00:00
|
|
|
${GLEW_INCLUDE_DIR}
|
2015-12-08 07:31:57 +00:00
|
|
|
${GLM_INCLUDE_DIR}
|
2012-01-23 04:33:36 +00:00
|
|
|
${INC_AFTER}
|
|
|
|
)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2015-12-08 07:31:57 +00:00
|
|
|
# directories
|
|
|
|
set( DIR_DLG 3d_cache/dialogs )
|
|
|
|
set( DIR_RAY 3d_rendering/3d_render_raytracing )
|
|
|
|
set( DIR_RAY_ACC ${DIR_RAY}/accelerators )
|
|
|
|
set( DIR_RAY_2D ${DIR_RAY}/shapes2D )
|
|
|
|
set( DIR_RAY_3D ${DIR_RAY}/shapes3D )
|
2015-12-13 21:45:22 +00:00
|
|
|
set( DIR_3D_PLUGINS ${CMAKE_SOURCE_DIR}/plugins/ldr )
|
2015-12-08 07:31:57 +00:00
|
|
|
|
2008-03-11 15:57:54 +00:00
|
|
|
set(3D-VIEWER_SRCS
|
2015-12-13 21:45:22 +00:00
|
|
|
${DIR_3D_PLUGINS}/pluginldr.cpp
|
|
|
|
${DIR_3D_PLUGINS}/3d/pluginldr3D.cpp
|
2015-12-08 07:31:57 +00:00
|
|
|
3d_cache/3d_cache_wrapper.cpp
|
|
|
|
3d_cache/3d_cache.cpp
|
|
|
|
3d_cache/3d_plugin_manager.cpp
|
|
|
|
${DIR_DLG}/3d_cache_dialogs.cpp
|
2016-01-25 04:55:36 +00:00
|
|
|
${DIR_DLG}/dlg_select_3dmodel.cpp
|
2017-02-06 14:20:46 +00:00
|
|
|
${DIR_DLG}/panel_prev_3d_base.cpp
|
2015-12-08 07:31:57 +00:00
|
|
|
${DIR_DLG}/panel_prev_model.cpp
|
2016-07-19 17:35:25 +00:00
|
|
|
3d_canvas/cinfo3d_visu.cpp
|
|
|
|
3d_canvas/create_layer_items.cpp
|
2018-01-28 13:05:17 +00:00
|
|
|
3d_canvas/create_3Dgraphic_brd_items.cpp
|
2016-07-19 17:35:25 +00:00
|
|
|
3d_canvas/create_layer_poly.cpp
|
|
|
|
3d_canvas/eda_3d_canvas.cpp
|
|
|
|
3d_canvas/eda_3d_canvas_pivot.cpp
|
2015-12-08 07:31:57 +00:00
|
|
|
3d_model_viewer/c3d_model_viewer.cpp
|
|
|
|
3d_rendering/3d_render_ogl_legacy/c_ogl_3dmodel.cpp
|
|
|
|
3d_rendering/3d_render_ogl_legacy/ogl_legacy_utils.cpp
|
|
|
|
3d_rendering/3d_render_ogl_legacy/c3d_render_createscene_ogl_legacy.cpp
|
|
|
|
3d_rendering/3d_render_ogl_legacy/c3d_render_ogl_legacy.cpp
|
|
|
|
3d_rendering/3d_render_ogl_legacy/clayer_triangles.cpp
|
2016-07-19 17:35:25 +00:00
|
|
|
${DIR_RAY_ACC}/caccelerator.cpp
|
|
|
|
${DIR_RAY_ACC}/cbvh_packet_traversal.cpp
|
|
|
|
${DIR_RAY_ACC}/cbvh_pbrt.cpp
|
|
|
|
${DIR_RAY_ACC}/ccontainer.cpp
|
|
|
|
${DIR_RAY_ACC}/ccontainer2d.cpp
|
2016-10-02 08:11:00 +00:00
|
|
|
${DIR_RAY}/PerlinNoise.cpp
|
2016-07-19 17:35:25 +00:00
|
|
|
${DIR_RAY}/c3d_render_createscene.cpp
|
|
|
|
${DIR_RAY}/c3d_render_raytracing.cpp
|
|
|
|
${DIR_RAY}/cfrustum.cpp
|
|
|
|
${DIR_RAY}/cmaterial.cpp
|
|
|
|
${DIR_RAY}/mortoncodes.cpp
|
2015-12-08 07:31:57 +00:00
|
|
|
${DIR_RAY}/ray.cpp
|
2016-07-19 17:35:25 +00:00
|
|
|
${DIR_RAY}/raypacket.cpp
|
2015-12-08 07:31:57 +00:00
|
|
|
${DIR_RAY_2D}/cbbox2d.cpp
|
2016-07-19 17:35:25 +00:00
|
|
|
${DIR_RAY_2D}/cfilledcircle2d.cpp
|
|
|
|
${DIR_RAY_2D}/citemlayercsg2d.cpp
|
2015-12-08 07:31:57 +00:00
|
|
|
${DIR_RAY_2D}/cobject2d.cpp
|
2016-07-19 17:35:25 +00:00
|
|
|
${DIR_RAY_2D}/cpolygon2d.cpp
|
|
|
|
${DIR_RAY_2D}/cpolygon4pts2d.cpp
|
|
|
|
${DIR_RAY_2D}/cring2d.cpp
|
2015-12-08 07:31:57 +00:00
|
|
|
${DIR_RAY_2D}/croundsegment2d.cpp
|
2016-07-19 17:35:25 +00:00
|
|
|
${DIR_RAY_2D}/ctriangle2d.cpp
|
2015-12-08 07:31:57 +00:00
|
|
|
${DIR_RAY_3D}/cbbox.cpp
|
|
|
|
${DIR_RAY_3D}/cbbox_ray.cpp
|
2016-07-19 17:35:25 +00:00
|
|
|
${DIR_RAY_3D}/ccylinder.cpp
|
|
|
|
${DIR_RAY_3D}/cdummyblock.cpp
|
|
|
|
${DIR_RAY_3D}/clayeritem.cpp
|
|
|
|
${DIR_RAY_3D}/cobject.cpp
|
|
|
|
${DIR_RAY_3D}/cplane.cpp
|
|
|
|
${DIR_RAY_3D}/croundseg.cpp
|
|
|
|
${DIR_RAY_3D}/ctriangle.cpp
|
|
|
|
3d_rendering/buffers_debug.cpp
|
|
|
|
3d_rendering/c3d_render_base.cpp
|
2015-12-08 07:31:57 +00:00
|
|
|
3d_rendering/ccamera.cpp
|
2016-07-19 17:35:25 +00:00
|
|
|
3d_rendering/ccolorrgb.cpp
|
2015-12-08 07:31:57 +00:00
|
|
|
3d_rendering/cimage.cpp
|
2016-07-19 17:35:25 +00:00
|
|
|
3d_rendering/cpostshader.cpp
|
|
|
|
3d_rendering/cpostshader_ssao.cpp
|
2015-12-08 07:31:57 +00:00
|
|
|
3d_rendering/ctrack_ball.cpp
|
2018-04-15 12:07:33 +00:00
|
|
|
3d_viewer/3d_menubar.cpp
|
2016-07-19 17:35:25 +00:00
|
|
|
3d_rendering/test_cases.cpp
|
2015-12-08 07:31:57 +00:00
|
|
|
3d_rendering/trackball.cpp
|
2016-07-19 17:35:25 +00:00
|
|
|
3d_viewer/3d_toolbar.cpp
|
|
|
|
3d_viewer/dialogs/dialog_3D_view_option.cpp
|
|
|
|
3d_viewer/dialogs/dialog_3D_view_option_base.cpp
|
|
|
|
3d_viewer/eda_3d_viewer.cpp
|
2015-12-08 07:31:57 +00:00
|
|
|
common_ogl/cogl_att_list.cpp
|
|
|
|
common_ogl/ogl_utils.cpp
|
2016-07-19 17:35:25 +00:00
|
|
|
3d_fastmath.cpp
|
|
|
|
3d_math.cpp
|
2012-01-23 04:33:36 +00:00
|
|
|
)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2012-02-08 15:06:06 +00:00
|
|
|
add_library(3d-viewer STATIC ${3D-VIEWER_SRCS})
|
2014-10-07 18:10:01 +00:00
|
|
|
add_dependencies( 3d-viewer pcbcommon )
|
2015-12-08 07:31:57 +00:00
|
|
|
|
2017-02-20 16:57:41 +00:00
|
|
|
target_link_libraries( 3d-viewer
|
|
|
|
gal
|
2019-01-31 11:53:01 +00:00
|
|
|
polygon
|
2017-02-20 16:57:41 +00:00
|
|
|
${Boost_}
|
|
|
|
${wxWidgets_LIBRARIES}
|
|
|
|
${OPENGL_LIBRARIES}
|
|
|
|
kicad_3dsg )
|
2015-12-08 07:31:57 +00:00
|
|
|
|
|
|
|
add_subdirectory( 3d_cache )
|