[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) |
---|
[20] | 10 | |
---|
| 11 | IF(WIN32) |
---|
[35] | 12 | SET(BdmLibs ${BdmLibs} libacml_dll) |
---|
[20] | 13 | ENDIF(WIN32) |
---|
| 14 | |
---|
[19] | 15 | # Add executable called "helloDemo" that is built from the source files |
---|
| 16 | # "demo.cxx" and "demo_b.cxx". The extensions are automatically found. |
---|
[82] | 17 | add_executable (chmat_test chmat_test.cpp) |
---|
| 18 | target_link_libraries (chmat_test ${BdmLibs}) |
---|
| 19 | |
---|
| 20 | add_executable (ldmat_test ldmat_test.cpp) |
---|
| 21 | target_link_libraries (ldmat_test ${BdmLibs}) |
---|
| 22 | |
---|
[87] | 23 | add_executable (fsqmat_test fsqmat_test.cpp) |
---|
| 24 | target_link_libraries (fsqmat_test ${BdmLibs}) |
---|
[82] | 25 | |
---|
[100] | 26 | add_executable (arx_test arx_test.cpp) |
---|
| 27 | target_link_libraries (arx_test ${BdmLibs}) |
---|
[87] | 28 | |
---|
| 29 | add_executable (loggers_test loggers_test.cpp) |
---|
| 30 | target_link_libraries (loggers_test ${BdmLibs}) |
---|
| 31 | |
---|
[125] | 32 | add_executable (blas_test blas_test.cpp) |
---|
[129] | 33 | target_link_libraries (blas_test itpp) |
---|
[125] | 34 | |
---|
[19] | 35 | add_executable (test0 test0.cpp) |
---|
| 36 | add_executable (testKF testKF.cpp) |
---|
| 37 | add_executable (testPF testPF.cpp) |
---|
[22] | 38 | add_executable (testSmp testSmp.cpp) |
---|
[32] | 39 | add_executable (testEpdf testEpdf.cpp) |
---|
| 40 | add_executable (testResample testResample.cpp) |
---|
| 41 | add_executable (testKF_QR testKF_QR.cpp) |
---|
[33] | 42 | add_executable (testKF_QRexh testKF_QRexh.cpp) |
---|
[134] | 43 | #add_executable (testUI testUI.cpp) |
---|
[19] | 44 | |
---|
[42] | 45 | |
---|
[19] | 46 | # Link the executable to the Hello library. |
---|
[20] | 47 | target_link_libraries (test0 ${BdmLibs}) |
---|
| 48 | target_link_libraries (testKF ${BdmLibs}) |
---|
| 49 | target_link_libraries (testPF ${BdmLibs}) |
---|
[22] | 50 | target_link_libraries (testSmp ${BdmLibs}) |
---|
[32] | 51 | target_link_libraries (testEpdf ${BdmLibs}) |
---|
| 52 | target_link_libraries (testResample ${BdmLibs}) |
---|
| 53 | target_link_libraries (testKF_QR ${BdmLibs}) |
---|
[33] | 54 | target_link_libraries (testKF_QRexh ${BdmLibs}) |
---|
[134] | 55 | #target_link_libraries (testUI ${BdmLibs} ${XERCES_LIBRARIES}) |
---|
[42] | 56 | |
---|
[111] | 57 | |
---|
| 58 | # experimental lines building an XSD's hello example |
---|
| 59 | |
---|
[134] | 60 | # add_executable (test_xsd_hello test_xsd_hello.cxx hello-pskel.hxx hello-pskel.cxx) |
---|
| 61 | # target_link_libraries (test_xsd_hello ${BdmLibs} ${XERCES_LIBRARIES} ) |
---|
| 62 | # SET(XSD_ARGS "cxx-parser") |
---|
| 63 | # ADD_CUSTOM_COMMAND( |
---|
| 64 | # OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/hello-pskel.hxx ${CMAKE_CURRENT_BINARY_DIR}/hello-pskel.cxx |
---|
| 65 | # COMMAND ${XSD_EXECUTABLE} |
---|
| 66 | # ARGS ${XSD_ARGS} ${CMAKE_CURRENT_SOURCE_DIR}/hello.xsd |
---|
| 67 | # MAIN_DEPENDENCY ${CMAKE_CURRENT_SOURCE_DIR}/hello.xsd |
---|
| 68 | # ) |
---|
| 69 | # |
---|