Skip to content
Snippets Groups Projects
Commit fdd4f407 authored by Dmitry Romanov's avatar Dmitry Romanov
Browse files

Initial setup commit

parent e291c3cc
No related branches found
No related tags found
No related merge requests found
FROM eicweb/jug_xl:3.0-stable
{
"build": { "dockerfile": "Dockerfile" },
"extensions": [
"ms-vscode.cpptools", // C++ coding support
"dbaeumer.vscode-eslint", // C++ linting
"twxs.cmake", // CMake build, run, configure
"ms-vscode.cmake-tools" // CMake coding formatting
],
"forwardPorts": [3000],
"runArgs": [
// For X11 support
"-e", "DISPLAY=172.21.80.1:0", // This should be WSL/Docker address for windows
"-e", "LIBGL_ALWAIS_INDIRECT=1"
]
}
\ No newline at end of file
.idea/ .idea/
build/
lib/
share/
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
PROJECT(athena_ip6
VERSION 0.0.1
LANGUAGES CXX
DESCRIPTION "Athena@IP6"
)
# Set find package policy to new
cmake_policy(SET CMP0074 NEW)
# Do we have athena directory (has submodules been initialized?)
if(NOT EXISTS "${CMAKE_CURRENT_LIST_DIR}/athena")
message(FATAL_ERROR "ERROR. Can't fine 'athena' directory. Did you initialize git submodules? If not run 'git submodule init && git submodule update'. CMake exiting..." )
endif()
# Same for ip6 directory
if(NOT EXISTS "${CMAKE_CURRENT_LIST_DIR}/ip6")
message(FATAL_ERROR "ERROR. Can't fine 'ip6' directory. Did you initialize git submodules? If not run 'git submodule init && git submodule update'. CMake exiting..." )
endif()
set (ln_cmd "ln")
set (ln_arg "-s ../ip6/ip6 athena/ip6")
message(STATUS "ln cmd: ${ln_cmd}")
execute_process(COMMAND "ln -s ../ip6/ip6 ${PROJECT_SOURCE_DIR}/athena/ip6"
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
RESULT_VARIABLE git_result
OUTPUT_VARIABLE git_ver)
message(STATUS "{PROJECT_SOURCE_DIR} ${PROJECT_SOURCE_DIR}")
# message(STATUS "${CMAKE_CURRENT_LIST_DIR}/athena/ip6")
# # We need to create a symbolic link for athena if
# if(NOT EXISTS "${CMAKE_CURRENT_LIST_DIR}/athena/ip6")
# execute_process(COMMAND "ln" "-s" "../ip6/ip6" "athena/ip6")
# message(STATUS "created ip6 sybmolic link in athena directory" )
# endif()
# Add athena and ip6 repos
add_subdirectory(athena)
add_subdirectory(ip6)
\ No newline at end of file
# vscode_athena # vscode_athena
Tutorial and a boilerplate of how to develop Athena detector using VSCode and Juggler container Tutorial and a boilerplate of how to develop Athena detector using VSCode and Juggler container
\ No newline at end of file
![Athena in vscode](doc/vscode_propaganda.png)
```
git clone --recurse-submodules https://eicweb.phy.anl.gov/EIC/tutorials/vscode_athena.git
cd vscode_athena
ln -s ../ip6/ip6 athena/ip6
```
[Git submodules documentation](https://git-scm.com/book/en/v2/Git-Tools-Submodules)
[VSCode documentation on container development](https://code.visualstudio.com/docs/remote/create-dev-container)
\ No newline at end of file
doc/vscode_propaganda.png

810 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment