- RUNTIME DESTINATION bin # On Windows, the DLL goes in the same place as the executables
- LIBRARY DESTINATION lib # This is where shared libraries (*.so on Linux, *.dynlib on OS X)
- ARCHIVE DESTINATION lib) # Finally, this is where static libraries (*.a) go
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} # On Windows, the DLL goes in the same place as the executables
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} # This is where shared libraries (*.so on Linux, *.dynlib on OS X)
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) # Finally, this is where static libraries (*.a) go