summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6171ced)
raw | patch | inline | side by side (parent: 6171ced)
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | |
Fri, 23 Oct 2015 20:37:06 +0000 (23:37 +0300) | ||
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | |
Fri, 23 Oct 2015 20:37:06 +0000 (23:37 +0300) |
py/CMakeLists.txt | patch | blob | history |
diff --git a/py/CMakeLists.txt b/py/CMakeLists.txt
index 42dae209f06f7fe2cdaed6a7480ca3659672e72d..4b1f3ea3b5e993c1303fb88626f180ea4f2de6de 100644 (file)
--- a/py/CMakeLists.txt
+++ b/py/CMakeLists.txt
include_directories(../libkms++ ../libkmstest)
#set(CMAKE_SWIG_FLAGS "-I../../libkms")
+set(CMAKE_SWIG_FLAGS "-builtin")
set_source_files_properties(pykms.i PROPERTIES CPLUSPLUS ON)
swig_add_module(pykms python pykms.i)
swig_link_libraries(pykms kms++ kmstest ${LIBDRM_LIBRARIES} ${PYTHON_LIBRARIES})
+# We get some "maybe-uninitialized" warnings from the generated code. I hope they are harmless.
+set_source_files_properties(${swig_generated_file_fullname} PROPERTIES COMPILE_FLAGS "-Wno-maybe-uninitialized")
+
add_custom_target(pyextras SOURCES test.py functest.py db.py)
add_test(NAME pytest COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/functest.py")