您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

CMakeLists.txt 636B

6 个月前
123456789101112131415
  1. execute_process(COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/ssl.p12 ${EXECUTABLE_OUTPUT_PATH}/)
  2. aux_source_directory(. TEST_SRC_LIST)
  3. foreach(TEST_SRC ${TEST_SRC_LIST})
  4. STRING(REGEX REPLACE "^\\./|\\.c[a-zA-Z0-9_]*$" "" TEST_EXE_NAME ${TEST_SRC})
  5. message(STATUS "添加测试程序:${TEST_EXE_NAME}")
  6. add_executable(${TEST_EXE_NAME} ${TEST_SRC})
  7. if(ANDROID OR IOS OR WIN32)
  8. target_link_libraries(${TEST_EXE_NAME} ${PROJECT_NAME}_static ${LINK_LIB_LIST})
  9. else()
  10. target_link_libraries(${TEST_EXE_NAME} ${PROJECT_NAME}_shared ${LINK_LIB_LIST} pthread)
  11. endif()
  12. endforeach(TEST_SRC ${TEST_SRC_LIST})