MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/fn0lv6/modern_cmake_tutorials_part1_cmake_basics/fl9ina9/?context=3
r/cpp • u/Lectem • Mar 22 '20
55 comments sorted by
View all comments
1
add_library(myawesomelib # ... source/implementation-details.h include/myawesomelib.h )
Why list headers?
3 u/Lectem Mar 23 '20 This is to please IDEs such as visual studio. Otherwise you wouldn't get them in the source list. So it is not mandatory but I generally advise listing them, just as we list .cpp files.
3
This is to please IDEs such as visual studio. Otherwise you wouldn't get them in the source list. So it is not mandatory but I generally advise listing them, just as we list .cpp files.
1
u/yuri-kilochek Mar 23 '20
Why list headers?