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