Is it possible to exclude a file in the project from build without deleting it in Clion ? This is similar to exclude from build option in visual studio.
CLion uses CMake as its build system. You can open CMakeLists.txt and find:
set(SOURCE_FILES
main.cpp
#my_file_to_exclude.cpp
)
section, then remove or comment out this file from list. Dont forget to click Reload Changes
button after makeing changes and before rebuild.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments