Changeset 222
- Timestamp:
- 01/05/09 19:54:28 (16 years ago)
- Files:
-
- 4 modified
Legend:
- Unmodified
- Added
- Removed
-
CMakeLists.txt
r218 r222 52 52 ENDIF(XERCES_FOUND) 53 53 54 ## 55 ## PREPARE MACROS for building executables 56 ## 57 58 IF(WIN32) 59 SET(AddLib libacml_dll) 60 ENDIF(WIN32) 61 62 MACRO(EXEC FN) 63 add_executable (${FN} ${FN}.cpp) 64 target_link_libraries (${FN} debug itpp_debug) 65 target_link_libraries (${FN} optimized itpp) 66 target_link_libraries (${FN} bdm ${AddLib}) 67 target_link_libraries (${FN} ${ARGN}) ## Additional libraries can be added to a macro 68 ENDMACRO(EXEC) 69 70 54 71 # Local ettings should be written to file called CMakeLists.local 55 72 # Use this option for machine-specific options, such as prallel architectures -
doprava/CMakeLists.txt
r208 r222 6 6 7 7 8 ## Save all needed libraries in variable BdmLibs 9 IF(WIN32) 10 SET(AddLib libacml_dll) 11 ENDIF(WIN32) 12 13 # Add executable called "helloDemo" that is built from the source files 14 # "demo.cxx" and "demo_b.cxx". The extensions are automatically found. 15 add_executable (k1 k1.cpp) 16 # Link the executable to the Hello library. 17 target_link_libraries (k1 debug itpp_debug) 18 target_link_libraries (k1 optimized itpp) 19 target_link_libraries (k1 bdm ${AddLib}) 8 EXEC(k1) -
pmsm/CMakeLists.txt
r220 r222 5 5 link_directories (${BDM_BINARY_DIR}/bdm) 6 6 7 # no simulator needed... 8 EXEC (pmsm_unkQ ) 9 EXEC (pmsm_unkQpf) 10 EXEC(testbidiff) 11 12 13 ###STUFF with SIMULATOR 14 15 ## Build simulator 7 16 add_subdirectory (simulator_zdenek) 8 17 add_subdirectory (simulator_zdenek/ekf_example) 9 18 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 19 ## Use it 31 20 include_directories (./simulator_zdenek) 32 21 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 ) 22 #link_directories (./simulator_zdenek/ekf_example) 38 23 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) 24 EXEC (pmsm_sim pmsmsim) 25 EXEC (pmsm_sim2 pmsmsim) 26 EXEC (mpf_test pmsmsim) 27 EXEC (sim pmsmsim) 28 EXEC (sim_var pmsmsim) 29 EXEC (sim_var_arx pmsmsim) 30 EXEC (pmsm_mix pmsmsim) 31 -
tests/CMakeLists.txt
r208 r222 5 5 link_directories (${BDM_BINARY_DIR}/bdm) 6 6 7 ## Save all needed libraries in variable BdmLibs8 #SET(BdmLibs bdm itpp_debug)9 #SET(BdmLibs bdm itpp)10 #SET(ITppLibs itpp_debug)11 12 IF(WIN32)13 SET(AddLib libacml_dll)14 ENDIF(WIN32)15 16 # Define macro for testing a file17 MACRO(TEST FN)18 add_executable (${FN} ${FN}.cpp)19 target_link_libraries (${FN} debug itpp_debug)20 target_link_libraries (${FN} optimized itpp)21 target_link_libraries (${FN} bdm ${AddLib})22 ENDMACRO(TEST)23 24 7 # Add executable called "helloDemo" that is built from the source files 25 8 # "demo.cxx" and "demo_b.cxx". The extensions are automatically found. 26 9 27 # BASIC TESTS28 TEST(rv_test)29 TEST(datalink_test)30 TEST(loggers_test)10 # BASIC EXECS 11 EXEC(rv_test) 12 EXEC(datalink_test) 13 EXEC(loggers_test) 31 14 32 TEST(chmat_test)33 TEST(ldmat_test)34 TEST(fsqmat_test)35 TEST(enorm_test)36 TEST(egiw_test)37 TEST(emix_test)38 TEST(test0)39 TEST(testResample)15 EXEC(chmat_test) 16 EXEC(ldmat_test) 17 EXEC(fsqmat_test) 18 EXEC(enorm_test) 19 EXEC(egiw_test) 20 EXEC(emix_test) 21 EXEC(test0) 22 EXEC(testResample) 40 23 41 # ESTIM TESTS42 TEST(arx_test)43 TEST(arx_elem_test)44 TEST(merger_test)45 TEST(merger_2d_test)46 TEST(merger_iter_test)47 TEST(mixef_test)24 # ESTIM EXECS 25 EXEC(arx_test) 26 EXEC(arx_elem_test) 27 EXEC(merger_test) 28 EXEC(merger_2d_test) 29 EXEC(merger_iter_test) 30 EXEC(mixef_test) 48 31 49 TEST(testKF)50 TEST(testPF)51 TEST(testSmp)52 TEST(testEpdf)53 TEST(testKF_QR)54 TEST(testKF_QRexh)32 EXEC(testKF) 33 EXEC(testPF) 34 EXEC(testSmp) 35 EXEC(testEpdf) 36 EXEC(testKF_QR) 37 EXEC(testKF_QRexh) 55 38 56 add_executable(blas_test blas_test.cpp) 57 target_link_libraries (blas_test debug itpp_debug) 58 target_link_libraries (blas_test optimized itpp) 59 target_link_libraries (blas_test ${AddLib}) 39 EXEC(blas_test) 60 40 61 SET(AddLib ${AddLib} ${XERCES_LIBRARIES})62 TEST(testUI)41 EXEC(testUI) 42 target_link_libraries (testUI ${XERCES_LIBRARIES})