新規フォルダに以下のCMakeFiles.txtを作成し実行してみる。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
cmake_minimum_required(VERSION 3.7) set(Boost_DEBUG 1) set(Boost_DETAILED_FAILURE_MSG 1) set(Boost_INCLUDE_DIR Y:/L/boost_1_53_0) set(Boost_LIBRARY_DIR Y:/L/boost_1_53_0/lib) set(Boost_USE_STATIC_LIBS ON) set(Boost_USE_MULTITHREADED ON) find_package(Boost 1.53 REQUIRED COMPONENTS date_time filesystem iostreams) include_directories(${Boost_INCLUDE_DIR}) link_directories(${Boost_LIBRARY_DIR}) |
Boost_INCLUDE_DIRとBoost_LIBRARY_DIRは自分の環境に合わせ、Boost_USE_STATIC_LIBSやBoost_USE_MULTITHREADEDをON,OFFしてみる。