| 1 | # Make sure the compiler can find include files from our Bdm library. |
|---|
| 2 | include_directories (${BDM_SOURCE_DIR}/bdm) |
|---|
| 3 | include_directories (./unittest-cpp) |
|---|
| 4 | |
|---|
| 5 | # Make sure the linker can find the Hello library once it is built. |
|---|
| 6 | link_directories (${BDM_BINARY_DIR}/bdm) |
|---|
| 7 | link_directories (./unittest-cpp) |
|---|
| 8 | |
|---|
| 9 | SET(testutil_src epdf_harness.cpp epdf_harness.h mat_checks.cpp mat_checks.h |
|---|
| 10 | pdf_harness.cpp pdf_harness.h square_mat_point.cpp square_mat_point.h test_util.cpp test_util.h) |
|---|
| 11 | |
|---|
| 12 | add_library(testutil ${testutil_src}) |
|---|
| 13 | target_link_libraries(testutil bdm itpp unittest) |
|---|
| 14 | |
|---|
| 15 | add_executable(square_mat_stress square_mat_stress.cpp) |
|---|
| 16 | target_link_libraries(square_mat_stress testutil unittest) |
|---|
| 17 | LINK_EXEC(square_mat_stress) |
|---|
| 18 | |
|---|
| 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) |
|---|
| 21 | target_link_libraries(square_mat_prep testutil) |
|---|
| 22 | LINK_EXEC(square_mat_prep) |
|---|
| 23 | |
|---|
| 24 | EXEC(testResample) |
|---|
| 25 | |
|---|
| 26 | # ESTIM EXECS |
|---|
| 27 | EXEC(arx_test) |
|---|
| 28 | EXEC(arx_elem_test) |
|---|
| 29 | |
|---|
| 30 | EXEC(merger_2d_test) |
|---|
| 31 | EXEC(merger_iter_test) |
|---|
| 32 | EXEC(mixtures_test) |
|---|
| 33 | |
|---|
| 34 | EXEC(test_kalman) |
|---|
| 35 | EXEC(test_particle) |
|---|
| 36 | #EXEC(test_kalman_QR) |
|---|
| 37 | #EXEC(test_kalman_QRexh) |
|---|
| 38 | |
|---|
| 39 | EXEC(blas_test) |
|---|
| 40 | |
|---|
| 41 | # using UnitTest++ |
|---|
| 42 | |
|---|
| 43 | SET(unit_test_configurations 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 mmix.cfg emix.cfg) |
|---|
| 44 | |
|---|
| 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 |
|---|
| 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} ) |
|---|
| 47 | |
|---|
| 48 | set_source_files_properties(${unit_test_configurations} PROPERTIES HEADER_FILE_ONLY TRUE) |
|---|
| 49 | source_group(Configurations FILES ${unit_test_configurations}) |
|---|
| 50 | |
|---|
| 51 | target_link_libraries(testsuite testutil unittest) |
|---|
| 52 | LINK_EXEC(testsuite) |
|---|
| 53 | |
|---|
| 54 | add_subdirectory(tutorial) |
|---|
| 55 | add_subdirectory(unittest-cpp) |
|---|