genbattle / dkm

A generic C++11 k-means clustering implementation
MIT License
209 stars 47 forks source link

Building for visual studio 2017 community edition #14

Open AntonKukoba1 opened 5 years ago

AntonKukoba1 commented 5 years ago

JFYI: 1) It won't be able to find opencv out-of-the-box. So you have to put is manually: mkdir build cd build cmake -G"Visual Studio 15 2017 Win64" -DOpenCV_DIR=D:\opencv\build ../ 2) The generated project won't build, you have to load dkm.sln and remove extra compilation options for each project.

Anton-V-K commented 3 years ago

The 2-nd issue should be fixed in CMakeLists.txt - there are 2 lines which contain compiler-specific options:

set(DEBUG_FLAGS "-std=c++11 -g -O1 -Wall -Wextra -Werror -pedantic")
set(RELEASE_FLAGS "-std=c++11 -O3 -Wall -Wextra -Werror -pedantic")