Just a heads up, we don't have a huge amount of space on this machine, ~750 GB for the git repos. We can include some data in the projects, but really big datasets will need to remain elsewhere. For anyone new to Git, this is a fairly good place to start: http://gitref.org/index.html Documentation for Gitlab is available here: http://doc.gitlab.com/

Commit 91f053f1 authored by Khalid Kunji's avatar Khalid Kunji

Added Cmake build system

parent 438d7525
cmake_minimum_required (VERSION 2.6)
project (GIGI)
# Add the Mersenne Twister header library
add_library (Mersenne INTERFACE)
#target_sources (Mersenne INTERFACE Mersenne.h)
target_include_directories (Mersenne INTERFACE "${PROJECT_SOURCE_DIR}/Mersenne")
#add_subdirectory (Mersenne)
# Add the executable
add_executable(GIGI GIGI.cpp)
target_link_libraries(GIGI Mersenne)
#if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
#endif()
set(CMAKE_CXX_FLAGS "-Wall -Wextra -static")
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
GIGI: GIGI
GIGI_v1: GIGI.cpp
g++ GIGI.cpp -o GIGI
cmake_minimum_required (VERSION 2.6)
project (gigimerge)
# add the executable
add_executable(gigimerge GIGIMerge.cpp)
#if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
#endif()
set(CMAKE_CXX_FLAGS "-Wall -Wextra")
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
No preview for this file type
cmake_minimum_required (VERSION 2.6)
project (gigisplit)
# add the executable
add_executable(gigisplit GIGISplit.cpp)
#if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
#endif()
set(CMAKE_CXX_FLAGS "-Wall -Wextra")
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
No preview for this file type
export parent_path=$( cd "$(dirname $(readlink -f "${BASH_SOURCE[0]}"))" ; pwd -P )
echo "Parent Path: " "${parent_path}"
cd "$parent_path"
cd ./SPLIT/
cmake . &> "${parent_path}"/make.log
if [ $? -ne 0 ]
then
echo "Cmake failed for Split program."
echo "See make.log for more details."
exit 1
fi
make &>> "${parent_path}"/make.log
if [ $? -ne 0 ]
then
echo "Make failed for Split program."
echo "See make.log for more details."
exit 1
fi
cd ../MERGE/
cmake . &>> "${parent_path}"/make.log
if [ $? -ne 0 ]
then
echo "Cmake failed for Merge program."
echo "See make.log for more details."
exit 1
fi
make &>> "${parent_path}"/make.log
if [ $? -ne 0 ]
then
echo "Make failed for Merge program."
echo "See make.log for more details."
exit 1
fi
cd ../GIGI/src/GIGI_v1.06.1
cmake . &>> "${parent_path}"/make.log
if [ $? -ne 0 ]
then
echo "Cmake failed for GIGI program."
echo "See make.log for more details."
exit 1
fi
make &>> "${parent_path}"/make.log
if [ $? -ne 0 ]
then
echo "Make failed for GIGI program."
echo "See make.log for more details."
exit 1
fi
cp GIGI ../../ &>> "${parent_path}"/make.log
cd "${parent_path}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment