Add std::string support to swig for lua and python.
[android/external-libkmsxx.git] / lua / CMakeLists.txt
1 set(SWIG_EXECUTABLE "swig3.0")
2 find_package(SWIG 3.0 REQUIRED)
3 include(${SWIG_USE_FILE})
5 include_directories(${LIBDRM_INCLUDE_DIRS})
6 link_directories(${LIBDRM_LIBRARY_DIRS})
8 pkg_search_module(LUA REQUIRED lua5.2 lua)
9 include_directories(${LUA_INCLUDE_DIRS})
10 link_directories(${LUA_LIBRARY_DIRS})
12 #include_directories(libkms)
13 #XXX
14 include_directories(../libkms++)
16 set_source_files_properties(luakms.i PROPERTIES CPLUSPLUS ON)
17 swig_add_module(luakms lua luakms.i)
18 swig_link_libraries(luakms kms++ ${LIBDRM_LIBRARIES} ${LUA_LIBRARIES})
20 add_custom_target(luaextras SOURCES test.lua)