2016-03-01 23:25:21 +00:00
|
|
|
# Developers may wish to set DEBUG_IDF 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_IDF, an
|
|
|
|
# appropriate WXTRACE value must be set prior to program
|
|
|
|
# execution to enable the logging:
|
|
|
|
#
|
|
|
|
# export WXTRACE="PLUGIN_IDF"
|
|
|
|
#
|
|
|
|
|
2015-12-10 21:34:52 +00:00
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${CMAKE_SOURCE_DIR}/utils/idftools
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library( s3d_plugin_idf MODULE
|
|
|
|
s3d_plugin_idf.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/utils/idftools/vrml_layer.cpp
|
|
|
|
)
|
|
|
|
|
2018-03-05 20:54:10 +00:00
|
|
|
target_link_libraries( s3d_plugin_idf
|
|
|
|
kicad_3dsg
|
|
|
|
idf3
|
|
|
|
common
|
|
|
|
${OPENGL_LIBRARIES}
|
|
|
|
${wxWidgets_LIBRARIES} )
|
2015-12-10 21:34:52 +00:00
|
|
|
|
2022-01-31 23:57:56 +00:00
|
|
|
if( APPLE )
|
2016-02-29 23:08:19 +00:00
|
|
|
# puts library into the main kicad.app bundle in build tree
|
|
|
|
set_target_properties( s3d_plugin_idf PROPERTIES
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY "${OSX_BUNDLE_BUILD_PLUGIN_DIR}/3d"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2015-12-14 03:51:28 +00:00
|
|
|
install( TARGETS
|
|
|
|
s3d_plugin_idf
|
|
|
|
DESTINATION ${KICAD_USER_PLUGIN}/3d
|
|
|
|
COMPONENT binary
|
2015-12-10 21:34:52 +00:00
|
|
|
)
|
2021-07-15 03:31:56 +00:00
|
|
|
|
|
|
|
if( KICAD_WIN32_INSTALL_PDBS )
|
|
|
|
# Get the PDBs to copy over for MSVC
|
|
|
|
install(FILES $<TARGET_PDB_FILE:s3d_plugin_idf> DESTINATION ${KICAD_USER_PLUGIN}/3d)
|
2022-01-31 23:57:56 +00:00
|
|
|
endif()
|