-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
75 lines (56 loc) · 1.58 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
cmake_minimum_required (VERSION 2.8)
set (PROJECT EPol)
project (${PROJECT})
#FIND_PACKAGE(Qt4 REQUIRED)
#INCLUDE(${QT_USE_FILE})
#ADD_DEFINITIONS(${QT_DEFINITIONS})
include_directories (.)
include_directories (./curves)
#include_directories (./gui)
include_directories (./calculations)
#include_directories (./mt)
include_directories (./gauss)
#add_subdirectory(gui)
add_subdirectory(gauss)
if(CMAKE_COMPILER_IS_GNUCC)
add_definitions (-Wall -pedantic -std=gnu++11 -O2 -fopenmp)
endif()
set (HEADERS
./types.h
./curves/curve.h
./curves/ellipse.h
./curves/cubic_spline.h
./curves/discretize_curve.h
./calculations/calc_manager.h
./calculations/given.h
./calculations/field_solver.h
./calculations/helper.h
./calculations/discretization.h
./calculations/incident_field.h
./calculations/incident_field_package.h
./hpolarization/h_core.h
./math/hankel.h
./math/simple_math.h
)
set (SOURCES
./curves/curve.cpp
./curves/ellipse.cpp
./curves/cubic_spline.cpp
./main.cpp
./calculations/field_solver.cpp
./calculations/helper.cpp
./calculations/given.cpp
./calculations/calc_manager.cpp
./calculations/discretization.cpp
./calculations/incident_field.cpp
./calculations/incident_field_package.cpp
./hpolarization/h_core.cpp
)
source_group ("Header Files" FILES ${HEADERS})
source_group ("Source Files" FILES ${SOURCES})
add_executable (${PROJECT} ${HEADERS} ${SOURCES})
#target_link_libraries(${PROJECT} qts)
if(CMAKE_COMPILER_IS_GNUCC)
target_link_libraries(${PROJECT} pthread libgomp-1)
endif()
#target_link_libraries(${PROJECT} ${QT_LIBRARIES})