Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nptool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
np
nptool
Commits
fed7fc1b
Commit
fed7fc1b
authored
9 years ago
by
Pierre Morfouace
Browse files
Options
Downloads
Patches
Plain Diff
Adding CMakeList to newHira after deleting it by mistake
parent
c4b6957d
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
NPAnalysis/newHira/CMakeLists.txt
+31
-0
31 additions, 0 deletions
NPAnalysis/newHira/CMakeLists.txt
with
31 additions
and
0 deletions
NPAnalysis/newHira/CMakeLists.txt
0 → 100644
+
31
−
0
View file @
fed7fc1b
cmake_minimum_required
(
VERSION 2.8
)
#Finding NPTool
set
(
NPTOOL
"$ENV{NPTOOL}"
)
set
(
NPLIB
"
${
NPTOOL
}
/NPLib"
)
set
(
NPTOOL_INCLUDE_DIR
"
${
NPLIB
}
/include"
)
set
(
NPTOOL_LIB_DIR
"
${
NPLIB
}
/lib"
)
include
(
"
${
NPLIB
}
/FindROOT.cmake"
)
project
(
NPAnalysis
)
set
(
CMAKE_BUILD_TYPE Release
)
# Add root to the link and include directories
include_directories
(
${
ROOT_INCLUDE_DIR
}
)
link_directories
(
${
ROOT_LIBRARY_DIR
}
)
include_directories
(
${
NPTOOL_INCLUDE_DIR
}
)
link_directories
(
${
NPTOOL_LIB_DIR
}
)
# Get the compilator flag from root to assure consistancy
EXEC_PROGRAM
(
${
ROOT_CONFIG_EXECUTABLE
}
ARGS
"--cflags"
OUTPUT_VARIABLE root_cflags
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
${
root_cflags
}
"
)
# If the compiler is Clang, silence the unrecognised flags
if
(
${
CMAKE_CXX_COMPILER_ID
}
MATCHES
".*Clang.*"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-Qunused-arguments -undefined dynamic_lookup"
)
endif
()
add_library
(
NPAnalysis SHARED Analysis.cxx
)
target_link_libraries
(
NPAnalysis
${
ROOT_LIBRARIES
}
-L
${
NPLIB
}
/lib -lNPCore
)
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