1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-22 11:44:53 +08:00

Added the ability to override the install path for the Findserial.cmake file.

This commit is contained in:
William Woodall 2011-03-24 17:40:51 -05:00
parent dbb6dcca50
commit 3fb3b06484

View File

@ -47,7 +47,11 @@ INSTALL(TARGETS serial
INSTALL(FILES include/serial.h DESTINATION include)
INSTALL(FILES Findserial.cmake DESTINATION ${CMAKE_ROOT}/Modules/)
IF(NOT DEFINED(CMAKE_FIND_INSTALL_PATH))
set(CMAKE_FIND_INSTALL_PATH ${CMAKE_ROOT})
ENDIF(NOT DEFINED(CMAKE_FIND_INSTALL_PATH))
INSTALL(FILES Findserial.cmake DESTINATION ${CMAKE_FIND_INSTALL_PATH}/Modules/)
ADD_CUSTOM_TARGET (uninstall @echo uninstall package)