You need a line for add_library(if you're making a static .lib; add SHARED to make an .so), or add_executable (executables). Then you use that name to link to any libs with target_link_libraries
project will be the name of the solution. As you may know, CMake can generate lots of solutions, e.g. Visual Studio .sln files. In your case to generate an Eclipse solution, you'd first want to descend to your target (build) directory, and then point to the top-level CMakeLists.txt (usually some form of parent directory with "..") file with the correct generator (run cmake help). It'd be something like: