I'm developing a library and I need to add a third party header-only library for debug build only. It's only used for development.
Is there an easy way to do this in CMake?
I know we can do the same for linking libraries,
add_executable( MyEXE ${SOURCES})
target_link_libraries( MyEXE debug 3PDebugLib)
target_link_libraries( MyEXE optimized 3PReleaseLib)
But there seems no such option for target_include_directories
.
Using CMake 3.11.4 and VS2017.