|
@@ -96,17 +96,19 @@ if(HAVE_FREETYPE)
|
|
|
list(APPEND CORE_MODULE_COMPONENTS p3pnmtext)
|
|
list(APPEND CORE_MODULE_COMPONENTS p3pnmtext)
|
|
|
endif()
|
|
endif()
|
|
|
|
|
|
|
|
-add_python_module(core ${CORE_MODULE_COMPONENTS} LINK panda)
|
|
|
|
|
|
|
+if(HAVE_PYTHON)
|
|
|
|
|
+ add_python_module(core ${CORE_MODULE_COMPONENTS} LINK panda)
|
|
|
|
|
|
|
|
-if(HAVE_EGG)
|
|
|
|
|
- add_python_module(egg p3egg p3egg2pg)
|
|
|
|
|
- target_link_libraries(egg core)
|
|
|
|
|
-endif()
|
|
|
|
|
|
|
+ if(HAVE_EGG)
|
|
|
|
|
+ add_python_module(egg p3egg p3egg2pg)
|
|
|
|
|
+ target_link_libraries(egg core)
|
|
|
|
|
+ endif()
|
|
|
|
|
|
|
|
-add_python_module(physics p3physics p3particlesystem)
|
|
|
|
|
-target_link_libraries(physics core)
|
|
|
|
|
|
|
+ add_python_module(physics p3physics p3particlesystem)
|
|
|
|
|
+ target_link_libraries(physics core)
|
|
|
|
|
|
|
|
-if(HAVE_ODE)
|
|
|
|
|
- add_python_module(ode p3ode)
|
|
|
|
|
- target_link_libraries(ode core)
|
|
|
|
|
|
|
+ if(HAVE_ODE)
|
|
|
|
|
+ add_python_module(ode p3ode)
|
|
|
|
|
+ target_link_libraries(ode core)
|
|
|
|
|
+ endif()
|
|
|
endif()
|
|
endif()
|