blob: ba70561abc54c5e28e5066c0a1bbdd52e29abbbe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
set(SWIG_EXECUTABLE "swig3.0")
find_package(SWIG 3.0 REQUIRED)
include(${SWIG_USE_FILE})
include_directories(${LIBDRM_INCLUDE_DIRS})
link_directories(${LIBDRM_LIBRARY_DIRS})
pkg_search_module(LUA REQUIRED lua5.2 lua)
include_directories(${LUA_INCLUDE_DIRS})
link_directories(${LUA_LIBRARY_DIRS})
#include_directories(libkms)
#XXX
include_directories(../libkms++)
set_source_files_properties(luakms.i PROPERTIES CPLUSPLUS ON)
swig_add_module(luakms lua luakms.i)
swig_link_libraries(luakms kms++ ${LIBDRM_LIBRARIES} ${LUA_LIBRARIES})
add_custom_target(luaextras SOURCES test.lua)
|