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
80a06f95
Commit
80a06f95
authored
11 years ago
by
Ganeva, Marina
Browse files
Options
Downloads
Patches
Plain Diff
Small modifications
parent
405db061
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Examples/cpp/ex001_CylindersAndPrisms/CMakeLists.txt
+4
-4
4 additions, 4 deletions
Examples/cpp/ex001_CylindersAndPrisms/CMakeLists.txt
Examples/cpp/ex001_CylindersAndPrisms/modules/FindBornAgain.cmake
+2
-1
2 additions, 1 deletion
.../cpp/ex001_CylindersAndPrisms/modules/FindBornAgain.cmake
with
6 additions
and
5 deletions
Examples/cpp/ex001_CylindersAndPrisms/CMakeLists.txt
+
4
−
4
View file @
80a06f95
...
...
@@ -4,7 +4,7 @@ project(CylindersAndPrisms)
add_executable
(
CylindersAndPrisms CylindersAndPrisms.cpp
)
#
set (CMAKE_CXX_FLAGS "-
g
")
set
(
CMAKE_CXX_FLAGS
"-
H -Wall
"
)
# path to the cmake modules
set
(
CMAKE_MODULE_PATH
${
CMAKE_SOURCE_DIR
}
/modules
)
...
...
@@ -36,15 +36,15 @@ find_package(ROOT)
include_directories
(
${
BA_INCLUDE_DIR
}
${
Boost_INCLUDE_DIRS
}
${
EIGEN3_INCLUDE_DIR
}
${
ROOT_INCLUDE_DIR
}
${
BA
_INCLUDE_DIR
}
${
EIGEN3
_INCLUDE_DIR
}
)
target_link_libraries
(
CylindersAndPrisms
${
Boost_LIBRARIES
}
${
BA_LIBRARY
}
${
Boost_LIBRARIES
}
${
ROOT_LIBRARIES
}
)
...
...
This diff is collapsed.
Click to expand it.
Examples/cpp/ex001_CylindersAndPrisms/modules/FindBornAgain.cmake
+
2
−
1
View file @
80a06f95
...
...
@@ -3,6 +3,7 @@
# It defines:
# BA_INCLUDE_DIR PATH to the include directory
# BA_LIBRARY_DIR PATH to the library directory
# BA_LIBRARY PATH to the libBornAgainCore.so
if
(
NOT BORNAGAINSYS
)
set
(
BORNAGAINSYS /usr
)
...
...
@@ -12,6 +13,6 @@ set(BA_LIBRARY_DIR ${BORNAGAINSYS}/lib)
set
(
BA_INCLUDE_DIR
${
BORNAGAINSYS
}
/include/BornAgain
)
find_library
(
BA_LIBRARY
NAMES BornAgainCore
BornAgainFit
NAMES BornAgainCore
PATHS
${
BA_LIBRARY_DIR
}
)
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