Guest User

Untitled

a guest
Jan 16th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. cmake_minimum_required(VERSION 3.6)
  2. project(RegexUsage)
  3.  
  4. find_package(Boost 1.57.0 COMPONENTS system filesystem REQUIRED)
  5.  
  6. if(Boost_FOUND)
  7.  
  8. message(STATUS "Boost_INCLUDE_DIRS: ${Boost_INCLUDE_DIRS}")
  9. message(STATUS "Boost_LIBRARIES: ${Boost_LIBRARIES}")
  10. message(STATUS "Boost_VERSION: ${Boost_VERSION}")
  11.  
  12. include_directories(${Boost_INCLUDE_DIRS})
  13.  
  14. endif()
  15.  
  16. add_executable(BoostTest main.cpp)
  17.  
  18. if(Boost_FOUND)
  19.  
  20. target_link_libraries(BoostTest ${Boost_LIBRARIES})
  21.  
  22. endif()
  23.  
  24. set(CMAKE_CXX_STANDARD 14)
  25.  
  26. set(SOURCE_FILES main.cpp)
  27. add_executable(RegexUsage ${SOURCE_FILES})
Add Comment
Please, Sign In to add comment