7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2024-11-21 23:25:01 +00:00
kicad/gerbview/navlib/CMakeLists.txt
John Beard c9a231610a 3DConnexion navlibs need kiplatform
This worked in Pcbnew because pcbcommon happened to include
kiplatform, but gerbview didn't.

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/18825
2024-10-01 17:11:01 +01:00

27 lines
926 B
CMake

add_library(gerbview_navlib STATIC
"nl_gerbview_plugin.cpp"
"nl_gerbview_plugin_impl.cpp"
)
# gerbview_navlib depends on make_lexer outputs in common
add_dependencies( gerbview_navlib common )
# Find the 3DxWare SDK component 3DxWare::NlClient
# find_package(TDxWare_SDK 4.0 REQUIRED COMPONENTS 3DxWare::Navlib)
target_compile_definitions(gerbview_navlib PRIVATE
$<TARGET_PROPERTY:3DxWare::Navlib,INTERFACE_COMPILE_DEFINITIONS>
)
target_compile_options(gerbview_navlib PRIVATE
$<TARGET_PROPERTY:3DxWare::Navlib,INTERFACE_COMPILE_OPTIONS>
)
target_include_directories(gerbview_navlib PRIVATE
$<TARGET_PROPERTY:3DxWare::Navlib,INTERFACE_INCLUDE_DIRECTORIES>
$<TARGET_PROPERTY:gerbview_kiface_objects,INCLUDE_DIRECTORIES>
)
target_link_libraries(gerbview_navlib
kiplatform # Needs kiplatform to check versioning
$<TARGET_PROPERTY:3DxWare::Navlib,INTERFACE_LINK_LIBRARIES>
3DxWare::Navlib
)