| 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 | |
|---|
| 11 | IF(WIN32) |
|---|
| 12 | IF(ITPP_INCLUDE_DIR) |
|---|
| 13 | include_directories(${ITPP_INCLUDE_DIR}) |
|---|
| 14 | ENDIF(ITPP_INCLUDE_DIR) |
|---|
| 15 | IF(ITPP_LIB_DIR) |
|---|
| 16 | link_directories(${ITPP_LIB_DIR}) |
|---|
| 17 | ENDIF(ITPP_LIB_DIR) |
|---|
| 18 | ENDIF(WIN32) |
|---|
| 19 | |
|---|
| 20 | # Add executable called "helloDemo" that is built from the source files |
|---|
| 21 | # "demo.cxx" and "demo_b.cxx". The extensions are automatically found. |
|---|
| 22 | add_executable (test0 test0.cpp) |
|---|
| 23 | add_executable (testKF testKF.cpp) |
|---|
| 24 | add_executable (testPF testPF.cpp) |
|---|
| 25 | add_executable (testSmp testSmp.cpp) |
|---|
| 26 | add_executable (testEpdf testEpdf.cpp) |
|---|
| 27 | add_executable (testResample testResample.cpp) |
|---|
| 28 | add_executable (testKF_QR testKF_QR.cpp) |
|---|
| 29 | |
|---|
| 30 | # Link the executable to the Hello library. |
|---|
| 31 | target_link_libraries (test0 ${BdmLibs}) |
|---|
| 32 | target_link_libraries (testKF ${BdmLibs}) |
|---|
| 33 | target_link_libraries (testPF ${BdmLibs}) |
|---|
| 34 | target_link_libraries (testSmp ${BdmLibs}) |
|---|
| 35 | target_link_libraries (testEpdf ${BdmLibs}) |
|---|
| 36 | target_link_libraries (testResample ${BdmLibs}) |
|---|
| 37 | target_link_libraries (testKF_QR ${BdmLibs}) |
|---|