File tree Expand file tree Collapse file tree 1 file changed +73
-0
lines changed Expand file tree Collapse file tree 1 file changed +73
-0
lines changed Original file line number Diff line number Diff line change 1+ cmake_minimum_required (VERSION 3.6)
2+
3+ project (SLIDE)
4+
5+ set (CMAKE_DEBUG_POSTFIX d)
6+
7+ # ensure C++11
8+ set (CMAKE_CXX_STANDARD 11)
9+ set (CMAKE_CXX_STANDARD_REQUIRED ON )
10+ set (CMAKE_CXX_EXTENSIONS OFF )
11+
12+ #export compiler flags for code completion engines
13+ set (CMAKE_EXPORT_COMPILE_COMMANDS 1)
14+
15+ # Set global compiler warnings
16+ if (MSVC )
17+ set (common_options /W3 /WX)
18+ set (debug_options ${common_options} /D_ITERATOR_DEBUG_LEVEL=0 /D_SCL_SECURE_NO_WARNINGS)
19+ set (not_debug_options ${common_options} /D_ITERATOR_DEBUG_LEVEL=0 /D_SCL_SECURE_NO_WARNINGS)
20+
21+ add_compile_options (
22+ "$<$<CONFIG:Debug>:${debug_options} >$<$<NOT:$<CONFIG:Debug>>:${not_debug_options} >"
23+ )
24+ else ()
25+ add_compile_options (-Wall)
26+ endif ()
27+
28+
29+ set (slide_headers
30+ src/Cell_KokamNMC.hpp
31+ src/determineOCV.h
32+ src/ReadCSVfiles.h
33+ src/BasicCycler.hpp
34+ src/Cycling.h
35+ src/Cell_LGChemNMC.hpp
36+ src/Interpolation.h
37+ src/State.hpp
38+ src/Degradation.h
39+ src/Cell_Fit.hpp
40+ src/Cell_user.hpp
41+ src/Cell.hpp
42+ src/determineCharacterisation.h
43+ src/Model.h
44+ src/Cycler.hpp
45+ )
46+
47+ set (slide_source
48+ src/BasicCycler.cpp
49+ src/Cell_LGChemNMC.cpp
50+ src/Degradation.cpp
51+ src/Cell.cpp
52+ src/Cell_user.cpp
53+ src/determineCharacterisation.cpp
54+ src/Model.cpp
55+ src/Cell_Fit.cpp
56+ src/Cycler.cpp
57+ src/determineOCV.cpp
58+ src/ReadCSVfiles.cpp
59+ src/Cell_KokamNMC.cpp
60+ src/Cycling.cpp
61+ src/Interpolation.cpp
62+ src/State.cpp
63+ )
64+
65+
66+ add_executable (slide src/main.cpp
67+ ${slide_source}
68+ ${slide_headers}
69+ )
70+
71+ target_include_directories (slide PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} /src)
72+ TARGET_LINK_LIBRARIES (slide pthread)
73+
You can’t perform that action at this time.
0 commit comments