Force 32 bits depth on .ico - only for Windows
[fg:hoorays-flightgear.git] / src / FDM / CMakeLists.txt
1 include(FlightGearComponent)
2
3 if(SP_FDMS)
4 set(SP_FDM_SOURCES
5         SP/ACMS.cxx
6         SP/ADA.cxx
7         SP/Balloon.cxx
8         SP/BalloonSim.cpp
9         SP/MagicCarpet.cxx
10         )
11 endif()
12
13 set(UIUC_SOURCES
14         uiuc_1DdataFileReader.cpp
15         uiuc_1Dinterpolation.cpp
16         uiuc_2DdataFileReader.cpp
17         uiuc_2Dinterpolation.cpp
18         uiuc_3Dinterpolation.cpp
19         uiuc_aerodeflections.cpp
20         uiuc_alh_ap.cpp
21         uiuc_auto_pilot.cpp
22         uiuc_betaprobe.cpp
23         uiuc_coef_drag.cpp
24         uiuc_coef_lift.cpp
25         uiuc_coef_pitch.cpp
26         uiuc_coef_roll.cpp
27         uiuc_coef_sideforce.cpp
28         uiuc_coef_yaw.cpp
29         uiuc_coefficients.cpp
30         uiuc_controlInput.cpp
31         uiuc_convert.cpp
32         uiuc_engine.cpp
33         uiuc_find_position.cpp
34         uiuc_flapdata.cpp
35         uiuc_fog.cpp
36         uiuc_gear.cpp
37         uiuc_get_flapper.cpp
38         uiuc_getwind.cpp
39         uiuc_hh_ap.cpp
40         uiuc_ice.cpp
41         uiuc_iceboot.cpp
42         uiuc_iced_nonlin.cpp
43         uiuc_icing_demo.cpp
44         uiuc_initializemaps.cpp
45         uiuc_map_CD.cpp
46         uiuc_map_CL.cpp
47         uiuc_map_CY.cpp
48         uiuc_map_Cm.cpp
49         uiuc_map_Cn.cpp
50         uiuc_map_Croll.cpp
51         uiuc_map_controlSurface.cpp
52         uiuc_map_engine.cpp
53         uiuc_map_fog.cpp
54         uiuc_map_gear.cpp
55         uiuc_map_geometry.cpp
56         uiuc_map_ice.cpp
57         uiuc_map_init.cpp
58         uiuc_map_keyword.cpp
59         uiuc_map_mass.cpp
60         uiuc_map_misc.cpp
61         uiuc_map_record1.cpp
62         uiuc_map_record2.cpp
63         uiuc_map_record3.cpp
64         uiuc_map_record4.cpp
65         uiuc_map_record5.cpp
66         uiuc_map_record6.cpp
67         uiuc_menu.cpp
68         uiuc_menu_CD.cpp
69         uiuc_menu_CL.cpp
70         uiuc_menu_CY.cpp
71         uiuc_menu_Cm.cpp
72         uiuc_menu_Cn.cpp
73         uiuc_menu_Croll.cpp
74         uiuc_menu_controlSurface.cpp
75         uiuc_menu_engine.cpp
76         uiuc_menu_fog.cpp
77         uiuc_menu_functions.cpp
78         uiuc_menu_gear.cpp
79         uiuc_menu_geometry.cpp
80         uiuc_menu_ice.cpp
81         uiuc_menu_init.cpp
82         uiuc_menu_mass.cpp
83         uiuc_menu_misc.cpp
84         uiuc_menu_record.cpp
85         uiuc_pah_ap.cpp
86         uiuc_parsefile.cpp
87         uiuc_rah_ap.cpp
88         uiuc_recorder.cpp
89         uiuc_warnings_errors.cpp
90         uiuc_wrapper.cpp
91         )
92         
93 set(LARCSIM_SOURCES
94     atmos_62.c
95     basic_aero.c
96     basic_engine.c
97     basic_gear.c
98     basic_init.c
99     c172_aero.c
100     c172_engine.c
101     c172_gear.c
102     c172_init.c
103     cherokee_aero.c
104     cherokee_engine.c
105     cherokee_gear.c
106     cherokee_init.c
107     default_model_routines.c
108     ls_accel.c
109     ls_aux.c
110     ls_geodesy.c
111     ls_gravity.c
112     ls_init.c
113     ls_interface.c
114     ls_matrix.c
115     ls_model.c
116     ls_step.c
117     navion_aero.c
118     navion_engine.c
119     navion_gear.c
120     navion_init.c
121     uiuc_aero.c
122     IO360.cxx
123     LaRCsim.cxx
124     LaRCsimIC.cxx
125     )
126         
127 set(SOURCES
128         NullFDM.cxx
129         UFO.cxx
130         fdm_shell.cxx
131         flight.cxx
132         flightProperties.cxx
133         TankProperties.cxx
134         groundcache.cxx
135         ${SP_FDM_SOURCES}
136         ExternalNet/ExternalNet.cxx
137         ExternalPipe/ExternalPipe.cxx
138         )
139
140 if(ENABLE_UIUC_MODEL)
141         foreach(component ${UIUC_SOURCES})
142                 list(APPEND SOURCES "UIUCModel/${component}")
143         endforeach()
144 endif()
145
146 if(ENABLE_LARCSIM)
147         foreach(component ${LARCSIM_SOURCES})
148                 list(APPEND SOURCES "LaRCsim/${component}")
149         endforeach()
150 endif()
151
152 flightgear_component(FDM "${SOURCES}")
153
154 if(ENABLE_YASIM)
155         add_subdirectory(YASim)
156 endif()
157
158
159 if(ENABLE_JSBSIM)
160     add_subdirectory(JSBSim)
161     
162     # FIXME - push this down once JSBSim doesn't expose private headers
163     include_directories(${PROJECT_SOURCE_DIR}/src/FDM/JSBSim)
164 endif()
165