install cmake files to custom path
This commit is contained in:
@@ -1,4 +1,11 @@
|
|||||||
cmake_minimum_required(VERSION 3.0)
|
cmake_minimum_required(VERSION 3.0)
|
||||||
project(cmake)
|
project(cmake)
|
||||||
file(GLOB CMAKES "*.cmake" "*.in" "*.keystore")
|
file(GLOB CMAKES "*.cmake" "*.in" "*.keystore")
|
||||||
install(FILES ${CMAKES} DESTINATION ${CMAKE_ROOT}/Modules)
|
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()
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
@echo off
|
@echo off
|
||||||
if not exist build mkdir build
|
if not exist build mkdir build
|
||||||
cd build && ^
|
cd build && ^
|
||||||
cmake_mgw .. && ^
|
cmake -G "CodeBlocks - MinGW Makefiles" .. && ^
|
||||||
make install && ^
|
make install && ^
|
||||||
cd ..
|
cd ..
|
||||||
|
pause
|
||||||
|
|||||||
Reference in New Issue
Block a user