diff --git a/CMakeLists.txt b/CMakeLists.txt index 286335c..ee14052 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,6 +42,15 @@ include_directories( add_library(RoboidControl STATIC "Roboid.cpp" + "Perception.cpp" + "Propulsion.cpp" + "Motor.cpp" + "DifferentialDrive.cpp" + "DistanceSensor.cpp" + "Placement.cpp" + "Sensor.cpp" + "Switch.cpp" + "Thing.cpp" ) enable_testing() diff --git a/RoboidControl.code-workspace b/RoboidControl.code-workspace new file mode 100644 index 0000000..876a149 --- /dev/null +++ b/RoboidControl.code-workspace @@ -0,0 +1,8 @@ +{ + "folders": [ + { + "path": "." + } + ], + "settings": {} +} \ No newline at end of file diff --git a/test/CMakeLists_disabled.txt b/test/CMakeLists_disabled.txt new file mode 100644 index 0000000..5cf6e5a --- /dev/null +++ b/test/CMakeLists_disabled.txt @@ -0,0 +1,30 @@ +cmake_minimum_required(VERSION 3.13) # CMake version check +Project(test) + +set(CMAKE_CXX_STANDARD 11) # Enable c++11 standard +set(CMAKE_POSITION_INDEPENDENT_CODE ON) + +add_compile_definitions(GTEST) +include(FetchContent) +FetchContent_Declare( + googletest + URL https://github.com/google/googletest/archive/refs/heads/main.zip +) + +# For Windows: Prevent overriding the parent project's compiler/linker settings +set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) +FetchContent_MakeAvailable(googletest) +include_directories(include) + +enable_testing() + +add_executable( + VectorAlgebraTest + "test/Angle_test.cc" + "test/FloatSingle_test.cc" + "test/Vector2_test.cc" + "test/Vector3_test.cc" + "test/Quaternion_test.cc" +) + +include(GoogleTest) \ No newline at end of file