12 lines
462 B
CMake
12 lines
462 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
project(cmake)
|
|
file(GLOB CMAKES "*.cmake" "*.in" "*.keystore")
|
|
if(INSTALL_DIR)
|
|
set(INSTFILES "CMakeLists.txt" "install.bat")
|
|
install(FILES ${CMAKES} ${INSTFILES} DESTINATION ${INSTALL_DIR}/cmake)
|
|
message(STATUS "Install path for cmake files -> \"${INSTALL_DIR}/cmake\"")
|
|
else()
|
|
install(FILES ${CMAKES} DESTINATION ${CMAKE_ROOT}/Modules)
|
|
message(STATUS "Install path for cmake files -> \"${CMAKE_ROOT}/Modules\"")
|
|
endif()
|