Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
matplotlibcpp17
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HKHLR
matplotlibcpp17
Commits
7cbc864e
Commit
7cbc864e
authored
Feb 26, 2022
by
soblin
Browse files
Options
Downloads
Patches
Plain Diff
update CMakeLists.txt
parent
faa079da
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+4
-5
4 additions, 5 deletions
CMakeLists.txt
with
4 additions
and
5 deletions
CMakeLists.txt
+
4
−
5
View file @
7cbc864e
project
(
matplotlibcpp17
)
cmake_minimum_required
(
VERSION 3.
0
)
cmake_minimum_required
(
VERSION 3.
12
)
find_package
(
PythonLibs 3 REQUIRED
)
find_package
(
PythonInterp 3 REQUIRED
)
find_package
(
Python3 COMPONENTS Interpreter Development
)
find_package
(
pybind11 REQUIRED
)
if
(
NOT DEFINED ADD_DEMO
)
...
...
@@ -17,8 +16,8 @@ set(matplotlibcpp17_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/include")
function
(
add_demo name path
)
add_executable
(
${
name
}
${
path
}
)
target_include_directories
(
${
name
}
PUBLIC
${
pybind11_INCLUDE_DIR
}
${
P
YTHON
_INCLUDE_DIRS
}
${
matplotlibcpp17_INCLUDE_DIRS
}
)
target_link_libraries
(
${
name
}
${
P
YTHON
_LIBRAR
Y
}
pybind11::embed
)
target_include_directories
(
${
name
}
PUBLIC
${
pybind11_INCLUDE_DIR
}
${
P
ython3
_INCLUDE_DIRS
}
${
matplotlibcpp17_INCLUDE_DIRS
}
)
target_link_libraries
(
${
name
}
${
P
ython3
_LIBRAR
IES
}
pybind11::embed
)
endfunction
()
if
(
${
ADD_DEMO
}
)
...
...
...
...
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
sign in
to comment