Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
239a7119
Commit
239a7119
authored
2 years ago
by
Ammar Nejati
Browse files
Options
Downloads
Patches
Plain Diff
Directories.cmake: Simplify and clean up the destination-related part
parent
99ffc4a3
No related branches found
No related tags found
1 merge request
!841
Add Python Wheel to the Package
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/BornAgain/Directories.cmake
+24
-34
24 additions, 34 deletions
cmake/BornAgain/Directories.cmake
with
24 additions
and
34 deletions
cmake/BornAgain/Directories.cmake
+
24
−
34
View file @
239a7119
...
...
@@ -72,40 +72,30 @@ endif()
# -----------------------------------------------------------------------------
# destinations
# -----------------------------------------------------------------------------
set
(
destination_suffix
${
CMAKE_PROJECT_NAME
}
_
${
CMAKE_PROJECT_VERSION_MAJOR
}
.
${
CMAKE_PROJECT_VERSION_MINOR
}
)
if
(
WIN32
)
set
(
destination_bin bin
)
set
(
destination_lib bin
)
set
(
destination_include include
)
set
(
destination_examples Examples
)
set
(
destination_images Images
)
set
(
destination_python python
)
else
()
set
(
destination_suffix BornAgain-
${
BornAgain_VERSION_MAJOR
}
.
${
BornAgain_VERSION_MINOR
}
)
if
(
APPLE AND BA_APPLE_BUNDLE
)
set
(
destination_bundle BornAgain.app
)
set
(
destination_prefix
${
destination_bundle
}
/Contents/
)
else
()
if
(
APPLE
)
set
(
QTDIR $ENV{QTDIR}
)
message
(
STATUS
"QTDIR is
${
QTDIR
}
"
)
set
(
CMAKE_INSTALL_RPATH
${
QTDIR
}
/lib
)
endif
()
set
(
destination_prefix
""
)
endif
()
set
(
destination_bin
${
destination_prefix
}
bin
)
set
(
destination_lib
${
destination_prefix
}
lib
)
set
(
destination_include
${
destination_prefix
}
include/
${
destination_suffix
}
)
set
(
destination_share
${
destination_prefix
}
share/
${
destination_suffix
}
/
)
set
(
destination_examples
${
destination_share
}
Examples
)
set
(
destination_images
${
destination_share
}
Images
)
endif
()
set
(
dstIds
""
)
if
(
APPLE AND BA_APPLE_BUNDLE
)
set
(
destination_bundle BornAgain.app
)
set
(
destination_root
${
destination_bundle
}
/Contents/
)
list
(
APPEND dstIds
"bundle"
)
endif
()
message
(
STATUS
"Destination directories:
bin->
${
destination_bin
}
,
lib->
${
destination_lib
}
,
include->
${
destination_include
}
,
share->
${
destination_share
}
,
examples->
${
destination_examples
}
,
images->
${
destination_images
}
"
)
set
(
destination_bin
${
destination_root
}
bin/
)
set
(
destination_lib
${
destination_root
}
lib/
)
if
(
WIN32
)
# on Window, the libraries must be in the same folder as the executable
set
(
destination_lib
${
destination_bin
}
)
endif
(
WIN32
)
set
(
destination_include
${
destination_root
}
include/
${
destination_suffix
}
/
)
set
(
destination_share
${
destination_root
}
share/
${
destination_suffix
}
/
)
set
(
destination_examples
${
destination_share
}
Examples/
)
set
(
destination_images
${
destination_share
}
Images/
)
list
(
APPEND dstIds bin lib include share examples images
)
message
(
STATUS
"Destination directories:"
)
foreach
(
dstId IN LISTS dstIds
)
message
(
"
${
dstId
}
->
${
destination_
${
dstId
}}
"
)
endforeach
()
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