2016-01-03 05:55:53 +00:00
|
|
|
include_directories(
|
2016-01-16 08:10:53 +00:00
|
|
|
${CMAKE_BINARY_DIR}
|
2016-01-03 05:55:53 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
2016-01-05 07:55:54 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/v1
|
2016-01-03 05:55:53 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/v2
|
2016-02-05 04:32:52 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/x3d
|
2016-01-03 05:55:53 +00:00
|
|
|
)
|
|
|
|
|
2016-03-01 23:25:21 +00:00
|
|
|
# Developers may wish to set one of these parameters on debug
|
|
|
|
# builds to get informational messages from the various parser
|
|
|
|
# modules. Valid values are 1..4. Setting a value of 4 is
|
|
|
|
# generally not recommended since it causes the parsers to
|
|
|
|
# write a VRML2 equivalent copy of the input file by invoking the
|
|
|
|
# SceneGraph->WriteVRML() function and depending on the setup
|
|
|
|
# the object may attempt to write to a protected directory.
|
|
|
|
#
|
|
|
|
# add_definitions( -DDEBUG_VRML1=1 -DDEBUG_VRML2=1 -DDEBUG_X3D=1 )
|
|
|
|
#
|
|
|
|
# In addition to setting the verbosity of each parser module,
|
|
|
|
# an appropriate WXTRACE value must be set prior to program
|
|
|
|
# execution to enable the logging:
|
|
|
|
#
|
|
|
|
# export WXTRACE="PLUGIN_VRML"
|
|
|
|
#
|
2016-01-03 05:55:53 +00:00
|
|
|
|
|
|
|
add_library( s3d_plugin_vrml MODULE
|
2016-01-11 23:12:50 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/common/richio.cpp
|
2016-09-20 15:59:43 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/common/exceptions.cpp
|
2016-01-03 05:55:53 +00:00
|
|
|
vrml.cpp
|
2016-02-05 04:32:52 +00:00
|
|
|
x3d.cpp
|
2016-01-03 05:55:53 +00:00
|
|
|
wrlproc.cpp
|
2016-02-01 06:27:50 +00:00
|
|
|
wrlfacet.cpp
|
2016-01-03 05:55:53 +00:00
|
|
|
v2/vrml2_node.cpp
|
|
|
|
v2/vrml2_base.cpp
|
|
|
|
v2/vrml2_transform.cpp
|
|
|
|
v2/vrml2_shape.cpp
|
|
|
|
v2/vrml2_appearance.cpp
|
|
|
|
v2/vrml2_material.cpp
|
|
|
|
v2/vrml2_faceset.cpp
|
2016-01-07 00:24:11 +00:00
|
|
|
v2/vrml2_lineset.cpp
|
|
|
|
v2/vrml2_pointset.cpp
|
2016-01-03 05:55:53 +00:00
|
|
|
v2/vrml2_coords.cpp
|
|
|
|
v2/vrml2_norms.cpp
|
|
|
|
v2/vrml2_color.cpp
|
|
|
|
v2/vrml2_box.cpp
|
2016-01-04 07:10:15 +00:00
|
|
|
v2/vrml2_switch.cpp
|
2016-02-22 08:58:32 +00:00
|
|
|
v2/vrml2_inline.cpp
|
2016-01-05 05:37:52 +00:00
|
|
|
v1/vrml1_node.cpp
|
|
|
|
v1/vrml1_base.cpp
|
2016-01-08 05:23:42 +00:00
|
|
|
v1/vrml1_group.cpp
|
2016-01-05 05:37:52 +00:00
|
|
|
v1/vrml1_separator.cpp
|
2016-01-05 07:55:54 +00:00
|
|
|
v1/vrml1_material.cpp
|
|
|
|
v1/vrml1_matbinding.cpp
|
2016-01-05 08:29:28 +00:00
|
|
|
v1/vrml1_coords.cpp
|
2016-01-05 21:29:13 +00:00
|
|
|
v1/vrml1_switch.cpp
|
|
|
|
v1/vrml1_faceset.cpp
|
2016-01-07 06:01:07 +00:00
|
|
|
v1/vrml1_transform.cpp
|
2016-01-07 07:03:07 +00:00
|
|
|
v1/vrml1_shapehints.cpp
|
2016-02-05 04:32:52 +00:00
|
|
|
x3d/x3d_appearance.cpp
|
|
|
|
x3d/x3d_base.cpp
|
|
|
|
x3d/x3d_coords.cpp
|
|
|
|
x3d/x3d_ifaceset.cpp
|
|
|
|
x3d/x3d_ops.cpp
|
|
|
|
x3d/x3d_shape.cpp
|
|
|
|
x3d/x3d_transform.cpp
|
2016-01-03 05:55:53 +00:00
|
|
|
)
|
|
|
|
|
2020-08-17 22:48:20 +00:00
|
|
|
target_link_libraries( s3d_plugin_vrml kicad_3dsg ${OPENGL_LIBRARIES} ${wxWidgets_LIBRARIES} ${ZLIB_LIBRARIES} )
|
|
|
|
|
|
|
|
target_include_directories( s3d_plugin_vrml PRIVATE
|
|
|
|
$<TARGET_PROPERTY:gzip-hpp,INTERFACE_INCLUDE_DIRECTORIES>
|
|
|
|
)
|
2016-01-03 05:55:53 +00:00
|
|
|
|
2016-02-29 23:08:19 +00:00
|
|
|
if( APPLE )
|
|
|
|
# puts library into the main kicad.app bundle in build tree
|
|
|
|
set_target_properties( s3d_plugin_vrml PROPERTIES
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY "${OSX_BUNDLE_BUILD_PLUGIN_DIR}/3d"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2016-01-03 05:55:53 +00:00
|
|
|
install( TARGETS
|
|
|
|
s3d_plugin_vrml
|
|
|
|
DESTINATION ${KICAD_USER_PLUGIN}/3d
|
|
|
|
COMPONENT binary
|
|
|
|
)
|