Advertisement
Guest User

Untitled

a guest
Sep 12th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.65 KB | None | 0 0
  1. cmake_minimum_required(VERSION 3.0)
  2. project(cacConsumer VERSION 0.0.1 LANGUAGES CXX)
  3.  
  4. #since I don't use the default cmake path for installation while testing, I have to set the path here
  5. set(Cacatuidae_DIR "/home/GenusNymphicus/Projects/C++/Cacatuidae3/install/cmake/Cacatuidae")
  6.  
  7. #requires CACATUIDAE_DIR in PATH/passed to cmake command or CMAKE_PREFIX_PATH set to CacatuidaeConfig.cmake
  8. #I only request the Graphics component. Inside my congif I bundle all into the var Cacatuidae_LIBRARIES
  9. find_package(Cacatuidae REQUIRED COMPONENTS Graphics)
  10.  
  11. add_executable(cacConsumer main.cpp)
  12. target_link_libraries(${PROJECT_NAME} ${Cacatuidae_LIBRARIES})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement