mirror of
https://github.com/panda3d/panda3d.git
synced 2026-02-11 17:49:01 -06:00
19 lines
502 B
CMake
19 lines
502 B
CMake
if(NOT BUILD_PANDA)
|
|
message(FATAL_ERROR "Cannot build contrib without panda! Please enable the BUILD_PANDA option.")
|
|
endif()
|
|
|
|
# Include source directories
|
|
add_subdirectory(src/ai)
|
|
add_subdirectory(src/contribbase)
|
|
add_subdirectory(src/rplight)
|
|
|
|
if(HAVE_PYTHON)
|
|
add_python_module(panda3d.ai p3ai
|
|
IMPORT panda3d.core COMPONENT ContribPython)
|
|
|
|
add_python_module(panda3d._rplight p3rplight
|
|
IMPORT panda3d.core COMPONENT ContribPython)
|
|
endif()
|
|
|
|
export_targets(Contrib COMPONENT ContribDevel)
|