project(VISTALWRAP) set(BUILD_SHARED_LIBS "ON") include_directories(/usr/include/python2.5) add_library(hello helloWrap.cpp hello.cpp ) GET_TARGET_PROPERTY(LIB_NAME hello LOCATION) GET_TARGET_PROPERTY(HELLO_SUFFIX hello SUFFIX) GET_TARGET_PROPERTY(HELLO_PREFIX hello PREFIX) message(${LIB_NAME}) message(${HELLO_SUFFIX}) message(${HELLO_PREFIX}) target_link_libraries(hello boost_python) add_dependencies(hello boost_python)