Fix build when tests are turned off.

This commit is contained in:
Relintai 2023-04-27 18:12:32 +02:00
parent b6fa7a355b
commit 097ad002c9
2 changed files with 5 additions and 2 deletions

View File

@ -6,7 +6,6 @@ def configure(env):
env.pmlpp_build_old_classes = True
env.pmlpp_build_tests = True
def get_doc_classes():
return [
"MLPPVector",

View File

@ -69,8 +69,10 @@ SOFTWARE.
#include "mlpp/uni_lin_reg/uni_lin_reg.h"
#include "mlpp/wgan/wgan.h"
#include "test/mlpp_tests.h"
#ifdef TESTS_ENABLED
#include "test/mlpp_matrix_tests.h"
#include "test/mlpp_tests.h"
#endif
void register_pmlpp_types(ModuleRegistrationLevel p_level) {
if (p_level == MODULE_REGISTRATION_LEVEL_SCENE) {
@ -125,8 +127,10 @@ void register_pmlpp_types(ModuleRegistrationLevel p_level) {
ClassDB::register_class<MLPPDataComplex>();
ClassDB::register_class<MLPPData>();
#ifdef TESTS_ENABLED
ClassDB::register_class<MLPPTests>();
ClassDB::register_class<MLPPMatrixTests>();
#endif
}
}