[Commotion-dev] [commotiond] need help on cmake

Josh King jking at opentechinstitute.org
Thu Jul 17 11:27:40 EDT 2014


Hey Luis,

Are you receiving an error from this, or is it just not building the
file? Is colua.c listed as a source file in one of the other targets?
Just checking because otherwise this custom command won't get called by
the build process.

On 07/16/2014 09:06 PM, Luis EG Ontanon wrote:
> Need cmake help to add the generated lua api to the build system...
> 
> I should be able to generate colua.c but my mods to the CMakeLists.txt
> so far have failed...
> 
> This is what I added: I've tried with various versions of the MACROS
> with no succesfull outcome. Can someone tell me what I'm doing wrong.
> 
> SET( LUA_EXECUTABLE /own_libs/lua-5.2.3/src/lua )
> 
> ADD_CUSTOM_COMMAND(
>     OUTPUT
>       colua.c
>     COMMAND ${LUA_EXECUTABLE}
>       ${CMAKE_CURRENT_SOURCE_DIR}/extern/luaqwrap.lua
>       ${CMAKE_CURRENT_SOURCE_DIR}/colua.lwq
>       ${CMAKE_CURRENT_BINARY_DIR}/colua.c
>     DEPENDS
>       ${CMAKE_CURRENT_SOURCE_DIR}/colua.lwq
>       ${CMAKE_CURRENT_SOURCE_DIR}/extern/luaqwrap/luaqwrap.lua
>       ${CMAKE_CURRENT_SOURCE_DIR}/extern/luaqwrap/luaqwrap.h
>       ${CMAKE_CURRENT_SOURCE_DIR}/extern/luaqwrap/luaqwrap.c
> )
> 
> 

-- 
Josh King
Lead Technologist
The Open Technology Institute
http://opentechinstitute.org
PGP Fingerprint: 8269 ED6F EA3B 7D78 F074 1E99 2FDA 4DA1 69AE 4999

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <http://lists.chambana.net/pipermail/commotion-dev/attachments/20140717/0491200d/attachment.sig>


More information about the Commotion-dev mailing list