-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
55 lines (46 loc) · 1.01 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
cmake_minimum_required(VERSION 3.5)
project(PSF2D LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
find_package(Qt5 COMPONENTS Widgets REQUIRED)
add_executable(PSF2D
main.cpp
mainwindow.cpp
mainwindow.h
mainwindow.ui
canvas.cpp
canvas.h
particle.h
abstractsolver.cpp
abstractsolver.h
solver.cpp
solver.h
solver_gpu.cpp
solver_gpu.h
boundary.h
abstractkernel.cpp
abstractkernel.h
poly6kernel.cpp
poly6kernel.h
spikykernel.cpp
spikykernel.h
visckernel.cpp
visckernel.h
abstractspatialstruct.cpp
abstractspatialstruct.h
linearsearch.cpp
linearsearch.h
radixsort.cpp
radixsort.h
simulation.h
)
find_package(OpenCL)
find_package(OpenMP)
include_directories(${OpenCL_INCLUDE_DIRS})
link_directories(${OpenCL_LIBRARY})
target_link_libraries(PSF2D PRIVATE Qt5::Widgets OpenMP::OpenMP_CXX ${OpenCL_LIBRARY})