P
P
Prizm2021-04-03 16:51:57
CMake
Prizm, 2021-04-03 16:51:57

How to build a project in clion?

Clion works fine and runs applications in debug mode without issue. Also, it creates a "Shared Library" type file that runs from the terminal but does not run on click and throws an error:
6068725283548093416057.png
Cmake code:

cmake_minimum_required(VERSION 3.17)
project(test4)

set(CMAKE_CXX_STANDARD 14)

add_executable(test4 main.cpp)

So - how to create an exe / elf file that will run without third-party tools?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaliy K, 2021-05-14
@PrizmMARgh

How to compile a project into an executable file in Clion...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question