2016-08-22 05:50:38 +00:00
|
|
|
# Developers may wish to set DEBUG_OCE to a value from 1..3 to
|
|
|
|
# enable informational messages in Debug build. Setting a value
|
|
|
|
# of 4 or greater will instruct the parser 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.
|
|
|
|
#
|
|
|
|
# In addition to setting the verbosity via DEBUG_OCE, an
|
|
|
|
# appropriate WXTRACE value must be set prior to program
|
|
|
|
# execution to enable the logging:
|
|
|
|
#
|
|
|
|
# export WXTRACE="PLUGIN_OCE"
|
|
|
|
#
|
|
|
|
|
2016-09-26 06:17:57 +00:00
|
|
|
include_directories( SYSTEM
|
2018-05-15 13:40:25 +00:00
|
|
|
${OCE_INCLUDE_DIRS}
|
2018-01-26 00:38:29 +00:00
|
|
|
${OCC_INCLUDE_DIR}
|
2016-08-22 05:50:38 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_library( s3d_plugin_oce MODULE
|
|
|
|
oce.cpp
|
|
|
|
loadmodel.cpp
|
|
|
|
)
|
|
|
|
|
2018-01-26 00:38:29 +00:00
|
|
|
target_link_libraries( s3d_plugin_oce kicad_3dsg ${OCC_LIBRARIES} ${wxWidgets_LIBRARIES} )
|
2016-08-22 05:50:38 +00:00
|
|
|
|
|
|
|
if( APPLE )
|
|
|
|
# puts library into the main kicad.app bundle in build tree
|
|
|
|
set_target_properties( s3d_plugin_oce PROPERTIES
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY "${OSX_BUNDLE_BUILD_PLUGIN_DIR}/3d"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
install( TARGETS
|
|
|
|
s3d_plugin_oce
|
|
|
|
DESTINATION ${KICAD_USER_PLUGIN}/3d
|
|
|
|
COMPONENT binary
|
|
|
|
)
|