CMakeLists.txt 507 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)