logo       

Re: CMakeLists.txt install targets are incorrect: msg#00033

lisp.scheme.chicken

Subject: Re: CMakeLists.txt install targets are incorrect

Thanks, I added your changes.


cheers,
felix

On 12/11/05, Brandon J. Van Every <bvanevery@xxxxxxxxx> wrote:
> The install targets should be:
>
> # installation targets
> # TODO: make chicken-config executable
> INSTALL_TARGETS(/bin chicken chicken-setup csi chicken-profile csc
> chicken-config)
> INSTALL_FILES(/include .h chicken chicken-config)
> INSTALL_FILES(/man/man1 .1 chicken chicken-config csi csc chicken-setup
> chicken-profile)
>
>
> Note the use of INSTALL_TARGETS rather than INSTALL_PROGRAMS, the
> forward slashes / for relative directory names, the . for .h, and the
> needed .1 file extension for the manual pages. Also note that if you
> intend your .exe names to have dashes (-) rather than underscores (_),
> then the underscores need to be changed to dashes in the ADD_EXECUTABLE
> and TARGET_LINK_LIBRARIES lines, i.e.:
>
> ADD_EXECUTABLE(chicken-profile ${Chicken_BINARY_DIR}/chicken-profile.c)
> TARGET_LINK_LIBRARIES(chicken-profile chicken_lib)
>
> ADD_EXECUTABLE(chicken-setup ${Chicken_BINARY_DIR}/chicken-setup.c)
> TARGET_LINK_LIBRARIES(chicken-setup chicken_lib)
>
>
> Doing these things results in the desired "make install" output, (but of
> course chicken-setup.exe doesn't exist yet), i.e.:
>
>
> Running cmake script file cmake_install.cmake
> -- Installing D:/lang/chicken/mingw/include/chicken.h
> -- Installing D:/lang/chicken/mingw/include/chicken-config.h
> -- Installing D:/lang/chicken/mingw/man/man1/chicken.1
> -- Installing D:/lang/chicken/mingw/man/man1/chicken-config.1
> -- Installing D:/lang/chicken/mingw/man/man1/csi.1
> -- Installing D:/lang/chicken/mingw/man/man1/csc.1
> -- Installing D:/lang/chicken/mingw/man/man1/chicken-setup.1
> -- Installing D:/lang/chicken/mingw/man/man1/chicken-profile.1
> -- Installing D:/lang/chicken/mingw/bin/chicken.exe
> -- Installing D:/lang/chicken/mingw/bin/chicken-profile.exe
> -- Installing D:/lang/chicken/mingw/bin/chicken-setup.exe
> -- Installing D:/lang/chicken/mingw/bin/csc.exe
> -- Installing D:/lang/chicken/mingw/bin/csi.exe
>
>
>
> Cheers,
> Brandon Van Every
>
>
>
> _______________________________________________
> Chicken-users mailing list
> Chicken-users@xxxxxxxxxx
> http://lists.nongnu.org/mailman/listinfo/chicken-users
>


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise