I have created a new cpp repository a day ago to re-implement my fortran code snippets in c plus plus language and this is default generated cmake file by clion IDE:
cmake_minimum_required(VERSION 3.16) project(CPPCS) set(CMAKE_CXX_STANDARD 14) include_directories(.) include_directories(cmake-build-debug) include_directories(src) add_executable(CPPCS cmake-build-debug/cmake_install.cmake cmake-build-debug/CMakeCache.txt cmake-build-debug/Makefile cmake-build-debug/Project.cbp src/numerical_methods/Exercise_01.cpp CMakeLists.txt LICENSE README.md)
This worked very well before i decided to re-implement other exercise. Now when i run the second exercise.
How can i fix this? I want to configure smake file so that every new cpp file can run without any conflict with other cpp file.