Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
amdis
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Aland, Sebastian
amdis
Commits
653bcf79
Commit
653bcf79
authored
Oct 30, 2016
by
Praetorius, Simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build-script for windows added
parent
2e51e7a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
0 deletions
+53
-0
tools/build_amdis.bat
tools/build_amdis.bat
+53
-0
No files found.
tools/build_amdis.bat
0 → 100644
View file @
653bcf79
@echo
off
set
"ROOT=c:/users/sprae/sources/repos/amdis"
set
"BOOST_ROOT=c:/users/sprae/programme"
rem # the following line tests whether it is a 64 bits or 32 bits OS and stores the result in the variable BITS
reg
Query
"HKLM\Hardware\Description\System\CentralProcessor\0"
|
find
/i
"x86"
>
NUL
&&
set
BITS
=
32
||
set
BITS
=
64
rem # set the cmake generator
set
MSVC_VERSION
=
14
set
MSVC_YEAR
=
2015
if
"
%BITS%
"
==
"64"
(
set
"MSVC_GENERATOR=Visual Studio
%MSVC_VERSION%
%MSVC_YEAR%
Win64"
)
else
(
set
"MSVC_GENERATOR=Visual Studio
%MSVC_VERSION%
%MSVC_YEAR%
"
)
rem # set boost version and directories
set
BOOST_MINOR
=
62
set
"BOOST_VERSION=1.
%BOOST_MINOR%
.0"
set
"BOOST_VERSION_STR=1_
%BOOST_MINOR%
_0"
set
"BOOST_DIR=
%BOOST_ROOT%
/boost_
%BOOST_VERSION_STR%
"
set
"BOOST_LIB_DIR=
%BOOST_DIR%
/lib
%BITS%
-msvc-
%MSVC_VERSION%
.0"
set
"POSTFIX=msvc_
%MSVC_VERSION%
_boost_
%BOOST_VERSION%
"
rem # at first build AMDiS
set
"BUILD=
%ROOT%
/build/
%POSTFIX%
"
cmake
-E
make_directory
%BUILD%
cmake
-E
chdir
%BUILD%
cmake
-DCMAKE
_INSTALL_PREFIX:PATH
=
%ROOT%
/install
/
%POSTFIX%
^
-DENABLE
_COMPRESSION:BOOL
=
OFF
-DENABLE
_UMFPACK:BOOL
=
OFF
-DENABLE
_EXTENSIONS:BOOL
=
ON
^
-DBOOST
_ROOT:PATH
=
%BOOST_DIR%
-DBOOST
_LIBRARYDIR:PATH
=
%BOOST_LIB_DIR%
^
-G
"
%MSVC_GENERATOR%
"
%ROOT%
/AMDiS
cmake
--build
%BUILD%
--config
Debug
--target
install
rem # now build the demos
set
"BASEDIR=
%ROOT%
/demo"
set
"BUILD=
%BASEDIR%
/build/
%POSTFIX%
"
cmake
-E
make_directory
%BUILD%
cmake
-E
chdir
%BUILD%
cmake
-DAMDIS
_DIR:PATH
=
%ROOT%
/install
/
%POSTFIX%
/share/amdis
^
-DBOOST
_ROOT:PATH
=
%BOOST_DIR%
-DBOOST
_LIBRARYDIR:PATH
=
%BOOST_LIB_DIR%
^
-G
"
%MSVC_GENERATOR%
"
%BASEDIR%
cmake
--build
%BUILD%
--config
Debug
rem # now build and run the test_suite
set
"BASEDIR=
%ROOT%
/test"
set
"BUILD=
%BASEDIR%
/build/
%POSTFIX%
"
cmake
-E
make_directory
%BUILD%
cmake
-E
chdir
%BUILD%
cmake
-DAMDIS
_DIR:PATH
=
%ROOT%
/install
/
%POSTFIX%
/share/amdis
^
-DBOOST
_ROOT:PATH
=
%BOOST_DIR%
-DBOOST
_LIBRARYDIR:PATH
=
%BOOST_LIB_DIR%
^
-G
"
%MSVC_GENERATOR%
"
%BASEDIR%
cmake
--build
%BUILD%
--config
Debug
cmake
--build
%BUILD%
--config
Debug
--target
run_test
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment