target_link_libraries and INCLUDE_DIRECTORIES property

前端 未结 2 1006
半阙折子戏
半阙折子戏 2021-01-28 04:09

In this snippet:

cmake_minimum_required(VERSION 3.0)
project(hello LANGUAGES C VERSION 0.0.1)
add_library(a INTERFACE)
target_include_directories(a INTERFACE /us         


        
2条回答
  •  情深已故
    2021-01-28 04:38

    target_link_libraries does not add any directory, it adds the specific library that you've included. Use make VERBOSE=1 to see the complete command. You might be able to get the library output directory by reading the build directory or the library output name.

提交回复
热议问题