1 # Make sure the compiler can find include files from our Hello library.
2 INCLUDE_DIRECTORIES(${HELLO_SOURCE_DIR}/Hello)
4 # Make sure the linker can find the Hello library once it is built.
5 LINK_DIRECTORIES(${HELLO_BINARY_DIR}/Hello)
7 # Add executable called "helloDemo" that is built from the source files
8 # "demo.cxx" and "demo_b.cxx". The extensions are automatically found.
9 ADD_EXECUTABLE(helloDemo demo.cxx demo_b.cxx)
11 # Link the executable to the Hello library.
12 TARGET_LINK_LIBRARIES(helloDemo Hello)