2014-02-02 21:50:45 +00:00
|
|
|
if( KICAD_SCRIPTING_MODULES )
|
|
|
|
|
2014-02-07 23:40:11 +00:00
|
|
|
if( APPLE AND ( KICAD_BUILD_STATIC OR KICAD_BUILD_DYNAMIC ) )
|
|
|
|
set( PYTHON_QA_PATH :${LIBWXPYTHON_ROOT}/wxPython/lib/python2.6/site-packages )
|
|
|
|
endif()
|
|
|
|
|
2014-02-02 21:50:45 +00:00
|
|
|
# build target that runs the QA tests through scripting
|
|
|
|
add_custom_target( qa
|
2014-02-07 23:40:11 +00:00
|
|
|
COMMAND PYTHONPATH=${CMAKE_BINARY_DIR}/pcbnew${PYTHON_QA_PATH} ${PYTHON_EXECUTABLE} test.py
|
2014-02-02 21:50:45 +00:00
|
|
|
|
|
|
|
COMMENT "running qa"
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
endif()
|