qa/pcb_test_window: fix build with GITHUB_PLUGIN disabled

This commit is contained in:
Tomasz Włostowski 2017-11-05 01:18:50 +01:00
parent ecaf1789c7
commit dcb75a9b24
1 changed files with 10 additions and 2 deletions

View File

@ -27,7 +27,11 @@ find_package( wxWidgets 3.0.0 COMPONENTS gl aui adv html core net base xml stc R
add_definitions(-DBOOST_TEST_DYN_LINK -DPCBNEW) add_definitions(-DBOOST_TEST_DYN_LINK -DPCBNEW)
add_dependencies( pnsrouter pcbcommon pcad2kicadpcb github_plugin ) if( BUILD_GITHUB_PLUGIN )
set( GITHUB_PLUGIN_LIBRARIES github_plugin )
endif()
add_dependencies( pnsrouter pcbcommon pcad2kicadpcb ${GITHUB_PLUGIN_LIBRARIES} )
add_executable(test_window add_executable(test_window
test.cpp test.cpp
@ -81,7 +85,11 @@ target_link_libraries( test_window
bitmaps bitmaps
gal gal
pcad2kicadpcb pcad2kicadpcb
github_plugin common
pcbcommon
${GITHUB_PLUGIN_LIBRARIES}
common
pcbcommon
${Boost_FILESYSTEM_LIBRARY} ${Boost_FILESYSTEM_LIBRARY}
${Boost_SYSTEM_LIBRARY} ${Boost_SYSTEM_LIBRARY}
${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}