[OpenWrt-Devel] detecting liblua in CMake
Yousong Zhou
yszhou4tech at gmail.com
Thu Aug 30 05:58:43 EDT 2018
On Thu, 30 Aug 2018 at 04:39, Lev <leventelist at gmail.com> wrote:
>
> Hi,
>
>
>
> I'm currently developing an application for OpenWRT. IT is written in C, and uses the LUA libraries.
>
> The C code is configured by CMake. The question is how can I detect, packages with CMake.
>
> At the host system, the application builds fine using CMake, and I have
> something similar in my CMakeLists:
>
>
>
> find_package(Lua 5.1)
>
> if (LUA_FOUND)
> include_directories("${LUA_INCLUDE_DIR}")
> target_link_libraries (${PROJECT_NAME} ${LUA_LIBRARIES})
> endif ()
>
>
> but this doesn't seem to work with the build system of OpenWRT.
>
> How can I detect liblua (libraries and include path, linker options, etc....)?
libubox and uci also uses liblua, so you may find an answer from there.
yousong
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list