|
|
@ -14,7 +14,7 @@ cmake_minimum_required(VERSION 2.8)
|
|
|
|
# cmake -G"Unix Makefiles" .. #
|
|
|
|
# cmake -G"Unix Makefiles" .. #
|
|
|
|
# make #
|
|
|
|
# make #
|
|
|
|
#====================================================================#
|
|
|
|
#====================================================================#
|
|
|
|
|
|
|
|
|
|
|
|
#====================================================================#
|
|
|
|
#====================================================================#
|
|
|
|
# Download marlin-cmake scriptfiles if not already installed #
|
|
|
|
# Download marlin-cmake scriptfiles if not already installed #
|
|
|
|
# and add the path to the module path #
|
|
|
|
# and add the path to the module path #
|
|
|
@ -26,13 +26,13 @@ if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/marlin-cmake)
|
|
|
|
|
|
|
|
|
|
|
|
file(DOWNLOAD https://github.com/tohara/marlin-cmake/archive/${SCRIPT_BRANCH}.tar.gz
|
|
|
|
file(DOWNLOAD https://github.com/tohara/marlin-cmake/archive/${SCRIPT_BRANCH}.tar.gz
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/marlin-cmake-src.tar.gz SHOW_PROGRESS)
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/marlin-cmake-src.tar.gz SHOW_PROGRESS)
|
|
|
|
|
|
|
|
|
|
|
|
execute_process(COMMAND ${CMAKE_COMMAND} -E tar -xvf ${CMAKE_CURRENT_LIST_DIR}/marlin-cmake-src.tar.gz WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR})
|
|
|
|
execute_process(COMMAND ${CMAKE_COMMAND} -E tar -xvf ${CMAKE_CURRENT_LIST_DIR}/marlin-cmake-src.tar.gz WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR})
|
|
|
|
|
|
|
|
|
|
|
|
file(RENAME ${CMAKE_CURRENT_LIST_DIR}/marlin-cmake-${SCRIPT_BRANCH} ${CMAKE_CURRENT_LIST_DIR}/marlin-cmake)
|
|
|
|
file(RENAME ${CMAKE_CURRENT_LIST_DIR}/marlin-cmake-${SCRIPT_BRANCH} ${CMAKE_CURRENT_LIST_DIR}/marlin-cmake)
|
|
|
|
file(REMOVE ${CMAKE_CURRENT_LIST_DIR}/marlin-cmake-src.tar.gz)
|
|
|
|
file(REMOVE ${CMAKE_CURRENT_LIST_DIR}/marlin-cmake-src.tar.gz)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
if(WIN32 AND NOT EXISTS ${CMAKE_BINARY_DIR}/make.exe)
|
|
|
|
if(WIN32 AND NOT EXISTS ${CMAKE_BINARY_DIR}/make.exe)
|
|
|
|