Fix building QA tests with options -DKICAD_USE_3DCONNEXION=ON

This commit is contained in:
markus-bonk 2022-04-05 08:38:09 +02:00
parent 44296dfea2
commit dc8556726b
1 changed files with 10 additions and 7 deletions

View File

@ -413,6 +413,16 @@ target_link_libraries( eeschema_kiface_objects
# declare the dependency
add_dependencies( eeschema_kiface_objects common )
if( KICAD_USE_3DCONNEXION )
message( STATUS "Including 3Dconnexion SpaceMouse navigation support in eeschema" )
add_subdirectory( ./navlib )
target_link_libraries( eeschema_kiface_objects PUBLIC eeschema_navlib)
add_dependencies( eeschema_kiface_objects eeschema_navlib )
endif()
add_library( eeschema_kiface MODULE
eeschema.cpp
)
@ -435,13 +445,6 @@ if( KICAD_SPICE )
)
endif()
if( KICAD_USE_3DCONNEXION )
message( STATUS "Including 3Dconnexion SpaceMouse navigation support in eeschema" )
add_subdirectory( ./navlib )
target_link_libraries( eeschema_kiface PRIVATE eeschema_navlib)
endif()
set_target_properties( eeschema_kiface PROPERTIES
# Decorate OUTPUT_NAME with PREFIX and SUFFIX, creating something like
# _eeschema.so, _eeschema.dll, or _eeschema.kiface