From 260ec5bb934a2e7c99b24c460712f2393eebd9b5 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Mon, 18 Jul 2016 07:52:17 -1000 Subject: [PATCH] Add standalone bootstrap script --- CMakeLists.txt | 9 ++++++++- standalone_bootstrap.sh | 11 +++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100755 standalone_bootstrap.sh diff --git a/CMakeLists.txt b/CMakeLists.txt index c1a191b..07016e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,14 @@ +cmake_minimum_required(VERSION 3.0) project(amuse) -if(EXISTS boo) +if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/boo AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/athena) + message(STATUS "Preparing standalone build") + if (NOT MSVC) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wno-narrowing") + endif() add_subdirectory(boo) + add_subdirectory(athena) + include_directories(athena/include) endif() set(SOURCES diff --git a/standalone_bootstrap.sh b/standalone_bootstrap.sh new file mode 100755 index 0000000..0bb01e0 --- /dev/null +++ b/standalone_bootstrap.sh @@ -0,0 +1,11 @@ +#!/bin/sh +git clone https://github.com/AxioDL/boo.git +pushd boo +git submodule update --recursive --init +popd + +git clone https://github.com/libAthena/athena.git +pushd athena +git submodule update --recursive --init +popd +