From 89d7b0aa1bfa1672f84cbfb383750c7759bc396e Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Wed, 31 Aug 2016 09:42:23 -0300 Subject: Updated library requirements (added REQUIRED). --- CMakeLists.txt | 6 +++--- 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 + static const float PI = 3.1415f; int calculateCircleVertexCount(float diameter) -- cgit v1.2.3