%define pressure_state ON
%define temperature_state OFF
%define orientation_state ON
-%define gravity_state OFF
-%define linear_accel_state OFF
-%define motion_state OFF
+%define gravity_state ON
+%define linear_accel_state ON
%define build_test_suite OFF
set(PROJECT_RELEASE_VERSION "1")
set(CMAKE_VERBOSE_MAKEFILE OFF)
+set(SENSOR_FUSION_ENABLE "0")
+set(ORIENTATION_ENABLE "0")
+set(GRAVITY_ENABLE "0")
+set(LINEAR_ACCELERATION_ENABLE "0")
+
IF("${ACCEL}" STREQUAL "ON")
add_subdirectory(accel)
ENDIF()
add_subdirectory(pressure)
ENDIF()
IF("${ORIENTATION}" STREQUAL "ON")
-add_subdirectory(sensor_fusion)
-add_subdirectory(orientation)
+set(SENSOR_FUSION_ENABLE "1")
+set(ORIENTATION_ENABLE "1")
ENDIF()
IF("${GRAVITY}" STREQUAL "ON")
-add_subdirectory(sensor_fusion)
-add_subdirectory(orientation)
-add_subdirectory(gravity)
+set(SENSOR_FUSION_ENABLE "1")
+set(ORIENTATION_ENABLE "1")
+set(GRAVITY_ENABLE "1")
ENDIF()
IF("${LINEAR_ACCEL}" STREQUAL "ON")
+set(SENSOR_FUSION_ENABLE "1")
+set(ORIENTATION_ENABLE "1")
+set(GRAVITY_ENABLE "1")
+set(LINEAR_ACCELERATION_ENABLE "1")
+ENDIF()
+IF("${SENSOR_FUSION_ENABLE}" STREQUAL "1")
add_subdirectory(sensor_fusion)
+ENDIF()
+IF("${ORIENTATION_ENABLE}" STREQUAL "1")
add_subdirectory(orientation)
+ENDIF()
+IF("${GRAVITY_ENABLE}" STREQUAL "1")
add_subdirectory(gravity)
-add_subdirectory(linear_accel)
ENDIF()
-IF("${MOTION}" STREQUAL "ON")
-add_subdirectory(motion)
+IF("${LINEAR_ACCELERATION_ENABLE}" STREQUAL "1")
+add_subdirectory(linear_accel)
ENDIF()
add_subdirectory(server)