Move logic out of CMakeLists.txt
This is an initial pass, simply moving the existing logic as-is. Future PR's will attempt to refactor and improve the cmake stuff.
This commit is contained in:
13
cMake/FreeCAD_Helpers/SetupMatplotlib.cmake
Normal file
13
cMake/FreeCAD_Helpers/SetupMatplotlib.cmake
Normal file
@@ -0,0 +1,13 @@
|
||||
macro(SetupMatplotlib)
|
||||
# ------------------------------ Matplotlib ------------------------------
|
||||
|
||||
find_package(Matplotlib)
|
||||
if (MATPLOTLIB_FOUND)
|
||||
message(STATUS "-- matplotlib-${MATPLOTLIB_VERSION} has been found.")
|
||||
else(MATPLOTLIB_FOUND)
|
||||
message("=====================================================\n"
|
||||
"matplotlib not found, Plot module won't be available.\n"
|
||||
"=====================================================\n")
|
||||
endif(MATPLOTLIB_FOUND)
|
||||
|
||||
endmacro(SetupMatplotlib)
|
||||
Reference in New Issue
Block a user