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
9d5c34ef
Commit
9d5c34ef
authored
9 years ago
by
Dilawar Singh
Browse files
Options
Downloads
Patches
Plain Diff
moose-gui is installed to <prefix>/share/moose/gui folder.
parent
eccc5bb2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+20
-1
20 additions, 1 deletion
CMakeLists.txt
with
20 additions
and
1 deletion
CMakeLists.txt
+
20
−
1
View file @
9d5c34ef
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.8
)
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.8
)
PROJECT
(
moose
)
PROJECT
(
moose
)
## Default install prefix. When building packages, such as on launchpad, we need
## to modify installation prefix.
if
(
DEVELOPER
)
option
(
CMAKE_INSTALL_PREFIX
"Install prefix"
${
CMAKE_BINARY_DIR
}
/_install
)
else
()
option
(
CMAKE_INSTALL_PREFIX
"Install prefix"
/usr
)
endif
()
include
(
ExternalProject
)
include
(
ExternalProject
)
message
(
"[INFO] Installtion directory is
${
CMAKE_INSTALL_PREFIX
}
"
)
ExternalProject_Add
(
moose-core
ExternalProject_Add
(
moose-core
PREFIX
${
CMAKE_CURRENT_BINARY_DIR
}
/_moose-core
PREFIX
${
CMAKE_CURRENT_BINARY_DIR
}
/_moose-core
SOURCE_DIR
${
CMAKE_SOURCE_DIR
}
/moose-core
SOURCE_DIR
${
CMAKE_SOURCE_DIR
}
/moose-core
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=
${
CMAKE_
B
IN
ARY_DIR
}
/_install
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=
${
CMAKE_IN
STALL_PREFIX
}
TEST_BEFORE_INSTALL 1
TEST_BEFORE_INSTALL 1
BUILD_IN_SOURCE 0
BUILD_IN_SOURCE 0
)
)
## moose-gui
set
(
MOOSE_GUI_DIR
${
CMAKE_SOURCE_DIR
}
/moose-gui
)
add_custom_target
(
moose-gui ALL
)
add_custom_command
(
TARGET moose-gui
POST_BUILD
COMMAND
${
CMAKE_COMMAND
}
-E copy_directory
${
MOOSE_GUI_DIR
}
${
CMAKE_INSTALL_PREFIX
}
/share/moose/gui
)
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