Here is my try:
IF (NOT WIN32)
#INSTALL_TARGETS(${LIB_INSTALL_DIR} ${tinyscheme-nix_BINARY_DIR}/libtinyscheme.so)
#INSTALL(TARGETS ${tinyscheme-nix_BINARY_DIR}/libtinyscheme.so DESTINATION ${LIB_INSTALL_DIR})
ENDIF()
Both variants are wrong. I want to move libtinyscheme.so from ${tinyscheme-nix_BINARY_DIR} to /lib or /lib64. Basically, I think ${LIB_INSTALL_DIR} handles it.
How can I make it? Where is my mistake?
You probably want the
FILESversion ofinstallhere instead of theTARGETSversion.The
TARGETSversion ofinstallis used for actual CMake targets which have been added using e.g.add_library. In this case, you would refer to the target by its name assigned during theadd_librarycommand, rather than its full path.So replacing
TARGETSwithFILESin your second command would be the way to go here I think.For full details on the
installcommand, run: