# Make sure the compiler can find include files from our Bdm library. include_directories (${BDM_SOURCE_DIR}/bdm) # Make sure the linker can find the Hello library once it is built. link_directories (${BDM_BINARY_DIR}/bdm) ## Save all needed libraries in variable BdmLibs SET(BdmLibs bdm itpp_debug) #SET(BdmLibs bdm itpp) SET(ITppLibs itpp) IF(WIN32) SET(BdmLibs ${BdmLibs} libacml_dll) SET(ITppLibs ${ITppLibs} libacml_dll) ENDIF(WIN32) # Define macro for testing a file MACRO(TEST FN) add_executable (${FN} ${FN}.cpp) target_link_libraries (${FN} ${BdmLibs}) ENDMACRO(TEST) # Add executable called "helloDemo" that is built from the source files # "demo.cxx" and "demo_b.cxx". The extensions are automatically found. TEST(chmat_test) TEST(ldmat_test) TEST(fsqmat_test) TEST(arx_test) TEST(loggers_test) TEST(rv_test) TEST(merger_test) TEST(mixef_test) TEST(egiw_test) TEST(test0) TEST(testKF) TEST(testPF) TEST(testSmp) TEST(testEpdf) TEST(testResample) TEST(testKF_QR) TEST(testKF_QRexh) add_executable(blas_test blas_test.cpp) target_link_libraries (blas_test ${ITppLibs}) add_executable(testUI testUI.cpp) target_link_libraries (testUI ${BdmLibs} ${XERCES_LIBRARIES})