Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CLASS
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
BaM
CLASS
Commits
f4566072
Commit
f4566072
authored
7 years ago
by
BaM
Committed by
BaM
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
cleaning
parent
d6590aaa
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+12
-14
12 additions, 14 deletions
CMakeLists.txt
with
12 additions
and
14 deletions
CMakeLists.txt
+
12
−
14
View file @
f4566072
cmake_minimum_required
(
VERSION 3.0 FATAL_ERROR
)
CMAKE_MINIMUM_REQUIRED
(
VERSION 3.0 FATAL_ERROR
)
#Set the project name
PROJECT
(
Class
)
PROJECT
(
Class
)
#set the project name
# Set the cmake module find path
SET
(
CMAKE_MODULE_PATH
${
CMAKE_MODULE_PATH
}
${
CMAKE_CURRENT_LIST_DIR
}
/cmake
)
SET
(
CMAKE_MODULE_PATH
${
CMAKE_MODULE_PATH
}
${
CMAKE_CURRENT_LIST_DIR
}
/cmake
)
#set the cmake module find path
# check for and enable c++11 support
# check for and enable c++11 support
INCLUDE
(
CheckCXXCompilerFlag
)
INCLUDE
(
CheckCXXCompilerFlag
)
...
@@ -14,12 +14,9 @@ IF(COMPILER_SUPPORTS_CXX11)
...
@@ -14,12 +14,9 @@ IF(COMPILER_SUPPORTS_CXX11)
ELSE
()
ELSE
()
MESSAGE
(
STATUS
"The compiler
${
CMAKE_CXX_COMPILER
}
has no C++11 support. Please use a different C++ compiler."
)
MESSAGE
(
STATUS
"The compiler
${
CMAKE_CXX_COMPILER
}
has no C++11 support. Please use a different C++ compiler."
)
ENDIF
()
ENDIF
()
# Find ROOT
# root is required
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fPIC"
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fPIC"
)
# Find ROOT
LIST
(
APPEND CMAKE_PREFIX_PATH $ENV{ROOTSYS}
)
list
(
APPEND CMAKE_PREFIX_PATH $ENV{ROOTSYS}
)
FIND_PACKAGE
(
ROOT REQUIRED COMPONENTS TMVA
)
FIND_PACKAGE
(
ROOT REQUIRED COMPONENTS TMVA
)
MESSAGE
(
"-- ROOT Root:
${
ROOTSYS
}
"
)
MESSAGE
(
"-- ROOT Root:
${
ROOTSYS
}
"
)
MESSAGE
(
"-- ROOT Include directory:
${
ROOT_INCLUDE_DIR
}
"
)
MESSAGE
(
"-- ROOT Include directory:
${
ROOT_INCLUDE_DIR
}
"
)
...
@@ -27,19 +24,20 @@ MESSAGE("-- ROOT Library directories: ${ROOT_LIBRARY_DIRS}")
...
@@ -27,19 +24,20 @@ MESSAGE("-- ROOT Library directories: ${ROOT_LIBRARY_DIRS}")
MESSAGE
(
"-- ROOT Libraries:
${
ROOT_LIBRARIES
}
"
)
MESSAGE
(
"-- ROOT Libraries:
${
ROOT_LIBRARIES
}
"
)
MESSAGE
(
"-- ROOT Root Use File :
${
ROOT_USE_FILE
}
"
)
MESSAGE
(
"-- ROOT Root Use File :
${
ROOT_USE_FILE
}
"
)
INCLUDE
(
${
ROOT_USE_FILE
}
)
INCLUDE
(
${
ROOT_USE_FILE
}
)
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
${
ROOT_INCLUDE_DIRS
}
)
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
${
ROOT_INCLUDE_DIRS
}
)
ADD_DEFINITIONS
(
${
ROOT_CXX_FLAGS
}
)
ADD_DEFINITIONS
(
${
ROOT_CXX_FLAGS
}
)
#SET CLASS VARIABLE
SET
(
CYCLASS_INCLUDE_DIRS $ROOT_INCLUDE_DIRS
)
SET
(
CYCLASS_INCLUDE_DIRS $ROOT_INCLUDE_DIRS
)
set
(
LIBS
${
LIBS
}
${
ROOT_LIBRARIES
}
)
SET
(
LIBS
${
LIBS
}
${
ROOT_LIBRARIES
}
)
# Set install folder (durty to be change?)
SET
(
CMAKE_INSTALL_LIBDIR
${
CMAKE_CURRENT_LIST_DIR
}
/lib
)
SET
(
CMAKE_INSTALL_LIBDIR
${
CMAKE_CURRENT_LIST_DIR
}
/lib
)
set
(
CMAKE_LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_CURRENT_LIST_DIR
}
/lib
)
SET
(
CMAKE_LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_CURRENT_LIST_DIR
}
/lib
)
set
(
CMAKE_ARCHIVE_OUTPUT_DIRECTORY
${
CMAKE_CURRENT_LIST_DIR
}
/lib
)
SET
(
CMAKE_ARCHIVE_OUTPUT_DIRECTORY
${
CMAKE_CURRENT_LIST_DIR
}
/lib
)
export
(
PACKAGE CLASS
)
MESSAGE
(
STATUS
"CMAKE_LIBRARY_OUTPUT_DIRECTORY :"
${
CMAKE_LIBRARY_OUTPUT_DIRECTORY
}
)
MESSAGE
(
STATUS
"CMAKE_LIBRARY_OUTPUT_DIRECTORY :"
${
CMAKE_LIBRARY_OUTPUT_DIRECTORY
}
)
# Go look into Source folder
ADD_SUBDIRECTORY
(
source
)
ADD_SUBDIRECTORY
(
source
)
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