Revision 166, 1.2 kB
(checked in by smidl, 16 years ago)
|
Macro for building tests
|
-
Property svn:eol-style set to
native
|
Rev | Line | |
---|
[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) |
---|
[144] | 10 | SET(ITppLibs itpp) |
---|
[20] | 11 | |
---|
| 12 | IF(WIN32) |
---|
[35] | 13 | SET(BdmLibs ${BdmLibs} libacml_dll) |
---|
[144] | 14 | SET(ITppLibs ${ITppLibs} libacml_dll) |
---|
[20] | 15 | ENDIF(WIN32) |
---|
| 16 | |
---|
[166] | 17 | # Define macro for testing a file |
---|
| 18 | MACRO(TEST FN) |
---|
| 19 | add_executable (${FN} ${FN}.cpp) |
---|
| 20 | target_link_libraries (${FN} ${BdmLibs}) |
---|
| 21 | ENDMACRO(TEST) |
---|
| 22 | |
---|
[19] | 23 | # Add executable called "helloDemo" that is built from the source files |
---|
| 24 | # "demo.cxx" and "demo_b.cxx". The extensions are automatically found. |
---|
[166] | 25 | TEST(chmat_test) |
---|
| 26 | TEST(ldmat_test) |
---|
| 27 | TEST(fsqmat_test) |
---|
| 28 | TEST(arx_test) |
---|
| 29 | TEST(loggers_test) |
---|
| 30 | TEST(rv_test) |
---|
| 31 | TEST(merger_test) |
---|
| 32 | TEST(mixef_test) |
---|
| 33 | TEST(egiw_test) |
---|
| 34 | TEST(test0) |
---|
| 35 | TEST(testKF) |
---|
| 36 | TEST(testPF) |
---|
| 37 | TEST(testSmp) |
---|
| 38 | TEST(testEpdf) |
---|
| 39 | TEST(testResample) |
---|
| 40 | TEST(testKF_QR) |
---|
| 41 | TEST(testKF_QRexh) |
---|
[82] | 42 | |
---|
[166] | 43 | add_executable(blas_test blas_test.cpp) |
---|
[144] | 44 | target_link_libraries (blas_test ${ITppLibs}) |
---|
[125] | 45 | |
---|
[166] | 46 | add_executable(testUI testUI.cpp) |
---|
[143] | 47 | target_link_libraries (testUI ${BdmLibs} ${XERCES_LIBRARIES}) |
---|