cmake_minimum_required(VERSION 2.8) # Include the directory itself as a path to include directories set(CMAKE_INCLUDE_CURRENT_DIR ON) include_directories (${beauty_SOURCE_DIR}/cgvgvtklib ${beauty_SOURCE_DIR}/facelib) link_directories ( ${beauty_BINARY_DIR}/cgvgvtklib ${beauty_BINARY_DIRS}/facelib) # For a large number of source files you can create it in a simpler way # using file() function: #file(GLOB ptsetter_SOURCES *.cxx) # Create an executable file called helloworld from sources: add_executable(cleaner cleaner.cxx) TARGET_LINK_LIBRARIES(cleaner vtkHybrid cgvgvtklib)