mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-28 04:55:08 +00:00
28 lines
699 B
CMake
28 lines
699 B
CMake
include(ToLua)
|
|
|
|
if(BUILD_LUA_CAIRO)
|
|
include_directories(${luacairo_includes} ${CMAKE_CURRENT_SOURCE_DIR})
|
|
wrap_tolua(luacairo_src cairo.pkg)
|
|
|
|
add_library(cairo SHARED ${luacairo_src})
|
|
|
|
target_link_libraries(cairo ${luacairo_libs} ${TOLUA_LIBS})
|
|
set(lua_libs ${lua_libs} cairo)
|
|
endif(BUILD_LUA_CAIRO)
|
|
|
|
if(BUILD_LUA_IMLIB2)
|
|
include_directories(${luaimlib2_includes} ${CMAKE_CURRENT_SOURCE_DIR})
|
|
wrap_tolua(luaimlib2_src imlib2.pkg)
|
|
|
|
add_library(imlib2 SHARED ${luaimlib2_src})
|
|
|
|
target_link_libraries(imlib2 ${luaimlib2_libs} ${TOLUA_LIBS})
|
|
set(lua_libs ${lua_libs} imlib2)
|
|
endif(BUILD_LUA_IMLIB2)
|
|
|
|
install(TARGETS
|
|
${lua_libs}
|
|
LIBRARY DESTINATION lib/conky
|
|
ARCHIVE DESTINATION lib/conky
|
|
)
|