Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nptool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
np
nptool
Commits
fca96882
Commit
fca96882
authored
8 years ago
by
Adrien Matta
Browse files
Options
Downloads
Patches
Plain Diff
* Adding npcompilation cli to compile nps and npl from any folder
parent
114f480b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NPLib/CMakeLists.txt
+1
-0
1 addition, 0 deletions
NPLib/CMakeLists.txt
NPLib/scripts/nptool-compilation.sh
+91
-0
91 additions, 0 deletions
NPLib/scripts/nptool-compilation.sh
with
92 additions
and
0 deletions
NPLib/CMakeLists.txt
+
1
−
0
View file @
fca96882
...
@@ -138,4 +138,5 @@ file(RELATIVE_PATH REL_INCLUDE_DIR "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}" "${CMAKE_
...
@@ -138,4 +138,5 @@ file(RELATIVE_PATH REL_INCLUDE_DIR "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}" "${CMAKE_
set
(
CONF_INCLUDE_DIRS
"./"
"./"
)
set
(
CONF_INCLUDE_DIRS
"./"
"./"
)
configure_file
(
ressources/CMake/NPLibConfig.cmake.in
"
${
PROJECT_BINARY_DIR
}
/NPLibConfig.cmake"
@ONLY
)
configure_file
(
ressources/CMake/NPLibConfig.cmake.in
"
${
PROJECT_BINARY_DIR
}
/NPLibConfig.cmake"
@ONLY
)
configure_file
(
scripts/nptool-cleaner.sh
"
${
CMAKE_BINARY_OUTPUT_DIRECTORY
}
/nptool-cleaner"
@ONLY
)
configure_file
(
scripts/nptool-cleaner.sh
"
${
CMAKE_BINARY_OUTPUT_DIRECTORY
}
/nptool-cleaner"
@ONLY
)
configure_file
(
scripts/nptool-compilation.sh
"
${
CMAKE_BINARY_OUTPUT_DIRECTORY
}
/npcompilation"
@ONLY
)
configure_file
(
scripts/nptool-wizard.sh
"
${
CMAKE_BINARY_OUTPUT_DIRECTORY
}
/nptool-wizard"
@ONLY
)
configure_file
(
scripts/nptool-wizard.sh
"
${
CMAKE_BINARY_OUTPUT_DIRECTORY
}
/nptool-wizard"
@ONLY
)
This diff is collapsed.
Click to expand it.
NPLib/scripts/nptool-compilation.sh
0 → 100755
+
91
−
0
View file @
fca96882
# *****************************************************************************
# * Copyright (C) 2016 this file is part of the NPTool Project *
# * *
# * For the licensing terms see $NPTOOL/Licence/NPTool_Licence *
# * For the list of contributors see $NPTOOL/Licence/Contributors *
# *****************************************************************************/
# *****************************************************************************
# * Original Author: A. Matta contact address: a.matta@surrey.ac.uk *
# * *
# * Creation Date : 23/4/2014 *
# * Last update : *
# *---------------------------------------------------------------------------*
# * Decription: This script edit the user .rootlogon.C file to load NPTool *
# * Libraries. *
# * *
# *---------------------------------------------------------------------------*
# * Comment: *
# * *
# * *
# *****************************************************************************
#! /bin/bash
# save the current folder information
FOLDER
=
${
PWD
}
# simulation
if
[
"
$1
"
=
"s"
]
;
then
cd
$NPTOOL
/NPSimulation
if
[
-f
"build.ninja"
]
;
then
ninja
install
elif
[
-f
"Makefile"
]
;
then
make
install
else
cmake ./
make
install
fi
# lib
elif
[
"
$1
"
=
"l"
]
;
then
cd
$NPTOOL
/NPLib
if
[
-f
"build.ninja"
]
;
then
ninja
install
elif
[
-f
"Makefile"
]
;
then
make
install
else
cmake ./
make
install
fi
# all
elif
[
"
$1
"
=
"a"
]
;
then
cd
$NPTOOL
/NPSimulation
if
[
-f
"build.ninja"
]
;
then
ninja
install
elif
[
-f
"Makefile"
]
;
then
make
install
else
cmake ./
make
install
fi
cd
$NPTOOL
/NPLib
if
[
-f
"build.ninja"
]
;
then
ninja
install
elif
[
-f
"Makefile"
]
;
then
make
install
else
cmake ./
make
install
fi
# current folder
cd
$FOLDER
echo
"Folder is
$PWD
"
if
[
-f
"build.ninja"
]
;
then
ninja
elif
[
-f
"Makefile"
]
;
then
make
else
echo
"no build in current folder"
fi
else
echo
"Unexpected argument:
$1
"
echo
"Expecting : s (simulation) , l (library) or a (all)"
fi
# return to original folder
cd
$FOLDER
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment