summaryrefslogtreecommitdiff
path: root/qa/CMakeLists.txt
diff options
context:
space:
mode:
authorsaurabhb172020-02-26 16:36:01 +0530
committersaurabhb172020-02-26 16:36:01 +0530
commit1fa449fed953fa11f6bd0ea82cc2d3b115ee0781 (patch)
treead18839d8b4eb1f13419d07878cc4ec4c9b70032 /qa/CMakeLists.txt
parentc38609295ad4b617aef472b9c575aee18710a50f (diff)
downloadKiCad-eSim-1fa449fed953fa11f6bd0ea82cc2d3b115ee0781.tar.gz
KiCad-eSim-1fa449fed953fa11f6bd0ea82cc2d3b115ee0781.tar.bz2
KiCad-eSim-1fa449fed953fa11f6bd0ea82cc2d3b115ee0781.zip
Remaining files transfered
Diffstat (limited to 'qa/CMakeLists.txt')
-rw-r--r--qa/CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/qa/CMakeLists.txt b/qa/CMakeLists.txt
new file mode 100644
index 0000000..796575d
--- /dev/null
+++ b/qa/CMakeLists.txt
@@ -0,0 +1,15 @@
+if( KICAD_SCRIPTING_MODULES )
+
+ if( APPLE AND ( KICAD_BUILD_STATIC OR KICAD_BUILD_DYNAMIC ) )
+ set( PYTHON_QA_PATH :${LIBWXPYTHON_ROOT}/wxPython/lib/python2.6/site-packages )
+ endif()
+
+ # build target that runs the QA tests through scripting
+ add_custom_target( qa
+ COMMAND PYTHONPATH=${CMAKE_BINARY_DIR}/pcbnew${PYTHON_QA_PATH} ${PYTHON_EXECUTABLE} test.py
+
+ COMMENT "running qa"
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+ )
+
+endif()