Advertisement
TShiva

cmake_minimum_required

Jan 31st, 2017
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.42 KB | None | 0 0
  1. cmake_minimum_required(VERSION 3.6)
  2. project(second_progect)
  3.  
  4. set(CMAKE_CXX_STANDARD 11)
  5. set(CMAKE_PREFIX_PATH "/opt/Qt/5.8/gcc_64/")
  6. set(CMAKE_AUTOMOC ON)
  7. set(CMAKE_AUTOUIC ON)
  8. set(SOURCE_FILES main.cpp)
  9. add_executable(second_progect ${SOURCE_FILES})
  10.  
  11. find_package( Qt5Widgets REQUIRED )
  12. find_package( Qt5Gui REQUIRED )
  13.  
  14. target_link_libraries(second_progect Qt5::Core Qt5::Widgets ${Boost_LIBRARIES} -lboost_system)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement