|
CMakeLists.txt install targets are incorrect: msg#00029lisp.scheme.chicken
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 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | CMakeLists.txt from darcs doesn't work: 00029, Brandon J. Van Every |
|---|---|
| Next by Date: | CMakeLists.txt CONFIGURE_FILE bug and paradigm: 00029, Brandon J. Van Every |
| Previous by Thread: | CMakeLists.txt from darcs doesn't worki: 00029, Brandon J. Van Every |
| Next by Thread: | Re: CMakeLists.txt install targets are incorrect: 00029, felix winkelmann |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |