-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
34 lines (28 loc) · 1022 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
cmake_minimum_required(VERSION 3.13)
project(KMeansClustering)
set(CMAKE_CXX_STANDARD 14)
add_executable(KMeansClustering main.cpp Point.h Node.cpp Node.h)
find_package(OpenMP REQUIRED)
if(NOT TARGET OpenMP::OpenMP_CXX)
add_library(OpenMP_TARGET INTERFACE)
add_library(OpenMP::OpenMP_CXX ALIAS OpenMP_TARGET)
target_compile_options(OpenMP_TARGET INTERFACE ${OpenMP_CXX_FLAGS})
find_package(Threads REQUIRED)
target_link_libraries(OpenMP_TARGET INTERFACE Threads::Threads)
target_link_libraries(OpenMP_TARGET INTERFACE ${OpenMP_CXX_FLAGS})
endif()
target_link_libraries(KMeansClustering PUBLIC OpenMP::OpenMP_CXX)
#find_package(MPI REQUIRED)
#include_directories(${MPI_INCLUDE_PATH})
#
#target_link_libraries(KMeansClustering ${MPI_LIBRARIES})
#
#if(MPI_COMPILE_FLAGS)
# set_target_properties(hello PROPERTIES
# COMPILE_FLAGS "${MPI_COMPILE_FLAGS}")
#endif()
#
#if(MPI_LINK_FLAGS)
# set_target_properties(hello PROPERTIES
# LINK_FLAGS "${MPI_LINK_FLAGS}")
#endif()