Private
Public Access
2
0

python: only add python dir if we have the prerequisites

This means we can depend on the directory existing to check if the
prerequisites are met in the tests/ section

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2017-06-13 16:48:37 +02:00
parent e1778c811d
commit 869f76c5c5
3 changed files with 49 additions and 49 deletions

View File

@@ -1,5 +1,9 @@
set_source_files_properties (mraapython.i PROPERTIES CPLUSPLUS ON)
set_source_files_properties (mraapython.i PROPERTIES SWIG_FLAGS "-I${CMAKE_BINARY_DIR}/src")
add_subdirectory (python2)
add_subdirectory (python3)
if (PYTHON2_LIBRARY)
add_subdirectory (python2)
endif ()
if (PYTHON3_LIBRARY)
add_subdirectory (python3)
endif ()