Replying to fix the subject

On Mon, Dec 17, 2012 at 1:45 PM, Derek Cole <derek.c...@gmail.com> wrote:

>
>    I am trying to figure out what I am doing wrong when trying to use
> just flex in a Cmake file to build a shared lib.
>
> i basically have the following
>
> find_package(FLEX)
> FLEX_TARGET(Test ../src/test.l ../src/test.c)set(SRC_FILES mysource.c 
> ${FLEX_Test_OUTPUTS})
> add_libary(testlib ${SRC_FILES})
> target_link_libraries(testlib crypto c ${FLEX_LIBRARIES})
>
> this is giving me a problem saying it cant find ../src/test.c
>
> any ideas how I can make sure Lex ran first? secondly,how can i pass my -L
> and -d options to lex (like I am doing in my normal, pre-cmake version of
> this makefile)
>
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to