[20] | 1 | # Make sure the compiler can find include files from our Bdm library. |
---|
[19] | 2 | include_directories (${BDM_SOURCE_DIR}/bdm) |
---|
[418] | 3 | include_directories (./unittest-cpp) |
---|
[19] | 4 | |
---|
| 5 | # Make sure the linker can find the Hello library once it is built. |
---|
| 6 | link_directories (${BDM_BINARY_DIR}/bdm) |
---|
[418] | 7 | link_directories (./unittest-cpp) |
---|
[19] | 8 | |
---|
[629] | 9 | SET(testutil_src epdf_harness.cpp epdf_harness.h mat_checks.cpp mat_checks.h |
---|
[693] | 10 | pdf_harness.cpp pdf_harness.h square_mat_point.cpp square_mat_point.h test_util.cpp test_util.h) |
---|
[469] | 11 | |
---|
| 12 | add_library(testutil ${testutil_src}) |
---|
[426] | 13 | target_link_libraries(testutil bdm itpp unittest) |
---|
[182] | 14 | |
---|
[426] | 15 | add_executable(square_mat_stress square_mat_stress.cpp) |
---|
[469] | 16 | target_link_libraries(square_mat_stress testutil unittest) |
---|
| 17 | LINK_EXEC(square_mat_stress) |
---|
[426] | 18 | |
---|
[508] | 19 | add_executable(square_mat_prep additive_generator.cpp additive_generator.h generator.cpp generator.h |
---|
| 20 | size_generator.cpp size_generator.h square_mat_prep.cpp) |
---|
[469] | 21 | target_link_libraries(square_mat_prep testutil) |
---|
| 22 | LINK_EXEC(square_mat_prep) |
---|
[467] | 23 | |
---|
[222] | 24 | EXEC(testResample) |
---|
[182] | 25 | |
---|
[222] | 26 | # ESTIM EXECS |
---|
| 27 | EXEC(arx_test) |
---|
| 28 | EXEC(arx_elem_test) |
---|
[691] | 29 | |
---|
[222] | 30 | EXEC(merger_2d_test) |
---|
| 31 | EXEC(merger_iter_test) |
---|
[394] | 32 | EXEC(mixtures_test) |
---|
[182] | 33 | |
---|
[386] | 34 | EXEC(test_kalman) |
---|
| 35 | EXEC(test_particle) |
---|
[583] | 36 | #EXEC(test_kalman_QR) |
---|
| 37 | #EXEC(test_kalman_QRexh) |
---|
[82] | 38 | |
---|
[222] | 39 | EXEC(blas_test) |
---|
[125] | 40 | |
---|
[418] | 41 | # using UnitTest++ |
---|
[691] | 42 | |
---|
[693] | 43 | SET(unit_test_configurations mepdf.cfg egiw.cfg mlnorm.cfg edirich.cfg mprod.cfg generator.cfg epdfds.cfg pdfds.cfg test_user_info_input.cfg merger.cfg erroneous.cfg egamma.cfg test_user_info_external.cfg merger_error.cfg mgamma.cfg enorm.cfg) |
---|
[691] | 44 | |
---|
[607] | 45 | add_executable(testsuite arx_straux_test.cpp datalink_test.cpp datasource_test.cpp egiw_test.cpp emix_test.cpp epdf_test.cpp logger_test.cpp LQG_test.cpp merger_test.cpp |
---|
[693] | 46 | pdf_test.cpp randun_test.cpp rectangular_support_test.cpp rv_test.cpp shared_ptr_test.cpp square_mat_test.cpp testsuite.cpp user_info_test.cpp ${unit_test_configurations} ) |
---|
[691] | 47 | |
---|
| 48 | set_source_files_properties(${unit_test_configurations} PROPERTIES HEADER_FILE_ONLY TRUE) |
---|
| 49 | source_group(Configurations FILES ${unit_test_configurations}) |
---|
| 50 | |
---|
[469] | 51 | target_link_libraries(testsuite testutil unittest) |
---|
| 52 | LINK_EXEC(testsuite) |
---|
[418] | 53 | |
---|
[271] | 54 | add_subdirectory(tutorial) |
---|
[418] | 55 | add_subdirectory(unittest-cpp) |
---|