@@ -4,9 +4,10 @@ project (MatplotlibCPP_Test)
4
4
set (CMAKE_CXX_STANDARD 11 )
5
5
set (CMAKE_CXX_STANDARD_REQUIRED ON )
6
6
7
- include_directories (${PYTHONHOME} /include )
7
+ include_directories (${PYTHONHOME} )
8
8
include_directories (${PYTHONHOME} /Lib/site-packages/numpy/core/include )
9
- link_directories (${PYTHONHOME} /libs )
9
+ set (PYTHONFULLHOME ${LPYTHONHOME} /config-3.8-x86_64-linux-gnu )
10
+ link_directories (${PYTHONFULLHOME} )
10
11
11
12
add_definitions (-DMATPLOTLIBCPP_PYTHON_HEADER=Python.h )
12
13
@@ -17,10 +18,16 @@ add_definitions(-DMATPLOTLIBCPP_PYTHON_HEADER=Python.h)
17
18
# endforeach()
18
19
# message(STATUS "*** dump end ***")
19
20
21
+ set (CMAKE_CXX_COMPILER g++ )
22
+ #set(CMAKE_CXX_FLAGS ${PYTHONFULLHOME}/libpython3.8.a)
23
+ set (CMAKE_CXX_FLAGS -lpython3.8 )
24
+ add_compile_options (${PYTHONFULLHOME} /libpython3.8.a )
25
+
20
26
add_executable (minimal ${CMAKE_CURRENT_SOURCE_DIR} /../examples/minimal.cpp )
21
- add_executable (basic ${CMAKE_CURRENT_SOURCE_DIR} /../examples/basic.cpp )
22
- add_executable (modern ${CMAKE_CURRENT_SOURCE_DIR} /../examples/modern.cpp )
23
- add_executable (animation ${CMAKE_CURRENT_SOURCE_DIR} /../examples/animation.cpp )
24
- add_executable (nonblock ${CMAKE_CURRENT_SOURCE_DIR} /../examples/nonblock.cpp )
25
- add_executable (xkcd ${CMAKE_CURRENT_SOURCE_DIR} /../examples/xkcd.cpp )
26
- add_executable (bar ${CMAKE_CURRENT_SOURCE_DIR} /../examples/bar.cpp )
27
+
28
+ # add_executable(basic ${CMAKE_CURRENT_SOURCE_DIR}/../examples/basic.cpp)
29
+ # add_executable(modern ${CMAKE_CURRENT_SOURCE_DIR}/../examples/modern.cpp)
30
+ # add_executable(animation ${CMAKE_CURRENT_SOURCE_DIR}/../examples/animation.cpp)
31
+ # add_executable(nonblock ${CMAKE_CURRENT_SOURCE_DIR}/../examples/nonblock.cpp)
32
+ # add_executable(xkcd ${CMAKE_CURRENT_SOURCE_DIR}/../examples/xkcd.cpp)
33
+ # add_executable(bar ${CMAKE_CURRENT_SOURCE_DIR}/../examples/bar.cpp)
0 commit comments