基于C++ Coroutines提案 ‘Stackless Resumable Functions’编写的协程库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 683B

12345678910111213141516
  1. set(TUTORIAL_FILES "")
  2. aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR} TUTORIAL_FILES)
  3. foreach(TUTORIAL_FILE_PATH ${TUTORIAL_FILES})
  4. string(REGEX REPLACE ".+[/\]([^/\.]+)\\.cpp" "\\1" TUTORIAL_FILE_NAME ${TUTORIAL_FILE_PATH})
  5. message(STATUS "Generating test target: ${TUTORIAL_FILE_NAME}")
  6. add_executable(${TUTORIAL_FILE_NAME} ${TUTORIAL_FILE_PATH})
  7. target_link_libraries(${TUTORIAL_FILE_NAME} PUBLIC librf)
  8. target_compile_definitions(${TUTORIAL_FILE_NAME}
  9. PRIVATE LIBRF_TUTORIAL_STAND_ALONE=1
  10. )
  11. if(UNIX)
  12. set_target_properties(${TUTORIAL_FILE_NAME} PROPERTIES INSTALL_RPATH "$ORIGIN/")
  13. endif(UNIX)
  14. endforeach(TUTORIAL_FILE_PATH)