Re: [AD] Allegro main function in separate library

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2010-01-26, Evert Glebbeek <eglebbk@xxxxxxxxxx> wrote:
> Index: examples/CMakeLists.txt
> ===================================================================
> --- examples/CMakeLists.txt	(revision 12856)
> +++ examples/CMakeLists.txt	(working copy)
> @@ -4,6 +4,7 @@
>      ../addons/color
>      ../addons/font
>      ../addons/image
> +    ../addons/main
>      ../addons/memfile
>      ../addons/native_dialog
>      ../addons/physfs
> @@ -31,9 +32,9 @@
>  
>  macro(add_example nm)
>      if(WANT_POPUP_EXAMPLES AND SUPPORT_NATIVE_DIALOG)
> -        add_our_executable(${nm} ${ARGN} ${ALLEGRO_LINK_WITH} ${NATIVE_DIALOG_LINK_WITH})
> +        add_our_executable(${nm} ${ARGN} ${ALLEGRO_LINK_WITH} ${ALLEGRO_MAIN_LINK_WITH} ${NATIVE_DIALOG_LINK_WITH})
>      else()
> -        add_our_executable(${nm} ${ARGN} ${ALLEGRO_LINK_WITH})
> +        add_our_executable(${nm} ${ARGN} ${ALLEGRO_LINK_WITH}${ALLEGRO_MAIN_LINK_WITH} )
>      endif()

Missing a space there.

Please put the files directly in the addons/main directory without the
subdirectories.

I wonder if we need to generate and install pkg-config files?

Also, do we still need the argc,argv capturing on Unix?

Peter




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/