I am trying to link my library with another lib1 library using CMAKE 2.8 . This should be said on Windows.
In CMakeLists.txt , I have:
add_library(mylib ${sources}) include_directories(${CMAKE_SOURCE_DIR}/lib1/include) target_link_libraries(mylib ${lib1_path})
But the compiler says that some #include <lib1/foo.h> in my library has not been resolved, possibly because for gcc there is no command-line option -I.../lib1/include .
UPDATE It should be said that the compiler complains when compiling TESTS is not mylib .
source share