Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Root
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
Model registry
Operate
Environments
Terraform modules
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
Admin message
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
cxwx
Root
Commits
410e1f33
Commit
410e1f33
authored
6 years ago
by
Guilherme Amadio
Browse files
Options
Downloads
Patches
Plain Diff
Update CMakeLists.txt for core/thread
parent
785e719b
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
core/thread/CMakeLists.txt
+76
-30
76 additions, 30 deletions
core/thread/CMakeLists.txt
with
76 additions
and
30 deletions
core/thread/CMakeLists.txt
+
76
−
30
View file @
410e1f33
...
@@ -2,40 +2,86 @@
...
@@ -2,40 +2,86 @@
# CMakeLists.txt file for building ROOT core/thread package
# CMakeLists.txt file for building ROOT core/thread package
############################################################################
############################################################################
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/../foundation/res
)
if
(
WIN32
)
set
(
PLATFORM_FILTER FILTER
"Posix"
)
set
(
headers TAtomicCount.h TCondition.h TConditionImp.h TMutex.h TMutexImp.h
set
(
PLATFORM_HEADERS
TRWLock.h ROOT/TRWSpinLock.hxx TSemaphore.h TThread.h TThreadFactory.h
TWin32Condition.h
TThreadImp.h ROOT/TThreadedObject.hxx TThreadPool.h
TWin32Mutex.h
ThreadLocalStorage.h ROOT/TSpinMutex.hxx ROOT/TReentrantRWLock.hxx ROOT/RConcurrentHashColl.hxx
)
TWin32Thread.h
if
(
NOT WIN32
)
TWin32ThreadFactory.h
set
(
headers
${
headers
}
TPosixCondition.h TPosixMutex.h
)
TPosixThread.h TPosixThreadFactory.h PosixThreadInc.h
)
set
(
installoptions FILTER
"Win32"
)
else
()
else
()
set
(
headers
${
headers
}
TWin32Condition.h TWin32Mutex.h
set
(
PLATFORM_FILTER FILTER
"Win32"
)
TWin32Thread.h TWin32ThreadFactory.h
)
set
(
PLATFORM_HEADERS
set
(
installoptions FILTER
"Posix"
)
TPosixCondition.h
TPosixMutex.h
TPosixThread.h
TPosixThreadFactory.h
PosixThreadInc.h
)
endif
()
endif
()
set
(
sources TCondition.cxx TConditionImp.cxx TMutex.cxx TMutexImp.cxx
ROOT_STANDARD_LIBRARY_PACKAGE
(
Thread
TRWLock.cxx TRWSpinLock.cxx TSemaphore.cxx TThread.cxx TThreadFactory.cxx
HEADERS
TThreadImp.cxx TRWMutexImp.cxx TReentrantRWLock.cxx RConcurrentHashColl.cxx
)
${
PLATFORM_HEADERS
}
if
(
NOT WIN32
)
TAtomicCount.h
set
(
sources
${
sources
}
TPosixCondition.cxx TPosixMutex.cxx
TCondition.h
TPosixThread.cxx TPosixThreadFactory.cxx
)
TConditionImp.h
ThreadLocalStorage.h
TMutex.h
TMutexImp.h
TRWLock.h
TSemaphore.h
TThreadFactory.h
TThread.h
TThreadImp.h
TThreadPool.h
ROOT/RConcurrentHashColl.hxx
ROOT/TReentrantRWLock.hxx
ROOT/TRWSpinLock.hxx
ROOT/TSpinMutex.hxx
ROOT/TThreadedObject.hxx
SOURCES
src/RConcurrentHashColl.cxx
src/TCondition.cxx
src/TConditionImp.cxx
src/TMutex.cxx
src/TMutexImp.cxx
src/TReentrantRWLock.cxx
src/TRWLock.cxx
src/TRWMutexImp.cxx
src/TRWSpinLock.cxx
src/TSemaphore.cxx
src/TThread.cxx
src/TThreadFactory.cxx
src/TThreadImp.cxx
OBJECT_LIBRARY
STAGE1
DEPENDENCIES
Core
INSTALL_OPTIONS
${
installoptions
}
)
target_link_libraries
(
Thread PUBLIC
${
CMAKE_THREAD_LIBS_INIT
}
)
# keep include directory for ROOT/RSha256.hxx private
set_source_files_properties
(
src/RConcurrentHashColl.cxx
PROPERTIES INCLUDE_DIRECTORIES
${
CMAKE_CURRENT_SOURCE_DIR
}
/../foundation/res
)
if
(
WIN32
)
target_sources
(
Thread PRIVATE
src/TWin32Condition.cxx
src/TWin32Mutex.cxx
src/TWin32Thread.cxx
src/TWin32ThreadFactory.cxx
)
else
()
else
()
set
(
sources
${
sources
}
TWin32Condition.cxx TWin32Mutex.cxx
target_sources
(
Thread PRIVATE
TWin32Thread.cxx TWin32ThreadFactory.cxx
)
src/TPosixCondition.cxx
src/TPosixMutex.cxx
src/TPosixThread.cxx
src/TPosixThreadFactory.cxx
)
endif
()
endif
()
ROOT_STANDARD_LIBRARY_PACKAGE
(
Thread
HEADERS
${
headers
}
SOURCES
${
sources
}
OBJECT_LIBRARY
STAGE1
DEPENDENCIES Core
LIBRARIES
${
CMAKE_THREAD_LIBS_INIT
}
INSTALL_OPTIONS
${
installoptions
}
)
ROOT_ADD_TEST_SUBDIRECTORY
(
test
)
ROOT_ADD_TEST_SUBDIRECTORY
(
test
)
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