Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
amdis
Commits
653bcf79
Commit
653bcf79
authored
Oct 30, 2016
by
Praetorius, Simon
Browse files
build-script for windows added
parent
2e51e7a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
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