1 | # Make sure the compiler can find include files from our Bdm library. |
---|
2 | include_directories (${BDM_SOURCE_DIR}/bdm) |
---|
3 | |
---|
4 | # Make sure the linker can find the Hello library once it is built. |
---|
5 | link_directories (${BDM_BINARY_DIR}/bdm) |
---|
6 | |
---|
7 | add_subdirectory (simulator_zdenek) |
---|
8 | add_subdirectory (simulator_zdenek/ekf_example) |
---|
9 | |
---|
10 | |
---|
11 | ## Save all needed libraries in variable BdmLibs |
---|
12 | #SET(BdmLibs bdm itpp_debug) |
---|
13 | SET(BdmLibs bdm itpp) |
---|
14 | |
---|
15 | IF(WIN32) |
---|
16 | SET(BdmLibs ${BdmLibs} libacml_dll) |
---|
17 | ENDIF(WIN32) |
---|
18 | |
---|
19 | # Add executable called "helloDemo" that is built from the source files |
---|
20 | # "demo.cxx" and "demo_b.cxx". The extensions are automatically found. |
---|
21 | add_executable (pmsm_unkQ pmsm_unkQ.cpp) |
---|
22 | add_executable (pmsm_unkQpf pmsm_unkQpf.cpp) |
---|
23 | # Link the executable to the Hello library. |
---|
24 | target_link_libraries (pmsm_unkQ ${BdmLibs}) |
---|
25 | target_link_libraries (pmsm_unkQpf ${BdmLibs}) |
---|
26 | |
---|
27 | # PMSM stuff |
---|
28 | add_executable (testbidiff testbidiff.cpp) |
---|
29 | target_link_libraries (testbidiff ${BdmLibs}) |
---|
30 | |
---|
31 | include_directories (./simulator_zdenek) |
---|
32 | link_directories (./simulator_zdenek) |
---|
33 | link_directories (./simulator_zdenek/ekf_example) |
---|
34 | add_executable (pmsm_sim pmsm_sim.cpp) |
---|
35 | add_executable (pmsm_sim2 pmsm_sim2.cpp) |
---|
36 | add_executable (pmsm_sim3 pmsm_sim3.cpp) |
---|
37 | target_link_libraries (pmsm_sim ${BdmLibs} pmsmsim ) |
---|
38 | target_link_libraries (pmsm_sim2 ${BdmLibs} pmsmsim ) |
---|
39 | target_link_libraries (pmsm_sim3 ${BdmLibs} pmsmsim ekf_obj) |
---|
40 | |
---|
41 | add_executable (sim_var sim_var.cpp) |
---|
42 | target_link_libraries (sim_var ${BdmLibs} pmsmsim) |
---|