-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
65 lines (57 loc) · 2.46 KB
/
CMakeLists.txt
File metadata and controls
65 lines (57 loc) · 2.46 KB
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
# This file is here to make CLion users' lives better, but it is not complete.
# One cannot build sipnet from this file. But, it does let CLion do a much
# better job with code analysis.
# As C files are added and/or removed, this file should be updated.
cmake_minimum_required(VERSION 3.30)
project(sipnet C)
set(CMAKE_C_STANDARD 23)
include_directories(src)
include_directories(src/common)
include_directories(src/sipnet)
include_directories(tests)
include_directories(tests/sipnet/test_events_infrastructure)
include_directories(tests/sipnet/test_events_types)
include_directories(tests/sipnet/test_bugfixes)
include_directories(tests/sipnet/test_sipnet_infrastructure)
include_directories(tests/sipnet/test_modeling)
include_directories(tests/utils)
add_compile_options(-Wall -Wpedantic -Werror)
add_library(commonlib
src/common/context.c
src/common/logging.c
src/common/modelParams.c
src/common/util.c
)
add_library(sipnetlib
src/sipnet/balance.c
src/sipnet/cli.c
src/sipnet/events.c
src/sipnet/frontend.c
src/sipnet/outputItems.c
src/sipnet/restart.c
src/sipnet/runmean.c
src/sipnet/sipnet.c
src/sipnet/state.c
)
add_library(tests
tests/sipnet/test_sipnet_infrastructure/testParamInput.c
tests/sipnet/test_sipnet_infrastructure/testClimInput.c
tests/sipnet/test_events_infrastructure/testEventInfra.c
tests/sipnet/test_events_infrastructure/testEventOutputFile.c
tests/sipnet/test_events_infrastructure/testEventInfraNeg.c
tests/sipnet/test_events_types/testEventPlanting.c
tests/sipnet/test_events_types/testEventIrrigation.c
tests/sipnet/test_events_types/testEventFertilization.c
tests/sipnet/test_events_types/testEventHarvest.c
tests/sipnet/test_events_types/testEventTillage.c
tests/sipnet/test_bugfixes/testEventFileOrderChecks.c
tests/sipnet/test_modeling/testNitrogenCycle.c
tests/sipnet/test_modeling/testDependencyFunctions.c
tests/sipnet/test_modeling/testBalance.c
tests/sipnet/test_restart_infrastructure/testRestartMVP.c
tests/sipnet/test_restart_infrastructure/testRestartMissedEnvi.c
tests/sipnet/test_restart_infrastructure/testRestartMissedCtx.c
tests/sipnet/test_restart_infrastructure/mock_state.c
tests/sipnet/test_restart_infrastructure/bad_code/ctx_fail.c
tests/sipnet/test_restart_infrastructure/bad_code/envi_fail.c
)