Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
amdis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
iwr
amdis
Commits
653bcf79
Commit
653bcf79
authored
8 years ago
by
Praetorius, Simon
Browse files
Options
Downloads
Patches
Plain Diff
build-script for windows added
parent
2e51e7a6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/build_amdis.bat
+53
-0
53 additions, 0 deletions
tools/build_amdis.bat
with
53 additions
and
0 deletions
tools/build_amdis.bat
0 → 100644
+
53
−
0
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
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