Commit 5be2bcd8 authored by Anatolii Koval's avatar Anatolii Koval
Browse files

Docker. GCC 8.2.0. C++17

[Description]
- Docker infrastructure for the project;
- Compilation script;
- Build project against C++17 standart;
parent 0ee8bfdd
......@@ -7,7 +7,7 @@ cmake_minimum_required(VERSION 2.6)
project(NumA++ CXX)
# define c++ standard and issue all the warning demanded by this standard
add_definitions(-std=c++98 -pedantic)
add_definitions(-std=c++17 -pedantic)
# VERSION ==================================================================================
......@@ -47,7 +47,7 @@ find_package(Eigen3 REQUIRED)
# ElementaryUtils
find_package(ElementaryUtils REQUIRED)
# directories containing headers
# directories containing headers
include_directories(${SFML_INCLUDE_DIR} ${EIGEN3_INCLUDE_DIR} ${ELEMENTARY_UTILS_INCLUDE_DIR})
include_directories(include)
......@@ -80,14 +80,14 @@ target_link_libraries(
NumA++
${SFML_LIBRARIES}
${SFML_LIBRARIES}
${ELEMENTARY_UTILS_LIBRARIES}
)
# install
install(TARGETS NumA++
RUNTIME DESTINATION bin/PARTONS
install(TARGETS NumA++
RUNTIME DESTINATION bin/PARTONS
LIBRARY DESTINATION lib/PARTONS
ARCHIVE DESTINATION lib/static/PARTONS)
install(DIRECTORY include/ DESTINATION include/PARTONS)
\ No newline at end of file
install(DIRECTORY include/ DESTINATION include/PARTONS)
FROM gcc:8.2.0
ENV WORKSPACE="/root/workspace/"
WORKDIR ${WORKSPACE}
RUN apt-get update && \
apt-get install -y libeigen3-dev libcln-dev libsfml-dev libqt4-dev libqt4-sql-mysql cmake git
RUN cd ${WORKSPACE} && \
git clone https://drf-gitlab.cea.fr/partons/core/elementary-utils.git && \
cd ${WORKSPACE}elementary-utils/build && \
git checkout feature/docker-init && \
cmake -G"Unix Makefiles" ../ -DCMAKE_BUILD_TYPE=Debug && \
make && \
make install
#!/bin/bash
docker-compose run --rm numa /bin/bash "${@}"
version: '2'
services:
numa:
build: .
restart: 'no'
volumes:
- "./:/root/workspace/numa"
command: /bin/bash
#!/bin/bash
docker-compose run --rm numa /bin/bash -c "cd /root/workspace/numa/build && cmake -G'Unix Makefiles' ../ -DCMAKE_BUILD_TYPE=Debug && make"
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