diff options
Diffstat (limited to 'py')
-rw-r--r-- | py/CMakeLists.txt | 7 | ||||
-rw-r--r-- | py/pykms.i | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/py/CMakeLists.txt b/py/CMakeLists.txt index 39e6ec6..8ad476b 100644 --- a/py/CMakeLists.txt +++ b/py/CMakeLists.txt @@ -8,15 +8,14 @@ link_directories(${LIBDRM_LIBRARY_DIRS}) pkg_check_modules(PYTHON python-3.4 REQUIRED) include_directories(${PYTHON_INCLUDE_DIRS}) -#include_directories(libkms) -#XXX -include_directories(../libkms++) +# XXX how to add these inc dirs in a proper way? +include_directories(../libkms++ ../libkmstest) #set(CMAKE_SWIG_FLAGS "-I../../libkms") set_source_files_properties(pykms.i PROPERTIES CPLUSPLUS ON) swig_add_module(pykms python pykms.i) -swig_link_libraries(pykms kms++ ${LIBDRM_LIBRARIES} ${PYTHON_LIBRARIES}) +swig_link_libraries(pykms kms++ kmstest ${LIBDRM_LIBRARIES} ${PYTHON_LIBRARIES}) add_custom_target(pyextras SOURCES test.py functest.py) @@ -1,7 +1,9 @@ %module pykms %{ #include "kms++.h" -#include "utils/testpat.h" + +#include "testpat.h" + using namespace kms; %} @@ -18,4 +20,5 @@ using namespace kms; %include "plane.h" %include "connector.h" %include "encoder.h" -%include "utils/testpat.h" + +%include "testpat.h" |