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
e3b41156
Commit
e3b41156
authored
8 years ago
by
Axel Naumann
Browse files
Options
Downloads
Patches
Plain Diff
Build cling-demo as part of cling.
parent
1fb4972a
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
interpreter/cling/tools/CMakeLists.txt
+1
-0
1 addition, 0 deletions
interpreter/cling/tools/CMakeLists.txt
interpreter/cling/tools/demo/CMakeLists.txt
+11
-5
11 additions, 5 deletions
interpreter/cling/tools/demo/CMakeLists.txt
with
12 additions
and
5 deletions
interpreter/cling/tools/CMakeLists.txt
+
1
−
0
View file @
e3b41156
...
...
@@ -12,4 +12,5 @@ if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../lib/UserInterface/textinput
add_subdirectory
(
driver
)
add_subdirectory
(
Jupyter
)
add_subdirectory
(
libcling
)
add_subdirectory
(
demo
)
endif
()
This diff is collapsed.
Click to expand it.
interpreter/cling/tools/demo/CMakeLists.txt
+
11
−
5
View file @
e3b41156
...
...
@@ -8,18 +8,24 @@
cmake_minimum_required
(
VERSION 3.5
)
# Cling needs at least C++11; so does this demo.
set
(
CMAKE_CXX_STANDARD 11
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
project
(
cling-demo
)
if
(
CMAKE_PROJECT_NAME
)
# Building as part of cling; all CMake variables are set.
else
()
# Building as separate project.
project
(
cling-demo
)
# This project needs cling.
find_package
(
cling REQUIRED
)
# This project needs cling.
find_package
(
cling REQUIRED
)
endif
()
#
I
t has one binary:
#
The projec
t has one binary:
add_executable
(
cling-demo cling-demo.cpp
)
# ...which links against clingInterpreter and its dependencies.
# ...which links against clingInterpreter
(
and its dependencies
)
.
target_link_libraries
(
cling-demo clingInterpreter
)
# Provide LLVMDIR to cling-demp.cpp:
...
...
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