Adding Boost to CMake project?

后端 未结 3 2041
轮回少年
轮回少年 2020-12-19 04:05

Background

I\'m a complete newb with C++ and I\'ve been running into one headache after another, so forgive me if this is incredibly simple and I\'m ju

3条回答
  •  难免孤独
    2020-12-19 04:34

    Add a target_include_directories(CMakeProject2 PRIVATE .) into your CMakeList.txt.

    The . is the relative path of boost/lambda/lambda.hpp from CMakeLists.txt

    And you should not add any .hpp file to the source list.

提交回复
热议问题