CMakeLists.txt 511 B

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