×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: CMake
Posted by: Rob Green
Added: Oct 13, 2022 6:41 PM
Modified: Oct 15, 2022 9:18 AM
Views: 11
  1. project(Tester01 C)
  2. set(CMAKE_C_STANDARD 99)
  3.  
  4. add_executable(${PROJECT_NAME} main.c)
  5.  
  6.  
  7. list(APPEND CMAKE_MODULE_PATH "/home/pat/CLionProjects/cmake")
  8. include(FindPkgConfig)
  9. find_package(Stanford REQUIRED)
  10. include_directories(${STANFORD_INCLUDE_DIR})
  11. target_link_libraries(${PROJECT_NAME} ${STANFORD_LIBRARY})