Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: CMake
Posted by: Dean Sinaean
Added: Jul 6, 2021 12:14 PM
Views: 34
  1.  
  2. # set the project name
  3. project(MyApp)
  4. set(EXEC_NAME main)
  5.  
  6. # add the executable
  7. add_executable(${EXEC_NAME})
  8. target_sources(${EXEC_NAME} PRIVATE main.cpp)
  9. find_package(rpclib CONFIG REQUIRED)
  10. target_link_libraries(${EXEC_NAME} PRIVATE rpclib::rpc)
  11. set_property(TARGET ${EXEC_NAME} PROPERTY CXX_STANDARD 17)