Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moose
Manage
Activity
Members
Labels
Plan
Issues
9
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sahil Moza
moose
Commits
33418bff
Commit
33418bff
authored
9 years ago
by
Dilawar Singh
Browse files
Options
Downloads
Patches
Plain Diff
Still does not uninstall.
parent
2bb84736
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+62
-0
62 additions, 0 deletions
CMakeLists.txt
data/Makefile
+30
-0
30 additions, 0 deletions
data/Makefile
with
92 additions
and
0 deletions
CMakeLists.txt
0 → 100644
+
62
−
0
View file @
33418bff
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.8
)
PROJECT
(
moose-all
)
## intialize paths
set
(
MOOSE_CORE_DIR
"
${
CMAKE_SOURCE_DIR
}
/moose-core"
)
set
(
MOOSE_CORE_BUILD_DIR
${
CMAKE_BINARY_DIR
}
/_build_moose_core
)
FILE
(
MAKE_DIRECTORY
${
MOOSE_CORE_BUILD_DIR
}
)
set
(
DATA_DIR
${
CMAKE_SOURCE_DIR
}
/data
)
add_custom_command
(
OUTPUT __moose_core_built__
COMMAND
${
CMAKE_COMMAND
}
-DCMAKE_INSTALL_PREFIX=
${
CMAKE_INSTALL_PREFIX
}
-DDEBUG=OFF
${
MOOSE_CORE_DIR
}
COMMAND $
(
MAKE
)
WORKING_DIRECTORY
${
MOOSE_CORE_BUILD_DIR
}
VERBATIM
)
add_custom_target
(
moose-all ALL
DEPENDS __moose_core_built__
)
install
(
CODE
"
execute_process(COMMAND ctest --output-on-failure
WORKING_DIRECTORY
${
MOOSE_CORE_BUILD_DIR
}
)
execute_process(COMMAND
${
CMAKE_COMMAND
}
install
WORKING_DIRECTORY
${
MOOSE_CORE_BUILD_DIR
}
)
"
)
## moose-gui
## TODO: moose-gui should be a python module.
set
(
MOOSE_GUI_DIR
${
CMAKE_SOURCE_DIR
}
/moose-gui
)
install
(
DIRECTORY
${
MOOSE_GUI_DIR
}
DESTINATION lib/moose/gui
PATTERN
".git"
EXCLUDE
)
install
(
PROGRAMS
${
DATA_DIR
}
/moosegui
DESTINATION bin
)
## UNINSTALL
add_custom_target
(
uninstall
DEPENDS __uninstall_moose-core__ __uninstall_moose-gui__
)
add_custom_command
(
OUTPUT __uninstall_moose-core__
COMMAND make uninstall
WORKING_DIRECTORY
${
MOOSE_CORE_BUILD_DIR
}
)
add_custom_command
(
OUTPUT __uninstall_moose-gui__
COMMAND
${
CMAKE_COMMAND
}
-E remove_directory
${
CMAKE_INSTALL_PREFIX
}
/lib/moose
COMMAND
${
CMAKE_COMMAND
}
-R remove
${
CMAKE_INSTALL_PREFIX
}
/bin/moosegui
WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
This diff is collapsed.
Click to expand it.
Makefile
→
data/
Makefile
+
30
−
0
View file @
33418bff
...
@@ -4,6 +4,9 @@ MOOSEGUI_DIR=$(PWD)/moose-gui
...
@@ -4,6 +4,9 @@ MOOSEGUI_DIR=$(PWD)/moose-gui
MOOSECORE_BUILD_DIR
=
_moose_core_build_dir_
MOOSECORE_BUILD_DIR
=
_moose_core_build_dir_
MOOSEBIN
:=
$(
MOOSECORE_BUILD_DIR
)
/moose.bin
MOOSESDIST
:=
$(
MOOSECORE_BUILD_DIR
)
/moose-3.0.2.tar.gz
## Prefix
## Prefix
PREFIX
:=
/usr
PREFIX
:=
/usr
...
@@ -11,12 +14,17 @@ all: build_moose
...
@@ -11,12 +14,17 @@ all: build_moose
build_moose
:
build_moose_core build_moose_gui
build_moose
:
build_moose_core build_moose_gui
build_moose_core
:
configure_moose_core
build_moose_core
$(MOOSEBIN) $(MOOSESDIST)
:
configure_moose_core
cd
$(
MOOSECORE_BUILD_DIR
)
&&
$(
MAKE
)
cd
$(
MOOSECORE_BUILD_DIR
)
&&
make
-j
`
proc
`
configure_moose_core
:
configure_moose_core
:
echo
"Configuring moose-core"
mkdir
-p
$(
MOOSECORE_BUILD_DIR
)
mkdir
-p
$(
MOOSECORE_BUILD_DIR
)
cd
$(
MOOSECORE_BUILD_DIR
)
cd
$(
MOOSECORE_BUILD_DIR
)
&&
cmake
-DCMAKE_INSTALL_PREFIX
=
$(
PREFIX
)
$(
MOOSECORE_DIR
)
cmake
-DCMAKE_INSTALL_PREFIX
=
$(
PREFIX
)
$(
MOOSECORE_DIR
)
clean
:
git clean
-fxd
.PNONY
:
clean uninstall install
This diff is collapsed.
Click to expand it.
Preview
0%
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