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
d52847c4
Unverified
Commit
d52847c4
authored
6 years ago
by
Guilherme Amadio
Browse files
Options
Downloads
Patches
Plain Diff
rootx: do not use file globbing
parent
af69b426
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rootx/CMakeLists.txt
+24
-12
24 additions, 12 deletions
rootx/CMakeLists.txt
with
24 additions
and
12 deletions
rootx/CMakeLists.txt
+
24
−
12
View file @
d52847c4
...
...
@@ -4,16 +4,22 @@
############################################################################
if
(
x11
)
include_directories
(
${
X11_INCLUDE_DIR
}
)
# FIXME: Why are we adding the x11 independent rootx.cxx file?
ROOT_EXECUTABLE
(
root *.cxx
${
CMAKE_SOURCE_DIR
}
/core/clib/src/strlcpy.c
LIBRARIES
${
X11_LIBRARIES
}
${
X11_Xpm_LIB
}
${
X11_Xft_LIB
}
${
X11_Xext_LIB
}
)
#---CreateRootCommandLineOptions------------------------------------------------------------------
generateHeaders
(
${
CMAKE_SOURCE_DIR
}
/core/base/src/root-argparse.py
${
CMAKE_BINARY_DIR
}
/include/rootCommandLineOptionsHelp.h root
)
ROOT_EXECUTABLE
(
root
src/rootx.cxx
src/rootxx.cxx
../core/clib/src/strlcpy.c
)
target_include_directories
(
root
PRIVATE
${
X11_INCLUDE_DIR
}
)
target_link_libraries
(
root
PRIVATE
${
X11_Xft_LIB
}
${
X11_Xpm_LIB
}
${
X11_LIBRARIES
}
)
elseif
(
cocoa
)
if
(
cxxmodules
)
# FIXME: Disable modules for ObjC/ObjC++. It has problems when compiling
# rootxx-cocoa.mm with a lots of warnings and errors such as:
...
...
@@ -30,9 +36,15 @@ elseif(cocoa)
# FIXME: rootxx-cocoa.mm should be compiled with -ObjC++ flag. Here we rely
# that the compiler will recognise the extension mm and switch to the correct
# language mode.
ROOT_EXECUTABLE
(
root rootx.cxx rootxx-cocoa.mm LIBRARIES
"-framework Cocoa"
)
#---CreateRootCommandLineOptions------------------------------------------------------------------
ROOT_EXECUTABLE
(
root
src/rootx.cxx
src/rootxx-cocoa.mm
LIBRARIES
"-framework Cocoa"
)
endif
()
if
(
x11 OR cocoa
)
generateHeaders
(
${
CMAKE_SOURCE_DIR
}
/core/base/src/root-argparse.py
${
CMAKE_BINARY_DIR
}
/include/rootCommandLineOptionsHelp.h root
)
endif
()
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