netgen/python/CMakeLists.txt
Matthias Hochsteger ce47af852e [python] Import tkinter only when necessary
Don't import if Netgen was configured with USE_GUI=OFF
2017-11-06 15:00:49 +01:00

14 lines
392 B
CMake

if(USE_GUI)
set(IMPORT_TKINTER True)
else()
set(IMPORT_TKINTER False)
endif()
configure_file(__init__.py ${CMAKE_CURRENT_BINARY_DIR}/__init__.py @ONLY)
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/__init__.py
meshing.py csg.py geom2d.py stl.py gui.py NgOCC.py read_gmsh.py
DESTINATION ${NG_INSTALL_DIR_PYTHON}/${NG_INSTALL_SUFFIX}
COMPONENT netgen
)