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:
ezzieyguywuf
2019-08-26 15:45:13 -04:00
committed by wmayer
parent cfc25626a2
commit 63c45d3ba4
30 changed files with 1676 additions and 1452 deletions

View File

@@ -0,0 +1,10 @@
macro(SetupPybind11)
# -------------------------------- PyBind11 -----------------------------
# necessary for flat-mesh feature
option(FREECAD_USE_PYBIND11 "Use pybind11" OFF)
if (FREECAD_USE_PYBIND11)
find_package(pybind11 REQUIRED)
endif()
endmacro(SetupPybind11)