| 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 bdm 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 | target_link_libraries (pmsm_sim ${BdmLibs} pmsmsim ) |
|---|
| 37 | target_link_libraries (pmsm_sim2 ${BdmLibs} pmsmsim ) |
|---|
| 38 | |
|---|
| 39 | add_executable (mpf_test mpf_test.cpp) |
|---|
| 40 | target_link_libraries (mpf_test ${BdmLibs} pmsmsim) |
|---|
| 41 | add_executable (sim sim.cpp) |
|---|
| 42 | target_link_libraries (sim ${BdmLibs} pmsmsim) |
|---|
| 43 | add_executable (sim_var sim_var.cpp) |
|---|
| 44 | target_link_libraries (sim_var ${BdmLibs} pmsmsim) |
|---|
| 45 | add_executable (sim_var_arx sim_var_arx.cpp) |
|---|
| 46 | target_link_libraries (sim_var_arx ${BdmLibs} pmsmsim) |
|---|
| 47 | add_executable (pmsm_mix pmsm_mix.cpp) |
|---|
| 48 | target_link_libraries (pmsm_mix ${BdmLibs} pmsmsim) |
|---|