How to only build a static library with clion without having an executable? How does the CMakeLists.txt look like? (without add_executable)
add_executable
Update: If I don't add executable to Clion, I have an error, that an executable is required.
Here my CMakeLists.txt.
This is an old question. But I'll add the answer to your question as a help for other people. You need to replace your add_executable with add_library
add_library
add_library(target_name source_files)
2.1m questions
2.1m answers
60 comments
57.0k users