use PixelFormat all around
[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 # XXX how to add these inc dirs in a proper way?
13 include_directories(../libkms++ ../libkmstest)
15 set_source_files_properties(luakms.i PROPERTIES CPLUSPLUS ON)
16 swig_add_module(luakms lua luakms.i)
17 swig_link_libraries(luakms kms++ kmstest ${LIBDRM_LIBRARIES} ${LUA_LIBRARIES})
19 add_custom_target(luaextras SOURCES test.lua)