diff options
-rw-r--r-- | CMakeLists.txt | 6 | ||||
-rw-r--r-- | geometry.cpp | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 69d2179..80fe285 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,13 +16,13 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) # http://arma.sourceforge.net/ -find_package(Armadillo) +find_package(Armadillo REQUIRED) # Will probably work with most CUDA releases -find_package(CUDA) +find_package(CUDA REQUIRED) # Qt5 packages -find_package(Qt5 COMPONENTS Core Qml Quick Widgets) +find_package(Qt5 COMPONENTS Core Qml Quick Widgets REQUIRED) # The application can significantly speed up some operations using multiple # threads via OpenMP, if supported diff --git a/geometry.cpp b/geometry.cpp index a8be3f4..ad29438 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -1,5 +1,7 @@ #include "geometry.h" +#include <cmath> + static const float PI = 3.1415f; int calculateCircleVertexCount(float diameter) |