I have a few CmakeLists.txt
files and I would like to insert another include right after a known include. So, here's what I've got:
include_directories(src include)
And, here's what I would like to end up with
include_directories(src include)
include_directories("${CMAKE_INSTALL_PREFIX}/include")
Any ideas on the best way to do this? I'm assuming sed
would make the most sense, but I'm open to alternatives.
[edit] Found a duplicate question.