[CMake] add_executable question

Joshua Robinson shooki.robinson at gmail.com
Wed Jan 21 21:41:45 EST 2015


Greetings,

Can I add a variable, was set before, to add_executable ?

set(PROJ_NAME Test01)
,,,
file( GLOB ${PROJ_NAME}_SRC "*.h" "*.cpp" )
add_executable( ${PROJ_NAME}  ${PROJ_NAME}_SRC)
...

error in add_executable(..)

Any help is appreciated.

Best Regards,
Joshua Robinson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150121/69e77b27/attachment.html>


More information about the CMake mailing list