Private
Public Access
2
0
Files
mraa/src/python/CMakeLists.txt
Brendan Le Foll 869f76c5c5 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>
2017-06-19 20:48:29 +02:00

10 lines
279 B
CMake

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