I install the CLion on a Ubuntu 14.04. I build my first project with help CMakeLists.txt:
Source file:
#include <iostream>
using namespace std;
int main() {
cout << "Hello, World!" << endl;
return 0;
}
CMakeLists.txt:
cmake_minimum_required(VERSION 2.8.4)
project(sh)
set(SOURCE_FILES main.cpp)
add_executable(sh ${SOURCE_FILES})
My source file is located in a /home/user/Desktop/sh. But after build, I don't see any executable file in this folder. Where is it?
See Question&Answers more detail:os