[20] | 1 | # Make sure the compiler can find include files from our Bdm library. |
---|
[19] | 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 | |
---|
[20] | 7 | ## Save all needed libraries in variable BdmLibs |
---|
[33] | 8 | #SET(BdmLibs bdm itpp_debug) |
---|
| 9 | SET(BdmLibs bdm itpp) |
---|
[20] | 10 | |
---|
| 11 | IF(WIN32) |
---|
[35] | 12 | SET(BdmLibs ${BdmLibs} libacml_dll) |
---|
[20] | 13 | ENDIF(WIN32) |
---|
| 14 | |
---|
[19] | 15 | # Add executable called "helloDemo" that is built from the source files |
---|
| 16 | # "demo.cxx" and "demo_b.cxx". The extensions are automatically found. |
---|
| 17 | add_executable (test0 test0.cpp) |
---|
| 18 | add_executable (testKF testKF.cpp) |
---|
| 19 | add_executable (testPF testPF.cpp) |
---|
[22] | 20 | add_executable (testSmp testSmp.cpp) |
---|
[32] | 21 | add_executable (testEpdf testEpdf.cpp) |
---|
| 22 | add_executable (testResample testResample.cpp) |
---|
| 23 | add_executable (testKF_QR testKF_QR.cpp) |
---|
[33] | 24 | add_executable (testKF_QRexh testKF_QRexh.cpp) |
---|
| 25 | add_executable (pmsm_unkQ pmsm_unkQ.cpp) |
---|
| 26 | add_executable (pmsm_unkQpf pmsm_unkQpf.cpp) |
---|
[19] | 27 | |
---|
[42] | 28 | |
---|
[19] | 29 | # Link the executable to the Hello library. |
---|
[20] | 30 | target_link_libraries (test0 ${BdmLibs}) |
---|
| 31 | target_link_libraries (testKF ${BdmLibs}) |
---|
| 32 | target_link_libraries (testPF ${BdmLibs}) |
---|
[22] | 33 | target_link_libraries (testSmp ${BdmLibs}) |
---|
[32] | 34 | target_link_libraries (testEpdf ${BdmLibs}) |
---|
| 35 | target_link_libraries (testResample ${BdmLibs}) |
---|
| 36 | target_link_libraries (testKF_QR ${BdmLibs}) |
---|
[33] | 37 | target_link_libraries (testKF_QRexh ${BdmLibs}) |
---|
| 38 | target_link_libraries (pmsm_unkQ ${BdmLibs}) |
---|
| 39 | target_link_libraries (pmsm_unkQpf ${BdmLibs}) |
---|
[42] | 40 | |
---|
| 41 | # PMSM stuff |
---|
[54] | 42 | add_executable (testbidiff testbidiff.cpp) |
---|
| 43 | target_link_libraries (testbidiff ${BdmLibs}) |
---|
| 44 | |
---|
[42] | 45 | include_directories (${BDM_SOURCE_DIR}/simulator_zdenek) |
---|
| 46 | link_directories (${BDM_BINARY_DIR}/simulator_zdenek) |
---|
| 47 | add_executable (pmsm_sim pmsm_sim.cpp) |
---|
[60] | 48 | add_executable (pmsm_sim2 pmsm_sim2.cpp) |
---|
[54] | 49 | target_link_libraries (pmsm_sim ${BdmLibs} pmsmsim netcdf_c++) |
---|
[60] | 50 | target_link_libraries (pmsm_sim2 ${BdmLibs} pmsmsim netcdf_c++) |
---|