Advertisement
Patrickquinn1212

CMakeTextLists.txt

Aug 18th, 2022 (edited)
900
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.41 KB | None | 0 0
  1. cmake_minimum_required(VERSION 3.16)
  2. # used in conjunction with FindMyLib.cmake (in projects )
  3.  
  4. project(clientlib)
  5.  
  6. list(APPEND CMAKE_MODULE_PATH "/home/pat/projects")
  7.  
  8. add_executable(clientlib main.c)
  9.  
  10.  
  11.  
  12. install(TARGETS clientlib RUNTIME DESTINATION bin)
  13.  
  14.  
  15. include(FindPkgConfig)
  16. find_package(MyLib REQUIRED)
  17. include_directories(${MyLib_INCLUDE_DIR})
  18. target_link_libraries(clientlib ${MyLib_LIBRARY})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement