Skip to content

Commit

Permalink
minor CMake fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
eliazonta committed Aug 18, 2023
1 parent 974faf2 commit 47e6518
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ endif()
option(USE_OPENMP "Use OpenMP" ON)

add_executable(K-Means src/main.cpp src/k-means.cpp
src/Point.cpp src/readWrite.cpp )
src/point.cpp src/readWrite.cpp )

if(USE_OPENMP)
find_package(OpenMP REQUIRED)
Expand Down
2 changes: 1 addition & 1 deletion include/Point.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ class Point{
double dist(Point p);
};

#endif
#endif
4 changes: 2 additions & 2 deletions src/Point.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <iostream>
#include "../include/Point.h"
#include "../include/point.h"

Point::Point():
x(0), y(0), z(0), k(-1), minDist(__DBL_MAX__){}
Expand All @@ -21,4 +21,4 @@ void Point::setMinDist(double md){minDist = md;}

double Point::dist(Point p){
return sqrt(pow(p.getX() - x, 2) + pow(p.getY() - y, 2) + pow(p.getZ() - z, 2));
}
}

0 comments on commit 47e6518

Please sign in to comment.