Commit 8b4b5ff0 authored by Ryan Krattiger's avatar Ryan Krattiger Committed by Kitware Robot
Browse files

Merge topic 'make_project_python_optional'

2173773a

 Put project python source behind python check
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Bob Obara's avatarBob Obara <bob.obara@kitware.com>
Merge-request: !2507
parents 396f44c7 2173773a
......@@ -3,7 +3,6 @@ set(projectSrcs
Operation.cxx
OperationFactory.cxx
Project.cxx
RegisterPythonProject.cxx
Registrar.cxx
ResourceContainer.cxx
......@@ -27,7 +26,6 @@ set(projectHeaders
Operation.h
OperationFactory.h
Project.h
RegisterPythonProject.h
Registrar.h
ResourceContainer.h
Tags.h
......@@ -52,7 +50,7 @@ foreach (iconFile ${iconFiles})
get_filename_component(genFileBase "${iconFile}" NAME_WE)
set(genFile "${CMAKE_CURRENT_BINARY_DIR}/view/icons/${genFileBase}_svg.h")
configureFileAsCVariable("${CMAKE_CURRENT_SOURCE_DIR}/${iconFile}" "${genFile}" "${genFileBase}_svg" "")
endforeach()
endforeach ()
set(projectOperators
Add
......@@ -70,7 +68,7 @@ foreach (operator ${projectOperators})
list(APPEND projectSrcs operators/${operator}.cxx)
list(APPEND projectHeaders operators/${operator}.h)
list(APPEND _projectDependencies ${headerName})
endforeach()
endforeach ()
add_custom_target(projectGenHeaders DEPENDS ${_projectDependencies})
set(projectDependencies ${_projectDependencies} PARENT_SCOPE)
......@@ -87,6 +85,10 @@ if(SMTK_ENABLE_PARAVIEW_SUPPORT)
endif()
if (SMTK_ENABLE_PYTHON_WRAPPING)
list(APPEND projectSrcs
RegisterPythonProject.cxx)
list(APPEND projectHeaders
RegisterPythonProject.h)
add_subdirectory(pybind11)
endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment