Browse Source

Install missing header files when compiling without object stream (#1294)

Fixes #1293
Jorrit Rouwe 11 months ago
parent
commit
0a7d2501b3

+ 5 - 5
Jolt/Jolt.cmake

@@ -136,8 +136,13 @@ set(JOLT_PHYSICS_SRC_FILES
 	${JOLT_PHYSICS_ROOT}/Math/Vec4.h
 	${JOLT_PHYSICS_ROOT}/Math/Vec4.h
 	${JOLT_PHYSICS_ROOT}/Math/Vec4.inl
 	${JOLT_PHYSICS_ROOT}/Math/Vec4.inl
 	${JOLT_PHYSICS_ROOT}/Math/Vector.h
 	${JOLT_PHYSICS_ROOT}/Math/Vector.h
+	${JOLT_PHYSICS_ROOT}/ObjectStream/ObjectStream.h
+	${JOLT_PHYSICS_ROOT}/ObjectStream/SerializableAttribute.h
+	${JOLT_PHYSICS_ROOT}/ObjectStream/SerializableAttributeEnum.h
+	${JOLT_PHYSICS_ROOT}/ObjectStream/SerializableAttributeTyped.h
 	${JOLT_PHYSICS_ROOT}/ObjectStream/SerializableObject.cpp
 	${JOLT_PHYSICS_ROOT}/ObjectStream/SerializableObject.cpp
 	${JOLT_PHYSICS_ROOT}/ObjectStream/SerializableObject.h
 	${JOLT_PHYSICS_ROOT}/ObjectStream/SerializableObject.h
+	${JOLT_PHYSICS_ROOT}/ObjectStream/TypeDeclarations.h
 	${JOLT_PHYSICS_ROOT}/Physics/Body/AllowedDOFs.h
 	${JOLT_PHYSICS_ROOT}/Physics/Body/AllowedDOFs.h
 	${JOLT_PHYSICS_ROOT}/Physics/Body/Body.cpp
 	${JOLT_PHYSICS_ROOT}/Physics/Body/Body.cpp
 	${JOLT_PHYSICS_ROOT}/Physics/Body/Body.h
 	${JOLT_PHYSICS_ROOT}/Physics/Body/Body.h
@@ -437,7 +442,6 @@ if (ENABLE_OBJECT_STREAM)
 		${JOLT_PHYSICS_SRC_FILES}
 		${JOLT_PHYSICS_SRC_FILES}
 		${JOLT_PHYSICS_ROOT}/ObjectStream/GetPrimitiveTypeOfType.h
 		${JOLT_PHYSICS_ROOT}/ObjectStream/GetPrimitiveTypeOfType.h
 		${JOLT_PHYSICS_ROOT}/ObjectStream/ObjectStream.cpp
 		${JOLT_PHYSICS_ROOT}/ObjectStream/ObjectStream.cpp
-		${JOLT_PHYSICS_ROOT}/ObjectStream/ObjectStream.h
 		${JOLT_PHYSICS_ROOT}/ObjectStream/ObjectStreamBinaryIn.cpp
 		${JOLT_PHYSICS_ROOT}/ObjectStream/ObjectStreamBinaryIn.cpp
 		${JOLT_PHYSICS_ROOT}/ObjectStream/ObjectStreamBinaryIn.h
 		${JOLT_PHYSICS_ROOT}/ObjectStream/ObjectStreamBinaryIn.h
 		${JOLT_PHYSICS_ROOT}/ObjectStream/ObjectStreamBinaryOut.cpp
 		${JOLT_PHYSICS_ROOT}/ObjectStream/ObjectStreamBinaryOut.cpp
@@ -451,11 +455,7 @@ if (ENABLE_OBJECT_STREAM)
 		${JOLT_PHYSICS_ROOT}/ObjectStream/ObjectStreamTextOut.cpp
 		${JOLT_PHYSICS_ROOT}/ObjectStream/ObjectStreamTextOut.cpp
 		${JOLT_PHYSICS_ROOT}/ObjectStream/ObjectStreamTextOut.h
 		${JOLT_PHYSICS_ROOT}/ObjectStream/ObjectStreamTextOut.h
 		${JOLT_PHYSICS_ROOT}/ObjectStream/ObjectStreamTypes.h
 		${JOLT_PHYSICS_ROOT}/ObjectStream/ObjectStreamTypes.h
-		${JOLT_PHYSICS_ROOT}/ObjectStream/SerializableAttribute.h
-		${JOLT_PHYSICS_ROOT}/ObjectStream/SerializableAttributeEnum.h
-		${JOLT_PHYSICS_ROOT}/ObjectStream/SerializableAttributeTyped.h
 		${JOLT_PHYSICS_ROOT}/ObjectStream/TypeDeclarations.cpp
 		${JOLT_PHYSICS_ROOT}/ObjectStream/TypeDeclarations.cpp
-		${JOLT_PHYSICS_ROOT}/ObjectStream/TypeDeclarations.h
 	)
 	)
 endif()
 endif()
 
 

+ 2 - 2
Jolt/ObjectStream/SerializableAttributeEnum.h

@@ -4,11 +4,11 @@
 
 
 #pragma once
 #pragma once
 
 
+#ifdef JPH_OBJECT_STREAM
+
 #include <Jolt/ObjectStream/SerializableAttribute.h>
 #include <Jolt/ObjectStream/SerializableAttribute.h>
 #include <Jolt/ObjectStream/ObjectStream.h>
 #include <Jolt/ObjectStream/ObjectStream.h>
 
 
-#ifdef JPH_OBJECT_STREAM
-
 JPH_NAMESPACE_BEGIN
 JPH_NAMESPACE_BEGIN
 
 
 //////////////////////////////////////////////////////////////////////////////////////////
 //////////////////////////////////////////////////////////////////////////////////////////

+ 2 - 2
Jolt/ObjectStream/SerializableAttributeTyped.h

@@ -4,12 +4,12 @@
 
 
 #pragma once
 #pragma once
 
 
+#ifdef JPH_OBJECT_STREAM
+
 #include <Jolt/ObjectStream/SerializableAttribute.h>
 #include <Jolt/ObjectStream/SerializableAttribute.h>
 #include <Jolt/ObjectStream/GetPrimitiveTypeOfType.h>
 #include <Jolt/ObjectStream/GetPrimitiveTypeOfType.h>
 #include <Jolt/ObjectStream/ObjectStream.h>
 #include <Jolt/ObjectStream/ObjectStream.h>
 
 
-#ifdef JPH_OBJECT_STREAM
-
 JPH_NAMESPACE_BEGIN
 JPH_NAMESPACE_BEGIN
 
 
 //////////////////////////////////////////////////////////////////////////////////////////
 //////////////////////////////////////////////////////////////////////////////////////////