mirror of
https://github.com/Relintai/pmlpp.git
synced 2025-01-02 16:29:35 +01:00
Fix build when tests are turned off.
This commit is contained in:
parent
b6fa7a355b
commit
097ad002c9
@ -6,7 +6,6 @@ def configure(env):
|
|||||||
env.pmlpp_build_old_classes = True
|
env.pmlpp_build_old_classes = True
|
||||||
env.pmlpp_build_tests = True
|
env.pmlpp_build_tests = True
|
||||||
|
|
||||||
|
|
||||||
def get_doc_classes():
|
def get_doc_classes():
|
||||||
return [
|
return [
|
||||||
"MLPPVector",
|
"MLPPVector",
|
||||||
|
@ -69,8 +69,10 @@ SOFTWARE.
|
|||||||
#include "mlpp/uni_lin_reg/uni_lin_reg.h"
|
#include "mlpp/uni_lin_reg/uni_lin_reg.h"
|
||||||
#include "mlpp/wgan/wgan.h"
|
#include "mlpp/wgan/wgan.h"
|
||||||
|
|
||||||
#include "test/mlpp_tests.h"
|
#ifdef TESTS_ENABLED
|
||||||
#include "test/mlpp_matrix_tests.h"
|
#include "test/mlpp_matrix_tests.h"
|
||||||
|
#include "test/mlpp_tests.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
void register_pmlpp_types(ModuleRegistrationLevel p_level) {
|
void register_pmlpp_types(ModuleRegistrationLevel p_level) {
|
||||||
if (p_level == MODULE_REGISTRATION_LEVEL_SCENE) {
|
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<MLPPDataComplex>();
|
||||||
ClassDB::register_class<MLPPData>();
|
ClassDB::register_class<MLPPData>();
|
||||||
|
|
||||||
|
#ifdef TESTS_ENABLED
|
||||||
ClassDB::register_class<MLPPTests>();
|
ClassDB::register_class<MLPPTests>();
|
||||||
ClassDB::register_class<MLPPMatrixTests>();
|
ClassDB::register_class<MLPPMatrixTests>();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user