45 lines
1.1 KiB
CMake
45 lines
1.1 KiB
CMake
include_directories(
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
${CMAKE_CURRENT_SOURCE_DIR}/v1
|
|
${CMAKE_CURRENT_SOURCE_DIR}/v2
|
|
)
|
|
|
|
add_definitions( -DDEBUG_VRML1=3 -DDEBUG_VRML2=3 )
|
|
|
|
add_library( s3d_plugin_vrml MODULE
|
|
vrml.cpp
|
|
wrlproc.cpp
|
|
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
|
|
v2/vrml2_lineset.cpp
|
|
v2/vrml2_pointset.cpp
|
|
v2/vrml2_coords.cpp
|
|
v2/vrml2_norms.cpp
|
|
v2/vrml2_color.cpp
|
|
v2/vrml2_box.cpp
|
|
v2/vrml2_switch.cpp
|
|
v1/vrml1_node.cpp
|
|
v1/vrml1_base.cpp
|
|
v1/vrml1_separator.cpp
|
|
v1/vrml1_material.cpp
|
|
v1/vrml1_matbinding.cpp
|
|
v1/vrml1_coords.cpp
|
|
v1/vrml1_switch.cpp
|
|
v1/vrml1_faceset.cpp
|
|
v1/vrml1_transform.cpp
|
|
v1/vrml1_shapehints.cpp
|
|
)
|
|
|
|
target_link_libraries( s3d_plugin_vrml kicad_3dsg ${OPENGL_LIBRARIES} ${wxWidgets_LIBRARIES} )
|
|
|
|
install( TARGETS
|
|
s3d_plugin_vrml
|
|
DESTINATION ${KICAD_USER_PLUGIN}/3d
|
|
COMPONENT binary
|
|
)
|