Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
8 changed files
with
5,302 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
cmake_minimum_required(VERSION 3.0) | ||
set(CMAKE_CXX_STANDARD 14) | ||
|
||
project(clustering CXX) | ||
|
||
|
||
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") | ||
# using GCC | ||
|
||
# turns out that g++ will allow variable length arrays but I | ||
# dont' want students getting dependant on non-standard features | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wvla -Werror=vla") | ||
|
||
# limit number of errors shown to 1 | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wfatal-errors") | ||
endif() | ||
|
||
# config directories | ||
include_directories(${CMAKE_SOURCE_DIR}/include) | ||
|
||
# tell cmake where to put the executables that it creates | ||
# also creates the directory if needed | ||
file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/bin) | ||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin ) | ||
|
||
file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/lib) | ||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib) | ||
|
||
add_library( points src/points.cpp ) | ||
|
||
add_executable( kmeans kmeans.cpp ) | ||
target_link_libraries( kmeans points ) | ||
|
BIN
+1.59 KB
Solutions/solutions.zip
Binary file not shown.
Oops, something went wrong.