# Make sure the compiler can find include files from our Bdm library. include_directories (${BDM_SOURCE_DIR}/bdm) # Make sure the linker can find the Hello library once it is built. link_directories (${BDM_BINARY_DIR}/bdm) ## Save all needed libraries in variable BdmLibs #SET(BdmLibs bdm itpp_debug) SET(BdmLibs bdm itpp) IF(WIN32) SET(BdmLibs ${BdmLibs} libacml_dll) ENDIF(WIN32) # Add executable called "helloDemo" that is built from the source files # "demo.cxx" and "demo_b.cxx". The extensions are automatically found. add_executable (test0 test0.cpp) add_executable (testKF testKF.cpp) add_executable (testPF testPF.cpp) add_executable (testSmp testSmp.cpp) add_executable (testEpdf testEpdf.cpp) add_executable (testResample testResample.cpp) add_executable (testKF_QR testKF_QR.cpp) add_executable (testKF_QRexh testKF_QRexh.cpp) add_executable (pmsm_unkQ pmsm_unkQ.cpp) add_executable (pmsm_unkQpf pmsm_unkQpf.cpp) # Link the executable to the Hello library. target_link_libraries (test0 ${BdmLibs}) target_link_libraries (testKF ${BdmLibs}) target_link_libraries (testPF ${BdmLibs}) target_link_libraries (testSmp ${BdmLibs}) target_link_libraries (testEpdf ${BdmLibs}) target_link_libraries (testResample ${BdmLibs}) target_link_libraries (testKF_QR ${BdmLibs}) target_link_libraries (testKF_QRexh ${BdmLibs}) target_link_libraries (pmsm_unkQ ${BdmLibs}) target_link_libraries (pmsm_unkQpf ${BdmLibs}) # PMSM stuff add_executable (testbidiff testbidiff.cpp) target_link_libraries (testbidiff ${BdmLibs}) include_directories (${BDM_SOURCE_DIR}/simulator_zdenek) link_directories (${BDM_BINARY_DIR}/simulator_zdenek) add_executable (pmsm_sim pmsm_sim.cpp) add_executable (pmsm_sim2 pmsm_sim2.cpp) target_link_libraries (pmsm_sim ${BdmLibs} pmsmsim netcdf_c++) target_link_libraries (pmsm_sim2 ${BdmLibs} pmsmsim netcdf_c++)