Advertisement
mgaikema

Example CMakeLists.txt

Sep 27th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.31 KB | None | 0 0
  1. CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
  2. project(test)
  3.  
  4. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
  5.  
  6. ## Create pet object file.
  7. add_library(pet Pet.cpp Pet.hpp)
  8.  
  9. ## Create main object file.
  10. add_executable(main main.cpp BinaryTree.h)
  11.  
  12. # Link pet and main.
  13. target_link_libraries(main pet find_solution)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement