Hacker News new | past | comments | ask | show | jobs | submit login

This minimal cmake file should setup the ide for any project, the build will have to be ran externally though. You can setup the ide to debug external binaries as well, as long as it has source information (was built from the current project sources with debug info).

  cmake_minimum_required(VERSION 3.0)
  project(prog)

  include_directories(.)
  file(GLOB_RECURSE sources *.h *.cpp *.c *.hpp)

  add_executable(prog main.c)

variables might have to be tweaked a bit.



Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: