Follow GNU convention for install directories, especially using
`lib64` instead of `lib`.
Signed-off-by: Christoph Junghans <junghans@votca.org>
)
ENDIF(UNIX)
+INCLUDE(GNUInstallDirs)
IF(WIN32)
INSTALL(TARGETS aec sz
RUNTIME
ELSE(WIN32)
INSTALL(TARGETS aec sz
LIBRARY
- DESTINATION lib
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE
- DESTINATION lib
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT libraries
)
ENDIF(WIN32)
INSTALL(FILES libaec.h szlib.h
- DESTINATION include
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
COMPONENT headers
)
INSTALL(TARGETS aec_client
RUNTIME
- DESTINATION bin
+ DESTINATION ${CMAKE_INSTALL_BINDIR}
COMPONENT applications
)