Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmake_minimum_required(VERSION 3.16)
- # used in conjunction with FindMyLib.cmake (in projects )
- project(clientlib)
- list(APPEND CMAKE_MODULE_PATH "/home/pat/projects")
- add_executable(clientlib main.c)
- install(TARGETS clientlib RUNTIME DESTINATION bin)
- include(FindPkgConfig)
- find_package(MyLib REQUIRED)
- include_directories(${MyLib_INCLUDE_DIR})
- target_link_libraries(clientlib ${MyLib_LIBRARY})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement