# 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 bdm 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) IF(WIN32) SET(BdmLibs ${BdmLibs} libacml_dll) ENDIF(WIN32) # Add executable called "helloDemo" that is built from the source files # "demo.cxx" and "demo_b.cxx". The extensions are automatically found. add_executable (k1 k1.cpp) # Link the executable to the Hello library. target_link_libraries (k1 ${BdmLibs})