Visual studio 2012 cmake find_包查找库,但不将其包含在生成中

Visual studio 2012 cmake find_包查找库,但不将其包含在生成中,visual-studio-2012,boost,cmake,Visual Studio 2012,Boost,Cmake,到目前为止,我已经包括了3个使用 find_package(Boost COMPONENTS system thread filesystem REQUIRED) 现在我添加了程序选项 find_package(Boost COMPONENTS system thread filesystem program_options REQUIRED) 但cmake在最终的VisualStudio2012项目中只包括了系统、线程和文件系统。这就是我得到这个错误的原因: 2>LINK : fa

到目前为止,我已经包括了3个使用

find_package(Boost COMPONENTS system thread filesystem REQUIRED)
现在我添加了程序选项

find_package(Boost COMPONENTS system thread filesystem program_options REQUIRED)
但cmake在最终的VisualStudio2012项目中只包括了系统、线程和文件系统。这就是我得到这个错误的原因:

 2>LINK : fatal error LNK1104: cannot open file 'libboost_program_options-vc110-mt-1_55.lib'
Cmake没有抛出错误:

-- Searching for LibLAS + library
-- Found libLAS version: 1.06.000
-- Boost version: 1.55.0
-- Found the following Boost libraries:
--   system
--   thread
--   filesystem
--   program_options
-- Boost_INCLUDE_DIRS: C:/dev/lib/boost_1_55_0
-- Boost_LIBRARY_DIRS: C:/Boost/lib
-- Configuring done
-- Generating done
-- Build files have been written to: C:/de ...

我做错什么了吗?

应该用target\u link\u库(target\u name${Boost\u libraries})将它添加到target中,谢谢!我没有看到在我的项目中有2个CMakeLists.txt文件,目标链接库在另一个中。