diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2016-08-31 09:42:23 -0300 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2016-08-31 09:42:23 -0300 |
commit | 89d7b0aa1bfa1672f84cbfb383750c7759bc396e (patch) | |
tree | b6d7d6dd767a5fd2102d5b0bea12a809e79ea2cb | |
parent | 3c92c6256fd796f24db177caf813ba52e2389ff8 (diff) |
Updated library requirements (added REQUIRED).
-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) |